dlls/user/button.c - fix AUTO3STATE with BS_OWNERDRAW (Resend)
Michael Lin
mlin at corvu.com.au
Wed Mar 16 21:56:00 CST 2005
AUTO3STATE control with BS_OWNERDRAW set will not get created.
ChangeLog:
* fix AUTO3STATE with BS_OWNERDRAW set
-------------- next part --------------
Index: dlls/user/button.c
===================================================================
RCS file: /home/wine/wine/dlls/user/button.c,v
retrieving revision 1.6
diff -u -r1.6 button.c
--- dlls/user/button.c 23 Dec 2004 17:21:05 -0000 1.6
+++ dlls/user/button.c 17 Mar 2005 03:53:08 -0000
@@ -180,7 +180,10 @@
inline static UINT get_button_type( LONG window_style )
{
- return (window_style & 0x0f);
+ if ((window_style & BS_OWNERDRAW) == BS_OWNERDRAW)
+ return BS_OWNERDRAW;
+ else
+ return (window_style & 0x0f);
}
/* paint a button of any type */
More information about the wine-patches
mailing list