]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/toplevel.cpp
reset fg/bg colour and font to default if set to wxNullColour/Font
[wxWidgets.git] / src / msw / toplevel.cpp
index 2f50475dcd606e21d4f03c77d1fcfe2119f35d2d..f42510697ae58f9080700b19d330f7f9bc6e4899 100644 (file)
@@ -143,6 +143,10 @@ void wxTopLevelWindowMSW::Init()
     m_fsIsShowing = FALSE;
 
     m_winLastFocused = (wxWindow *)NULL;
+
+#ifdef __SMARTPHONE__
+    m_MenuBarHWND = 0;
+#endif
 }
 
 WXDWORD wxTopLevelWindowMSW::MSWGetStyle(long style, WXDWORD *exflags) const
@@ -523,6 +527,11 @@ bool wxTopLevelWindowMSW::Create(wxWindow *parent,
        }
 #endif
 
+#ifdef __SMARTPHONE__
+    SetLeftMenu(wxID_EXIT, _("Done"));
+    SetRightMenu(); // to nothing for initialization
+#endif
+
     return ret;
 }