| | |
| | | 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); |
| | |
| | | SetItemData( h, (LPARAM)p); |
| | | return h; |
| | | } |
| | | |
| | | int InsertString(string str, KXMLDOMElement p) |
| | | { |
| | | int CB_INSERTSTRING_ = 0x014A; |
| | | int h = SendMessage(GetHWND(), CB_INSERTSTRING_, 0, (LPARAM)str); |
| | | |
| | | SetItemData(h, p); |
| | | return h; |
| | | } |
| | | |
| | | int InsertString( string str, LPARAM p) |
| | | { |
| | |
| | | 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); |