Change icon in the Coolmenu |
Post Reply |
Author | |
Gian
Newbie Joined: 29 June 2004 Location: Italy Status: Offline Points: 2 |
Post Options
Thanks(0)
Posted: 29 June 2004 at 3:12am |
Hello,
i'm trying to do a menu item that allow to connect or disconnect the program to a remote server. When it's disconnected the item has an icon and a "Connect" text, and with the same logic when the program is connected the item has another icon and "Disconnect" text. I've changed the text using menu->ModifyMenu(ID_FILE_CONNECT, MF_BYCOMMAND, ID_FILE_CONNECT, "Disconnect"); and works butfor the bitmap if i try to use menu->SetMenuItemBitmaps(ID_FILE_CONNECT, MF_BYCOMMAND, &m_ConnectedBitmap, &m_ConnectedBitmap); there's no change of the icon of the item. There's some way to change on fly the icon? Thanks |
|
ICBM
Groupie Joined: 15 January 2004 Location: New Zealand Status: Offline Points: 57 |
Post Options
Thanks(0)
|
I do this using XTPImageManager()->SetIcon(. It needs an icon rather than a bitmap, but works well.
Ian
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |