[Bug 3639] toolbar button icons shifted
Wine Bugs
wine-bugs at winehq.org
Wed May 24 17:19:51 CDT 2006
http://bugs.winehq.org/show_bug.cgi?id=3639
------- Additional Comments From T.Bonner at freesurf.ch 2006-24-05 17:19 -------
During a programming work, I ran into a similar problem: loaded an external
bitmap for the toolbar (e.g. size was 64x15 for 4 buttons), and I erroneously
used the following code:
hwndTB = CreateToolbarEx
(hwndParent, /* paranet window */
dwToolBarStyles, /* window styles flags */
1, /* child ID */
14, /*15,*/ /* number of images in the bitmap */
GetModuleHandle(0), /*HINST_COMMCTRL,*/ /* bitmap resource */
(int) MAKEINTRESOURCE(300), /* uiBitmap ,*/ /* bitmap id */
ptbb, /* button array */
iNumButtons, /* number of elements in array */
16, 16, /* button size */
16, 16, /* bitmap size */
sizeof (TBBUTTON)
);
Here, the bitmap size y-value is wrong (I assumed the graphics was 16 in height,
but actually it was 15). Windows had no problems with this wrong value, but in
wine this resulted in a slightly wrong display. So I corrected the code and
everything went fine. In this sense, windows showed a more robust behavior to
wrong bitmap size values (although wine may be more correct here), and maybe
this is also the case here (or I should do a new bug report).
--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the wine-bugs
mailing list