| OLD | NEW |
| 1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
| 6 | 6 |
| 7 #include "../../include/pdfwindow/PDFWindow.h" | 7 #include "../../include/pdfwindow/PDFWindow.h" |
| 8 #include "../../include/pdfwindow/PWL_Wnd.h" | 8 #include "../../include/pdfwindow/PWL_Wnd.h" |
| 9 #include "../../include/pdfwindow/PWL_EditCtrl.h" | 9 #include "../../include/pdfwindow/PWL_EditCtrl.h" |
| 10 #include "../../include/pdfwindow/PWL_Edit.h" | 10 #include "../../include/pdfwindow/PWL_Edit.h" |
| (...skipping 576 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 587 FX_BOOL bExit = FALSE; | 587 FX_BOOL bExit = FALSE; |
| 588 if (m_pFillerNotify) { | 588 if (m_pFillerNotify) { |
| 589 m_pFillerNotify->OnPopupPreOpen(GetAttachedData(), bExit, nFlag); | 589 m_pFillerNotify->OnPopupPreOpen(GetAttachedData(), bExit, nFlag); |
| 590 if (bExit) | 590 if (bExit) |
| 591 return FALSE; | 591 return FALSE; |
| 592 | 592 |
| 593 m_pFillerNotify->OnPopupPostOpen(GetAttachedData(), bExit, nFlag); | 593 m_pFillerNotify->OnPopupPostOpen(GetAttachedData(), bExit, nFlag); |
| 594 if (bExit) | 594 if (bExit) |
| 595 return FALSE; | 595 return FALSE; |
| 596 } | 596 } |
| 597 if (m_pList->OnCharWithExit(nChar, bExit, nFlag)) | 597 return m_pList->OnCharWithExit(nChar, bExit, nFlag) ? bExit : FALSE; |
| 598 return bExit; | |
| 599 | |
| 600 return FALSE; | |
| 601 } | 598 } |
| 602 | 599 |
| 603 void CPWL_ComboBox::OnNotify(CPWL_Wnd* pWnd, | 600 void CPWL_ComboBox::OnNotify(CPWL_Wnd* pWnd, |
| 604 FX_DWORD msg, | 601 FX_DWORD msg, |
| 605 intptr_t wParam, | 602 intptr_t wParam, |
| 606 intptr_t lParam) { | 603 intptr_t lParam) { |
| 607 switch (msg) { | 604 switch (msg) { |
| 608 case PNM_LBUTTONDOWN: | 605 case PNM_LBUTTONDOWN: |
| 609 if (pWnd == m_pButton) { | 606 if (pWnd == m_pButton) { |
| 610 SetPopup(!m_bPopup); | 607 SetPopup(!m_bPopup); |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 645 | 642 |
| 646 void CPWL_ComboBox::SetFillerNotify(IPWL_Filler_Notify* pNotify) { | 643 void CPWL_ComboBox::SetFillerNotify(IPWL_Filler_Notify* pNotify) { |
| 647 m_pFillerNotify = pNotify; | 644 m_pFillerNotify = pNotify; |
| 648 | 645 |
| 649 if (m_pEdit) | 646 if (m_pEdit) |
| 650 m_pEdit->SetFillerNotify(pNotify); | 647 m_pEdit->SetFillerNotify(pNotify); |
| 651 | 648 |
| 652 if (m_pList) | 649 if (m_pList) |
| 653 m_pList->SetFillerNotify(pNotify); | 650 m_pList->SetFillerNotify(pNotify); |
| 654 } | 651 } |
| OLD | NEW |