|
|
Sends to the control to add an item to the menu list.
MBM_ADDITEM int pos; MENUBUTTONITEM newitem; wParam = (WPARAM)pos; lParam = (LPARAM)&newitem;
Definition at line 178 of file menubutton.h. |
|
|
Sends to the control to delete an item in the menu list.
MBM_DELETEITEM int del; wParam = (WPARAM)del; lParam = 0;
Definition at line 196 of file menubutton.h. |
|
|
Sends to get the index of the current selected item.
MBM_GETCURITEM wParam = 0; lParam = 0;
Definition at line 272 of file menubutton.h. |
|
|
Sends to the control to retrive the data of a specific item.
MBM_GETITEMDATA int index; PMENUBUTTONITEM pmbi; wParam = (WPARAM)index; lParam = (LPARAM)pmbi;
Definition at line 256 of file menubutton.h. |
|
|
Sends to the control to remove all items in the menu list.
MBM_RESETCTRL wParam = 0; lParam = 0;
Definition at line 211 of file menubutton.h. |
|
|
Sends to set the current selected item based on index.
MBM_SETCURITEM int cur; wParam = (WPARAM)cur; lParam = 0;
Definition at line 290 of file menubutton.h. |
|
|
Sends to the control to set the data of a specific item.
MBM_SETITEMDATA int index; PMENUBUTTONITEM pmbi; wParam = (WPARAM)index; lParam = (LPARAM)pmbi;
Definition at line 235 of file menubutton.h. |
|
|
Sets the STRCMP function used to sort items. An application sends a MBM_SETSTRCMPFUNC message to set a new STRCMP function to sort items in the menubutton. Note that you should send this message before adding any item to the menubutton control.
static int my_strcmp (const char* s1, const char* s2, size_t n) { ... return 0; } MBM_SETSTRCMPFUNC wParam = 0; lParam = (LPARAM) my_strcmp;
Definition at line 321 of file menubutton.h. |
1.4.2