Use better dimensions for MDI system menu buttons to avoid MDI client window resizing
Dmitry Timoshkov
dmitry at baikal.ru
Fri Jun 18 04:40:00 CDT 2004
Hello,
Changelog:
Dmitry Timoshkov <dmitry at codeweavers.com>
Use better dimensions for MDI system menu buttons to avoid
MDI client window resizing.
--- cvs/hq/wine/controls/menu.c 2004-04-18 10:37:37.000000000 +0900
+++ wine/controls/menu.c 2004-06-18 17:57:57.000000000 +0900
@@ -732,8 +732,8 @@ static void MENU_GetBitmapItemSize( UINT
case (INT_PTR)HBMMENU_MBAR_MINIMIZE_D:
case (INT_PTR)HBMMENU_MBAR_CLOSE:
case (INT_PTR)HBMMENU_MBAR_CLOSE_D:
- size->cx = GetSystemMetrics( SM_CXSIZE );
- size->cy = GetSystemMetrics( SM_CYSIZE );
+ size->cx = GetSystemMetrics( SM_CYMENU ) - 4;
+ size->cy = size->cx;
return;
case (INT_PTR)HBMMENU_CALLBACK:
case (INT_PTR)HBMMENU_POPUP_CLOSE:
More information about the wine-patches
mailing list