| 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 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 | 237 |
| 238 CFX_WideString CPWL_ComboBox::GetText() const | 238 CFX_WideString CPWL_ComboBox::GetText() const |
| 239 { | 239 { |
| 240 if (m_pEdit) | 240 if (m_pEdit) |
| 241 { | 241 { |
| 242 return m_pEdit->GetText(); | 242 return m_pEdit->GetText(); |
| 243 } | 243 } |
| 244 return CFX_WideString(); | 244 return CFX_WideString(); |
| 245 } | 245 } |
| 246 | 246 |
| 247 void CPWL_ComboBox::SetText(FX_LPCWSTR text) | 247 void CPWL_ComboBox::SetText(const FX_WCHAR* text) |
| 248 { | 248 { |
| 249 if (m_pEdit) | 249 if (m_pEdit) |
| 250 m_pEdit->SetText(text); | 250 m_pEdit->SetText(text); |
| 251 } | 251 } |
| 252 | 252 |
| 253 void CPWL_ComboBox::AddString(FX_LPCWSTR string) | 253 void CPWL_ComboBox::AddString(const FX_WCHAR* string) |
| 254 { | 254 { |
| 255 if (m_pList) | 255 if (m_pList) |
| 256 m_pList->AddString(string); | 256 m_pList->AddString(string); |
| 257 } | 257 } |
| 258 | 258 |
| 259 int32_t CPWL_ComboBox::GetSelect() const | 259 int32_t CPWL_ComboBox::GetSelect() const |
| 260 { | 260 { |
| 261 return m_nSelectItem; | 261 return m_nSelectItem; |
| 262 } | 262 } |
| 263 | 263 |
| (...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 653 { | 653 { |
| 654 m_pFillerNotify = pNotify; | 654 m_pFillerNotify = pNotify; |
| 655 | 655 |
| 656 if (m_pEdit) | 656 if (m_pEdit) |
| 657 m_pEdit->SetFillerNotify(pNotify); | 657 m_pEdit->SetFillerNotify(pNotify); |
| 658 | 658 |
| 659 if (m_pList) | 659 if (m_pList) |
| 660 m_pList->SetFillerNotify(pNotify); | 660 m_pList->SetFillerNotify(pNotify); |
| 661 } | 661 } |
| 662 | 662 |
| OLD | NEW |