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.
Subject |
Author |
Date |
|
Bangjun Lei
|
Oct 17, 2007 - 2:17 PM
|
Dear Sir./Madam.,
How to add an icon to each menu item without a toolbar?
Thanks!
|
|
Suhai Gyorgy
|
Oct 18, 2007 - 1:38 AM
|
If you only make a new toolbar in the resource, but you don’t make a CExtToolControlBar variable to it in the MainFrame, you can use this code to associate the given icons to the given commands:
g_CmdManager->UpdateFromToolBar( pApp->m_pszProfileName, ID_NEW_TOOLBAR );
There is another solution, though. Check out the following FAQ: How to replace menu/toolbar icons dynamically? The very same code can be used to associate an icon to a command which did not have an icon before.
|
|