// fall through
case wxFONTSTYLE_NORMAL:
+ lf.lfItalic = FALSE;
break;
case wxFONTSTYLE_ITALIC:
{
wxString s;
- s.Printf(_T("%d;%d;%d;%d;%d;%d;%d;%d;%d;%d;%d;%d;%d;%d;%s"),
+ s.Printf(_T("%d;%ld;%ld;%ld;%ld;%ld;%d;%d;%d;%d;%d;%d;%d;%d;%s"),
0, // version, in case we want to change the format later
lf.lfHeight,
lf.lfWidth,
return FALSE;
}
-WXHANDLE wxFont::GetResourceHandle()
+WXHANDLE wxFont::GetResourceHandle() const
{
- return GetHFONT();
+ return (WXHANDLE)GetHFONT();
}
WXHFONT wxFont::GetHFONT() const