X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1b24a68eba162797e54756c6562fb4b4b54112cb..1fc8878582bcdab2a90b95fb713c4d088a0e2a57:/src/msw/ownerdrw.cpp diff --git a/src/msw/ownerdrw.cpp b/src/msw/ownerdrw.cpp index 2c2ec2a8ea..f0f1223260 100644 --- a/src/msw/ownerdrw.cpp +++ b/src/msw/ownerdrw.cpp @@ -15,6 +15,7 @@ // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" +#include "wx/msw/private.h" #ifdef __BORLANDC__ #pragma hdrstop @@ -22,7 +23,7 @@ #ifndef WX_PRECOMP #include "wx/window.h" - #include "wx/msw/private.h" +// #include "wx/msw/private.h" #include "wx/font.h" #include "wx/bitmap.h" #include "wx/dcmemory.h" @@ -30,6 +31,7 @@ #include "wx/utils.h" #endif +#include "wx/settings.h" #include "wx/ownerdrw.h" #include "wx/menuitem.h" @@ -50,6 +52,8 @@ wxOwnerDrawn::wxOwnerDrawn(const wxString& str, m_bOwnerDrawn = FALSE; m_nHeight = 0; m_nMarginWidth = ms_nLastMarginWidth; + if (wxNORMAL_FONT) + m_font = * wxNORMAL_FONT; } #if defined(__WXMSW__) && defined(__WIN32__) && defined(SM_CXMENUCHECK)