X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1169a91932273bc84c23ed9dbd0a2da064d59d66..0e70f525fa60baefd9878758374b2019b804df82:/include/wx/msw/toplevel.h diff --git a/include/wx/msw/toplevel.h b/include/wx/msw/toplevel.h index 1fb8f26792..6684cc6d70 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); @@ -120,8 +127,5 @@ protected: DECLARE_NO_COPY_CLASS(wxTopLevelWindowMSW) }; -// list of all frames and modeless dialogs -extern WXDLLEXPORT_DATA(wxWindowList) wxModelessWindows; - #endif // _WX_MSW_TOPLEVEL_H_