I have created a toolbar with some controls on it using ReBar within a window. Can anyone please tell me,
- How to get the HWND of a buttons/combobox/etc (not normal buttons in a window) if I know (only) the Id of it ?
- How to obtain the HBITMAP if I know the id of the resource ?
How to set the bitmap to the controller ?
SendDlgItemMessageW(hWnd, nId, BM_SETIMAGE, IMAGE_BITMAP, (LPARAM)hBitmap);
This isn't working for toolbars, isn't it ? I couldn't find a way to do it, please help me. Thank you...
Regards
EDIT: Anyone please ? :(
EDIT: Ok. it seems everyone is busy these days. :( Btw, is it a wrong question ?
You could download ControlSpy and try it in there to get a feel for it.
I checked the Rebar and saw that RB_SETBANDINFO (under Messages) could be what you are looking for.