X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1169a91932273bc84c23ed9dbd0a2da064d59d66..af51080d149236d28af5484096a1b5eda43b5ae0:/include/wx/msw/toplevel.h?ds=inline diff --git a/include/wx/msw/toplevel.h b/include/wx/msw/toplevel.h index 1fb8f26792..7fec4742cb 100644 --- a/include/wx/msw/toplevel.h +++ b/include/wx/msw/toplevel.h @@ -24,7 +24,7 @@ class WXDLLEXPORT wxTopLevelWindowMSW : public wxTopLevelWindowBase { public: // constructors and such - wxTopLevelWindowMSW(); + wxTopLevelWindowMSW() { Init(); } wxTopLevelWindowMSW(wxWindow *parent, wxWindowID id, @@ -32,7 +32,12 @@ public: const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_FRAME_STYLE, - const wxString& name = wxFrameNameStr); + const wxString& name = wxFrameNameStr) + { + Init(); + + (void)Create(parent, id, title, pos, size, style, name); + } bool Create(wxWindow *parent, wxWindowID id, @@ -53,7 +58,9 @@ public: virtual void SetIcons(const wxIconBundle& icons ); virtual void Restore(); +#ifndef __WXWINCE__ virtual bool SetShape(const wxRegion& region); +#endif // __WXWINCE__ virtual bool Show(bool show = TRUE);