How to change the toolbar controler's Bitmap in win32 ?

Posted by Morpheus on Stack Overflow See other posts from Stack Overflow or by Morpheus
Published on 2010-04-15T18:32:13Z Indexed on 2010/04/15 18:33 UTC
Read the original article Hit count: 343

Filed under:
|
|
|
|

Hi all!

I have created a toolbar with some controls on it using ReBar within a window. Can anyone please tell me,

  1. How to get the HWND of a controller if I know (only) the Id of it ?
  2. How to obtain the HBITMAP if I know the id of the resource ?
  3. 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

© Stack Overflow or respective owner

Related posts about c++

Related posts about win32