With this modification the menus with icons work on both platforms (NT, W2K) as expected.
Examination of the WM_INITMENU and WM_INITMENUPOPUP calls show, that on Windows 2000 the handler for WM_INITMENUPOPUP is also called for popup items included in regular menus and not only for system popup menus. By this, RemapMenu() get confused and CMenuSpawn::MeasureItem() handles popup menus within regular menus like "title Items", which have no icons and a size only depending on the text size
I have been trying to use this class with the supplied sample in Windows 2000. A problem occurrs with Pop-out menus. The size of these menu items is scruched way down, making it unreadable. I will bee looking into this a bit further, however was wondering if there were any solutions already out there. Thanks
I would like to enable/disable a sub menu item on the event of
clicking another menu item.I tried with OnUpdatexxxx() by
setting pCmdUI->Enable(TRUE|FALSE). Also I tried using your
EnableMenuItems()... to enable/disable my item (Actually I passed
CWnd::GetMenu() as the first argument to this call but it seems to crash
the application. Could you please help me out in this?