1 // ListViewDialog.h 2 3 #ifndef ZIP7_INC_LISTVIEW_DIALOG_H 4 #define ZIP7_INC_LISTVIEW_DIALOG_H 5 6 #include "../../../Windows/Control/Dialog.h" 7 #include "../../../Windows/Control/ListView.h" 8 9 #include "ListViewDialogRes.h" 10 11 class CListViewDialog: public NWindows::NControl::CModalDialog 12 { 13 NWindows::NControl::CListView _listView; 14 virtual void OnOK() Z7_override; 15 virtual bool OnInit() Z7_override; 16 virtual bool OnSize(WPARAM wParam, int xSize, int ySize) Z7_override; 17 virtual bool OnNotify(UINT controlID, LPNMHDR header) Z7_override; 18 void CopyToClipboard(); 19 void DeleteItems(); 20 void ShowItemInfo(); 21 void OnEnter(); 22 public: 23 UString Title; 24 25 bool SelectFirst; 26 bool DeleteIsAllowed; 27 bool StringsWereChanged; 28 29 UStringVector Strings; 30 UStringVector Values; 31 32 int FocusedItemIndex; 33 unsigned NumColumns; 34 35 INT_PTR Create(HWND wndParent = NULL) { return CModalDialog::Create(IDD_LISTVIEW, wndParent); } 36 CListViewDialog()37 CListViewDialog(): 38 SelectFirst(false), 39 DeleteIsAllowed(false), 40 StringsWereChanged(false), 41 FocusedItemIndex(-1), 42 NumColumns(1) 43 {} 44 }; 45 46 #endif 47