Toolbar: Drawing Code Rewrite

Robert Shearman R.J.Shearman at
Wed Mar 10 09:45:29 CST 2004


This patch makes DrawButton a lot simpler. It splits out the drawing
functions into DrawImage which draws the button image, DrawFrame which
draws the frame around the button and DrawSepDDArrow which draws the
entire separate drop-down arrow. Not only does this make the drawing
functions easier to manage, it should also make it easier to add theming
code in the future (they are now split up into the same parts as in the
themes). We also now properly support the state CDIS_MARKED/BTNS_MARKED.
Next on the agenda is to rewrite the button size calculation code,
including integrating Dmitry's code.

Rewrite drawing code

-------------- next part --------------
A non-text attachment was scrubbed...
Name: toolbar_drawing.diff
Type: text/x-patch
Size: 24214 bytes
Desc: not available
Url :

More information about the wine-patches mailing list