diff options
Diffstat (limited to 'CPP/Windows/Control/ComboBox.h')
-rw-r--r--[-rwxr-xr-x] | CPP/Windows/Control/ComboBox.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/CPP/Windows/Control/ComboBox.h b/CPP/Windows/Control/ComboBox.h index aa0eb930..8c6fd381 100755..100644 --- a/CPP/Windows/Control/ComboBox.h +++ b/CPP/Windows/Control/ComboBox.h @@ -32,6 +32,8 @@ public: LRESULT SetItemData(int index, LPARAM lParam) { return SendMessage(CB_SETITEMDATA, index, lParam); } LRESULT GetItemData(int index) { return SendMessage(CB_GETITEMDATA, index, 0); } + LRESULT GetItemData_of_CurSel() { return GetItemData(GetCurSel()); } + void ShowDropDown(bool show = true) { SendMessage(CB_SHOWDROPDOWN, show ? TRUE : FALSE, 0); } }; |