Close button on MFC dockable windows

Justin Chevrier burner1 at hotmail.com
Mon Mar 1 23:07:44 CST 2004


Several programs:
eg:

Powergrab: http://www.cosmicwolf.com
SCB Demo3: http://adam.stup.ac.ru/Developer/
ArticleDetail.aspx?ar=318&l=n&mi=10&mic=40

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.

Justin Chevrier

Changelog:
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*   
http://join.msn.com/?page=dept/bcomm&pgmarket=en-ca&RU=http%3a%2f%2fjoin.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freetype.diff
Type: application/octet-stream
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 mailing list