Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » Icon on CExtControlBar Collapse All
Subject Author Date
Mateusz Zawilo Jun 11, 2008 - 2:38 AM

Hello.


I’m trying to set icon on autohide CExtControlBar using this code:


HBITMAP hBitmap = ( HBITMAP )::LoadImage( ::GetModuleHandle( NULL ), L"IDB_BITMAP_UP", IMAGE_BITMAP, 16, 16, 0 );

CExtCmdIcon mIcon;

mIcon.AssignFromHBITMAP( hBitmap );

m_wndNavigator.SetIcon( mIcon.ExtractHICON(), false );


but it’s not working. hBitmap and mIcon seem to be loaded properly.


Is it right way to do such thing?