Choose what window styles to dump based on the WS_CHILD style set
Dmitry Timoshkov
dmitry at baikal.ru
Mon Nov 21 00:06:56 CST 2005
Hello,
WS_GROUP and WS_TABSTOP window styles have the same numeric values as
WS_MINIMIZEBOX and WS_MAXIMIZEBOX, and it's confusing to see WS_MINIMIZEBOX/
WS_MAXIMIZEBOX for child windows.
Changelog:
Dmitry Timoshkov <dmitry at codeweavers.com>
Choose what window styles to dump (WS_GROUP/WS_TABSTOP vs. WS_MINIMIZEBOX/
WS_MAXIMIZEBOX) based on the WS_CHILD style set.
--- cvs/hq/wine/dlls/user/win.c 2005-11-10 11:28:36.000000000 +0800
+++ wine/dlls/user/win.c 2005-11-21 12:25:34.000000000 +0800
@@ -739,10 +739,16 @@ static void dump_window_styles( DWORD st
if(style & WS_HSCROLL) TRACE(" WS_HSCROLL");
if(style & WS_SYSMENU) TRACE(" WS_SYSMENU");
if(style & WS_THICKFRAME) TRACE(" WS_THICKFRAME");
- if(style & WS_GROUP) TRACE(" WS_GROUP");
- if(style & WS_TABSTOP) TRACE(" WS_TABSTOP");
- if(style & WS_MINIMIZEBOX) TRACE(" WS_MINIMIZEBOX");
- if(style & WS_MAXIMIZEBOX) TRACE(" WS_MAXIMIZEBOX");
+ if (style & WS_CHILD)
+ {
+ if(style & WS_GROUP) TRACE(" WS_GROUP");
+ if(style & WS_TABSTOP) TRACE(" WS_TABSTOP");
+ }
+ else
+ {
+ if(style & WS_MINIMIZEBOX) TRACE(" WS_MINIMIZEBOX");
+ if(style & WS_MAXIMIZEBOX) TRACE(" WS_MAXIMIZEBOX");
+ }
/* FIXME: Add dumping of BS_/ES_/SBS_/LBS_/CBS_/DS_/etc. styles */
#define DUMPED_STYLES \
More information about the wine-patches
mailing list