Toolbar: Simplify and Fix Sizing Code [5/6]

Robert Shearman rob at codeweavers.com
Fri Jul 22 06:57:05 CDT 2005


Changelog:
- Height is now calculated based on the number of rows, not on the 
bounding rect.
- Only call CalcToolbar in AutoSize if it has TBSTYLE_WRAPABLE or 
TBSTYLE_EX_UNDOC1 set.
- Remove a bad test in SetButtonWidth that fixes a regression from the 
above change in IE.
- Remove unnecessary nHeight data.
- Remove duplicated code in Size by calling AutoSize.
- Remove unnecessary bAutoSize value because SetWindowPos doesn't 
generate WM_SIZE when there is nothing to do on both Windows and Wine.

-- 
Rob Shearman

-------------- next part --------------
A non-text attachment was scrubbed...
Name: toolbar5.diff
Type: text/x-patch
Size: 12745 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20050722/01ce16e3/toolbar5.bin


More information about the wine-patches mailing list