]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/font.cpp
indicate whether this is a selection or a deselection in wxCommandEvent generated...
[wxWidgets.git] / src / msw / font.cpp
index c1d032c4760d29dbee3ac4eb88c86348a81bb8c2..dc601f5af85218116222cb28a35a474234982742 100644 (file)
@@ -432,6 +432,7 @@ void wxNativeFontInfo::SetStyle(wxFontStyle style)
             // fall through
 
         case wxFONTSTYLE_NORMAL:
+            lf.lfItalic = FALSE;
             break;
 
         case wxFONTSTYLE_ITALIC:
@@ -741,9 +742,9 @@ bool wxFont::FreeResource(bool WXUNUSED(force))
     return FALSE;
 }
 
-WXHANDLE wxFont::GetResourceHandle()
+WXHANDLE wxFont::GetResourceHandle() const
 {
-    return GetHFONT();
+    return (WXHANDLE)GetHFONT();
 }
 
 WXHFONT wxFont::GetHFONT() const