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_ListCtrl.h" | 9 #include "../../include/pdfwindow/PWL_ListCtrl.h" |
10 #include "../../include/pdfwindow/PWL_IconList.h" | 10 #include "../../include/pdfwindow/PWL_IconList.h" |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 m_pData = pData; | 100 m_pData = pData; |
101 } | 101 } |
102 | 102 |
103 void CPWL_IconList_Item::SetIcon(FX_INT32 nIconIndex) | 103 void CPWL_IconList_Item::SetIcon(FX_INT32 nIconIndex) |
104 { | 104 { |
105 m_nIconIndex = nIconIndex; | 105 m_nIconIndex = nIconIndex; |
106 } | 106 } |
107 | 107 |
108 void CPWL_IconList_Item::SetText(const CFX_WideString& str) | 108 void CPWL_IconList_Item::SetText(const CFX_WideString& str) |
109 { | 109 { |
110 » m_pText->SetText(str); | 110 » m_pText->SetText(str.c_str()); |
111 } | 111 } |
112 | 112 |
113 CFX_WideString CPWL_IconList_Item::GetText() const | 113 CFX_WideString CPWL_IconList_Item::GetText() const |
114 { | 114 { |
115 return m_pText->GetText(); | 115 return m_pText->GetText(); |
116 } | 116 } |
117 | 117 |
118 void CPWL_IconList_Item::RePosChildWnd() | 118 void CPWL_IconList_Item::RePosChildWnd() |
119 { | 119 { |
120 CPDF_Rect rcClient = GetClientRect(); | 120 CPDF_Rect rcClient = GetClientRect(); |
(...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
583 if (CPWL_ScrollBar* pScrollBar = this->GetVScrollBar()) | 583 if (CPWL_ScrollBar* pScrollBar = this->GetVScrollBar()) |
584 pScrollBar->OnNotify(this, PNM_SETSCROLLPOS, SBT
_VSCROLL, (FX_INTPTR)&ptNew.y); | 584 pScrollBar->OnNotify(this, PNM_SETSCROLLPOS, SBT
_VSCROLL, (FX_INTPTR)&ptNew.y); |
585 | 585 |
586 return TRUE; | 586 return TRUE; |
587 } | 587 } |
588 } | 588 } |
589 | 589 |
590 return FALSE; | 590 return FALSE; |
591 } | 591 } |
592 | 592 |
OLD | NEW |