|
|
|
|
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 |
|
deimos
|
Apr 1, 2003 - 2:04 AM
|
First. The message shown in the status bar at selecting of item of the application’s system menu is incorrect.
Second. If the parent window in MDI-the application has no style WS_MAXIMIZEBOX, it can be maximized through the system menu.
Thirdly. I use program AllToTray, it adds to the application’s system menu item «Minimize To Tray». But ProfUIS disable this item. In other aplications it works.
Now two questions... 1. Whether I can set an icon on popup item of the application‘s main menu? 2. Whether I can use function CMenu ::SetDefaultItem()?
|
|
Sergiy Lavrynenko
|
Apr 2, 2003 - 6:40 AM
|
Hi, Thank you for the bug information.
>>> First. The message shown in the status bar at selecting of item >>> of the application’s system menu is incorrect. >>> Second. If the parent window in MDI-the application has >>> no style WS_MAXIMIZEBOX, it can be maximized >>> through the system menu.
I will fix this ASAP. Thanks.
>>> Thirdly. I use program AllToTray, it adds to the application’s >>> system menu item «Minimize To Tray». But ProfUIS disable >>> this item. In other aplications it works.
Prof-UIS does not disable anything. It is based on the standard MFC’s command updating mechanism. You should add appropriate ON_COMMAND and/or ON_UPDATE… methods into your window. This should not depend on application or window type. You can send me a letter to l_sergiy@fossware.com with your test project and I will try to fix this problem.
>>> Whether I can set an icon on popup item of the application‘s main menu?
All menus and toolbars are based on the global command manager (g_CmdManager variable). They take information about commands (menu text, toolbar text, status tip, toolbar tip, icon) from the command manager. You should update your command description:
VERIFY( g_CmdManager->CmdSetIcon( strProfileName, nCommadID, hIcon, false // true - use copy of hIcon, false - use hIcon as is ) );
To get the command manager’s profile name (strProfileName) for the specified window:
LPCTSTR strProfileName = g_CmdManager->ProfileNameFromWnd( hWnd ),
>>> Whether I can use function CMenu ::SetDefaultItem()?
Unfortunately default items are not supported in menu. I am just going to add this feature.
Regards, Sergiy.
|
|