Link to home
Start Free TrialLog in
Avatar of int2strcpy
int2strcpy

asked on

Add custom bitmap to new toolbar button

There is an existing toolbar created with CreateToolBarEx and I have added a button after the creation of this toolbar with the TB_ADDBUTTONS message and a TBBUTTON struct containing my new button's information. I need to be able to modify the imagelist of this toolbar and add a custom bitmap to it, then assign my button this new image index which I would do in the iBitmap member of the TBBUTTON struct prior to adding my new button I would assume. I need some code which can do this because I am having problems doing this.

int2strcpy
Avatar of jhshukla
jhshukla
Flag of United States of America image

what development environment / IDE are you using?
Avatar of int2strcpy
int2strcpy

ASKER

I'm using GCC on windows with Dev-C++ as an IDE.
sorry buddy. not familiar with it.
ASKER CERTIFIED SOLUTION
Avatar of Rok Brnot
Rok Brnot
Flag of Slovenia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial