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 #ifndef _FWL_LISTBOX_H | 7 #ifndef XFA_INCLUDE_FWL_BASEWIDGET_FWL_LISTBOX_H_ |
8 #define _FWL_LISTBOX_H | 8 #define XFA_INCLUDE_FWL_BASEWIDGET_FWL_LISTBOX_H_ |
| 9 |
9 class CFWL_WidgetImpProperties; | 10 class CFWL_WidgetImpProperties; |
10 class IFWL_Widget; | 11 class IFWL_Widget; |
11 class IFWL_ListBoxDP; | 12 class IFWL_ListBoxDP; |
12 class IFWL_ListBox; | 13 class IFWL_ListBox; |
13 #define FWL_CLASS_ListBox L"FWL_LISTBOX" | 14 #define FWL_CLASS_ListBox L"FWL_LISTBOX" |
14 #define FWL_CLASSHASH_ListBox 1777358317 | 15 #define FWL_CLASSHASH_ListBox 1777358317 |
15 #define FWL_STYLEEXT_LTB_MultiSelection (1L << 0) | 16 #define FWL_STYLEEXT_LTB_MultiSelection (1L << 0) |
16 #define FWL_STYLEEXT_LTB_Sort (1L << 1) | 17 #define FWL_STYLEEXT_LTB_Sort (1L << 1) |
17 #define FWL_STYLEEXT_LTB_ShowScrollBarAlaways (1L << 2) | 18 #define FWL_STYLEEXT_LTB_ShowScrollBarAlaways (1L << 2) |
18 #define FWL_STYLEEXT_LTB_MultiColumn (1L << 3) | 19 #define FWL_STYLEEXT_LTB_MultiColumn (1L << 3) |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 FWL_HLISTITEM GetSelItem(int32_t nIndexSel); | 120 FWL_HLISTITEM GetSelItem(int32_t nIndexSel); |
120 int32_t GetSelIndex(int32_t nIndex); | 121 int32_t GetSelIndex(int32_t nIndex); |
121 FWL_ERR SetSelItem(FWL_HLISTITEM hItem, FX_BOOL bSelect = TRUE); | 122 FWL_ERR SetSelItem(FWL_HLISTITEM hItem, FX_BOOL bSelect = TRUE); |
122 FWL_ERR GetItemText(FWL_HLISTITEM hItem, CFX_WideString& wsText); | 123 FWL_ERR GetItemText(FWL_HLISTITEM hItem, CFX_WideString& wsText); |
123 FWL_ERR GetScrollPos(FX_FLOAT& fPos, FX_BOOL bVert = TRUE); | 124 FWL_ERR GetScrollPos(FX_FLOAT& fPos, FX_BOOL bVert = TRUE); |
124 FWL_ERR* Sort(IFWL_ListBoxCompare* pCom); | 125 FWL_ERR* Sort(IFWL_ListBoxCompare* pCom); |
125 | 126 |
126 protected: | 127 protected: |
127 IFWL_ListBox(); | 128 IFWL_ListBox(); |
128 }; | 129 }; |
129 #endif | 130 |
| 131 #endif // XFA_INCLUDE_FWL_BASEWIDGET_FWL_LISTBOX_H_ |
OLD | NEW |