BOOL CBCGPOutlookBarPane::AddButton | ( | LPCTSTR | lpszLabel, |
UINT | iIdCommand, | ||
int | iIconIndex, | ||
int | iInsertAt = -1 |
||
) |
Inserts a button into an outlook bar's page. Should work in conjunction with the LoadIcons() method.
lpszLabel | Specifies the button's text |
iIconIndex | Zero-based index of the icon. |
iIdCommand | Specifies the button control's ID. |
iInsertAt | Specifies the zero-based index on the outlook bar's page at which to insert the button. |
Call this function to insert a new button into an outlook bar's page. The button's images should be loaded before using LoadIcons() method. If the index specified by iInsertAt is -1, the button is added at the end of the page.