commctl32 datetime fix for certain VC++ AppWizard generated applications

Siim Karus siim04 at ut.ee
Fri Jan 6 10:02:09 CST 2006


As requested, I split my patches as I could.

This patch causes Datetime and Calendar to be registered in DllMain (as the 
tested applications never called InitCommonControls or InitCommonControlsEx).

Siim Karus
-------------- next part --------------
Index: wine/dlls/comctl32/commctrl.c
===================================================================
RCS file: /home/wine/wine/dlls/comctl32/commctrl.c,v
retrieving revision 1.98
diff -u -p -r1.98 commctrl.c
--- wine/dlls/comctl32/commctrl.c	12 Sep 2005 11:10:58 -0000	1.98
+++ wine/dlls/comctl32/commctrl.c	4 Jan 2006 20:52:08 -0000
@@ -144,6 +144,9 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, 
             TRACKBAR_Register ();
             TREEVIEW_Register ();
             UPDOWN_Register ();
+	    
+            MONTHCAL_Register ();
+            DATETIME_Register ();
 
             /* subclass user32 controls */
             THEMING_Initialize ();
@@ -175,6 +178,9 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, 
             TRACKBAR_Unregister ();
             TREEVIEW_Unregister ();
             UPDOWN_Unregister ();
+	    
+	    MONTHCAL_Unregister ();
+	    DATETIME_Unregister ();
 
             /* delete local pattern brush */
             DeleteObject (COMCTL32_hPattern55AABrush);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: siim04.vcf
Type: text/x-vcard
Size: 165 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20060106/2abc23f5/siim04.vcf


More information about the wine-patches mailing list