| | |
| | | return *this; |
| | | } |
| | | public: |
| | | static int GetCurSel(HWND hWnd) |
| | | { |
| | | int CB_GETCURSEL_ = 0x0147; |
| | | return SendMessage(hWnd, CB_GETCURSEL_, 0, 0); |
| | | } |
| | | |
| | | int GetCurSel() |
| | | { |
| | |
| | | return SendMessage(GetHWND(),CB_RESETCONTENT_,0,0); |
| | | } |
| | | |
| | | int SetItemData(int nIndex, KXMLDOMElement p) |
| | | { |
| | | return SetItemData(nIndex, p.ptr()); |
| | | } |
| | | |
| | | int SetItemData(int nIndex, LPARAM p) |
| | | { |
| | | int CB_SETITEMDATA_ = 0x0151; |
| | |
| | | return SendMessage(GetHWND(),CB_GETITEMDATA_,nIndex,0); |
| | | } |
| | | |
| | | int AddItem(string str, int p) |
| | | int AddItem(string str, KXMLDOMElement ele) |
| | | { |
| | | return AddItem(str, ele.ptr()); |
| | | } |
| | | int AddItem(string str, LPARAM p) |
| | | { |
| | | int CB_ADDSTRING_ = 0x0143; |
| | | int h = SendMessage(GetHWND(),CB_ADDSTRING_ ,0,(LPARAM)str); |
| | |
| | | return SendMessage(hWnd, CB_GETITEMDATA_, nIndex, 0); |
| | | } |
| | | |
| | | static int AddItem(HWND hWnd,string str, int p) |
| | | static int AddItem(HWND hWnd,string str, LPARAM p) |
| | | { |
| | | int CB_ADDSTRING_ = 0x0143; |
| | | int h = SendMessage(hWnd, CB_ADDSTRING_, 0, (LPARAM)str); |