| BOOL CBCGPEditListBase::AddButton | ( | UINT | uiImageResId, |
| LPCTSTR | lpszTooltip = NULL, |
||
| WORD | wKeyAccelerator = 0, |
||
| BYTE | fVirt = 0, |
||
| UINT | uiButtonID = 0, |
||
| LPCTSTR | lpszName = NULL |
||
| ) |
Adds a new button to the list control
Call this function to load an image from the application resources, create a new CBCGPButton object and add the button with the loaded image to the list control. The button is created with the default style CBCGPButton::BUTTONSTYLE_FLAT.
| uiImageResId | Specifies the button's image resource ID |
| lpszTooltip | Specifies the button's tooltip text |
| wKeyAccelerator | Specifies the keyboard accelerator associated with new button |
| fVirt | Specifies the accelerator flag |
| uiButtonID | Specifies the button ID |
| lpszName | Specifies the button name |