Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Change icon in the Coolmenu
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Change icon in the Coolmenu

 Post Reply Post Reply
Author
Message
Gian View Drop Down
Newbie
Newbie
Avatar

Joined: 29 June 2004
Location: Italy
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote Gian Quote  Post ReplyReply Direct Link To This Post Topic: Change icon in the Coolmenu
    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
Back to Top
ICBM View Drop Down
Groupie
Groupie


Joined: 15 January 2004
Location: New Zealand
Status: Offline
Points: 57
Post Options Post Options   Thanks (0) Thanks(0)   Quote ICBM Quote  Post ReplyReply Direct Link To This Post Posted: 04 July 2004 at 10:58pm
I do this using XTPImageManager()->SetIcon(. It needs an icon rather than a bitmap, but works well.

Ian

 

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.172 seconds.