Fix toolbar getstyle

Maxime Bellengé maxime.bellenge at laposte.net
Sat May 1 10:21:34 CDT 2004


Here is a revised version of my patch for toolbar getstyle.
After testing under windows xp, I found that the wParam and lParam of
the TB_GETSTYLE are really unused. Now TOOLBAR_GetStyle returns as it
should do, the style of the toolbar and not the style of a button.
Moreover, thanks to the help of Gé Van Geldorp, this patch fixes also
the case where the toolbar could be invisible if an app was doing
something like :
SendMessage(hwndTB, TB_SETSTYLE, 0,
            SendMessage(hwndTB, TB_GETSTYLE, 0, 0) | TBSTYLE_FLAT );

Changelog:
   * Fix TB_GETSTYLE message to return the style of the toolbar and not
the style of a button.

-- 
Maxime Bellengé <maxime.bellenge at laposte.net>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: toolbargetstyle.patch
Type: text/x-patch
Size: 714 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20040501/031a5f09/toolbargetstyle.bin


More information about the wine-patches mailing list