Add dumping of window styles at the window creation time

Dmitry Timoshkov dmitry at baikal.ru
Mon Nov 5 20:11:46 CST 2001


Hello.

Changelog:
    Dmitry Timoshkov <dmitry at codeweavers.com>
    Add dumping of window styles at the window creation time.

--- cvs/wine/windows/win.c	Mon Oct 29 16:01:49 2001
+++ wine/windows/win.c	Mon Nov  5 22:12:41 2001
@@ -905,6 +905,101 @@
           cs->dwExStyle, cs->style, cs->x, cs->y, cs->cx, cs->cy,
           cs->hwndParent, cs->hMenu, cs->hInstance, cs->lpCreateParams );
 
+    /* Dump window styles */
+    if(TRACE_ON(win))
+    {
+	if(cs->style & WS_POPUP) DPRINTF(" WS_POPUP");
+	if(cs->style & WS_CHILD) DPRINTF(" WS_CHILD");
+	if(cs->style & WS_MINIMIZE) DPRINTF(" WS_MINIMIZE");
+	if(cs->style & WS_VISIBLE) DPRINTF(" WS_VISIBLE");
+	if(cs->style & WS_DISABLED) DPRINTF(" WS_DISABLED");
+	if(cs->style & WS_CLIPSIBLINGS) DPRINTF(" WS_CLIPSIBLINGS");
+	if(cs->style & WS_CLIPCHILDREN) DPRINTF(" WS_CLIPCHILDREN");
+	if(cs->style & WS_MAXIMIZE) DPRINTF(" WS_MAXIMIZE");
+	if((cs->style & WS_CAPTION) == WS_CAPTION) DPRINTF(" WS_CAPTION");
+	else
+	{
+	    if(cs->style & WS_BORDER) DPRINTF(" WS_BORDER");
+	    if(cs->style & WS_DLGFRAME) DPRINTF(" WS_DLGFRAME");
+	}
+	if(cs->style & WS_VSCROLL) DPRINTF(" WS_VSCROLL");
+	if(cs->style & WS_HSCROLL) DPRINTF(" WS_HSCROLL");
+	if(cs->style & WS_SYSMENU) DPRINTF(" WS_SYSMENU");
+	if(cs->style & WS_THICKFRAME) DPRINTF(" WS_THICKFRAME");
+	if(cs->style & WS_GROUP) DPRINTF(" WS_GROUP");
+	if(cs->style & WS_TABSTOP) DPRINTF(" WS_TABSTOP");
+	if(cs->style & WS_MINIMIZEBOX) DPRINTF(" WS_MINIMIZEBOX");
+	if(cs->style & WS_MAXIMIZEBOX) DPRINTF(" WS_MAXIMIZEBOX");
+
+	/* FIXME: Add dumping of BS_/ES_/SBS_/LBS_/CBS_/DS_/etc. styles */
+#define DUMPED_STYLES \
+	(WS_POPUP | \
+	WS_CHILD | \
+	WS_MINIMIZE | \
+	WS_VISIBLE | \
+	WS_DISABLED | \
+	WS_CLIPSIBLINGS | \
+	WS_CLIPCHILDREN | \
+	WS_MAXIMIZE | \
+	WS_BORDER | \
+	WS_DLGFRAME | \
+	WS_VSCROLL | \
+	WS_HSCROLL | \
+	WS_SYSMENU | \
+	WS_THICKFRAME | \
+	WS_GROUP | \
+	WS_TABSTOP | \
+	WS_MINIMIZEBOX | \
+	WS_MAXIMIZEBOX)
+
+	if(cs->style & ~DUMPED_STYLES) DPRINTF(" %08lx", cs->style & ~DUMPED_STYLES);
+	DPRINTF("\n");
+#undef DUMPED_STYLES
+
+	if(cs->dwExStyle & WS_EX_DLGMODALFRAME) DPRINTF(" WS_EX_DLGMODALFRAME");
+	if(cs->dwExStyle & WS_EX_DRAGDETECT) DPRINTF(" WS_EX_DRAGDETECT");
+	if(cs->dwExStyle & WS_EX_NOPARENTNOTIFY) DPRINTF(" WS_EX_NOPARENTNOTIFY");
+	if(cs->dwExStyle & WS_EX_TOPMOST) DPRINTF(" WS_EX_TOPMOST");
+	if(cs->dwExStyle & WS_EX_ACCEPTFILES) DPRINTF(" WS_EX_ACCEPTFILES");
+	if(cs->dwExStyle & WS_EX_TRANSPARENT) DPRINTF(" WS_EX_TRANSPARENT");
+	if(cs->dwExStyle & WS_EX_MDICHILD) DPRINTF(" WS_EX_MDICHILD");
+	if(cs->dwExStyle & WS_EX_TOOLWINDOW) DPRINTF(" WS_EX_TOOLWINDOW");
+	if(cs->dwExStyle & WS_EX_WINDOWEDGE) DPRINTF(" WS_EX_WINDOWEDGE");
+	if(cs->dwExStyle & WS_EX_CLIENTEDGE) DPRINTF(" WS_EX_CLIENTEDGE");
+	if(cs->dwExStyle & WS_EX_CONTEXTHELP) DPRINTF(" WS_EX_CONTEXTHELP");
+	if(cs->dwExStyle & WS_EX_RIGHT) DPRINTF(" WS_EX_RIGHT");
+	if(cs->dwExStyle & WS_EX_RTLREADING) DPRINTF(" WS_EX_RTLREADING");
+	if(cs->dwExStyle & WS_EX_LEFTSCROLLBAR) DPRINTF(" WS_EX_LEFTSCROLLBAR");
+	if(cs->dwExStyle & WS_EX_CONTROLPARENT) DPRINTF(" WS_EX_CONTROLPARENT");
+	if(cs->dwExStyle & WS_EX_STATICEDGE) DPRINTF(" WS_EX_STATICEDGE");
+	if(cs->dwExStyle & WS_EX_APPWINDOW) DPRINTF(" WS_EX_APPWINDOW");
+	if(cs->dwExStyle & WS_EX_LAYERED) DPRINTF(" WS_EX_LAYERED");
+
+#define DUMPED_EX_STYLES \
+	(WS_EX_DLGMODALFRAME | \
+	WS_EX_DRAGDETECT | \
+	WS_EX_NOPARENTNOTIFY | \
+	WS_EX_TOPMOST | \
+	WS_EX_ACCEPTFILES | \
+	WS_EX_TRANSPARENT | \
+	WS_EX_MDICHILD | \
+	WS_EX_TOOLWINDOW | \
+	WS_EX_WINDOWEDGE | \
+	WS_EX_CLIENTEDGE | \
+	WS_EX_CONTEXTHELP | \
+	WS_EX_RIGHT | \
+	WS_EX_RTLREADING | \
+	WS_EX_LEFTSCROLLBAR | \
+	WS_EX_CONTROLPARENT | \
+	WS_EX_STATICEDGE | \
+	WS_EX_APPWINDOW | \
+	WS_EX_LAYERED)
+
+	if(cs->dwExStyle & ~DUMPED_EX_STYLES) DPRINTF(" %08lx", cs->dwExStyle & ~DUMPED_EX_STYLES);
+	DPRINTF("\n");
+#undef DUMPED_EX_STYLES
+    }
+
     TRACE("winproc type is %d (%s)\n", type, (type == WIN_PROC_16) ? "WIN_PROC_16" :
 	    ((type == WIN_PROC_32A) ? "WIN_PROC_32A" : "WIN_PROC_32W") );
 






More information about the wine-patches mailing list