Close button on MFC dockable windows
burner1 at hotmail.com
Mon Mar 1 23:07:44 CST 2004
SCB Demo3: http://adam.stup.ac.ru/Developer/
that make use of MFC to do things like dockable windows
don't properly draw the close button on docked windows.
Instead of an 'x' it looked more like an 'r'. After some
investigation and traces I saw that wine was substituting
Arial in for Marlett when Marlett was specified with a
DEFAULT_CHARSET. I changed the behaviour to instead
load 'webdings' when this situation was encountered. This
changed the font drawn on the button from an Arial 'r' to a
Webding close 'x' character. Unfortunately it was drawn well
below the actual button. I am not sure of the correct way
to fix this. I have included a changed line:
if(ppem <= startsz || ppem > endsz)
that corrects this but I doubt it's correct.
Allow MFC programs that dock windows to draw a correct close button.
STOP MORE SPAM with the new MSN 8 and get 2 months FREE*
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 1601 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20040302/7939ed9d/freetype.obj
More information about the wine-patches