| 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_ListBox.h" | 9 #include "../../include/pdfwindow/PWL_ListBox.h" |
| 10 #include "../../include/pdfwindow/PWL_Utils.h" | 10 #include "../../include/pdfwindow/PWL_Utils.h" |
| (...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 455 if (m_pList && m_pList->IsMultipleSel()) | 455 if (m_pList && m_pList->IsMultipleSel()) |
| 456 { | 456 { |
| 457 CPDF_Rect rcCaret = m_pList->GetItemRect(m_pList->GetCaret()); | 457 CPDF_Rect rcCaret = m_pList->GetItemRect(m_pList->GetCaret()); |
| 458 rcCaret.Intersect(GetClientRect()); | 458 rcCaret.Intersect(GetClientRect()); |
| 459 return rcCaret; | 459 return rcCaret; |
| 460 } | 460 } |
| 461 | 461 |
| 462 return CPWL_Wnd::GetFocusRect(); | 462 return CPWL_Wnd::GetFocusRect(); |
| 463 } | 463 } |
| 464 | 464 |
| 465 void CPWL_ListBox::AddString(FX_LPCWSTR string) | 465 void CPWL_ListBox::AddString(const FX_WCHAR* string) |
| 466 { | 466 { |
| 467 if (m_pList) | 467 if (m_pList) |
| 468 { | 468 { |
| 469 m_pList->AddString(string); | 469 m_pList->AddString(string); |
| 470 } | 470 } |
| 471 } | 471 } |
| 472 | 472 |
| 473 void CPWL_ListBox::SetText(FX_LPCWSTR csText,FX_BOOL bRefresh) | 473 void CPWL_ListBox::SetText(const FX_WCHAR* csText,FX_BOOL bRefresh) |
| 474 { | 474 { |
| 475 //return CPDF_List::SetText(csText,bRefresh); | 475 //return CPDF_List::SetText(csText,bRefresh); |
| 476 } | 476 } |
| 477 | 477 |
| 478 CFX_WideString CPWL_ListBox::GetText() const | 478 CFX_WideString CPWL_ListBox::GetText() const |
| 479 { | 479 { |
| 480 if (m_pList) | 480 if (m_pList) |
| 481 return m_pList->GetText(); | 481 return m_pList->GetText(); |
| 482 | 482 |
| 483 return L""; | 483 return L""; |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 623 else | 623 else |
| 624 { | 624 { |
| 625 m_pList->OnVK_UP(IsSHIFTpressed(nFlag),IsCTRLpressed(nFlag)); | 625 m_pList->OnVK_UP(IsSHIFTpressed(nFlag),IsCTRLpressed(nFlag)); |
| 626 } | 626 } |
| 627 | 627 |
| 628 FX_BOOL bExit = FALSE; | 628 FX_BOOL bExit = FALSE; |
| 629 OnNotifySelChanged(FALSE,bExit, nFlag); | 629 OnNotifySelChanged(FALSE,bExit, nFlag); |
| 630 return TRUE; | 630 return TRUE; |
| 631 } | 631 } |
| 632 | 632 |
| OLD | NEW |