Menu not correctly resized

HBMMENU_CALLBACK in hbmpItem not fully supported

WindowsBlinds doesn't seem to support the HBMMENU_CALLBACK value in the hbmpItem member which is part of the MENUITEMINFO structure used in SetMenuItemInfo and GetMenuItemInfo correctly.
The problem is that the menu items are not resized properly. Checkmarks are drawn in the same area as the bitmap drawn in WM_DRAWITEM.
Th eproblem doesn't seem to be limited to a certain theme.

Example screenshot:
http://img214.imageshack.us/img214/4095/menusdj2.png

MSDN link:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/resources/menus/menureference/menustructures/menuiteminfo.asp
2,200 views 2 replies
Reply #1 Top
Here is a test program:
http://www.lefteous.de/tc/archives/iconmenu_demo/iconmenu_demo_winapi.zip

It needs to be started from within Total Commander 7 BETA 1. Download:
http://www.ghisler.com/700beta.htm