X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bbcdf8bc7ca806d8278c7cb6d09d5590378b67d8..d194ddf23ba20f9513f59612023dfdf146626107:/include/wx/msw/minifram.h diff --git a/include/wx/msw/minifram.h b/include/wx/msw/minifram.h index 1debcd0082..9d1b228aac 100644 --- a/include/wx/msw/minifram.h +++ b/include/wx/msw/minifram.h @@ -18,6 +18,31 @@ #include "wx/frame.h" +#ifdef __WIN32__ + +class WXDLLEXPORT wxMiniFrame: public wxFrame { + + DECLARE_DYNAMIC_CLASS(wxMiniFrame) + +public: + inline wxMiniFrame(void) {} + inline wxMiniFrame(wxWindow *parent, + wxWindowID id, + const wxString& title, + const wxPoint& pos = wxDefaultPosition, + const wxSize& size = wxDefaultSize, + long style = wxDEFAULT_FRAME_STYLE, + const wxString& name = wxFrameNameStr) + { + Create(parent, id, title, pos, size, style | wxFRAME_TOOL_WINDOW | wxFRAME_FLOAT_ON_PARENT, name); + } + +protected: +}; + + +#else + class WXDLLEXPORT wxMiniFrame: public wxFrame { DECLARE_DYNAMIC_CLASS(wxMiniFrame) @@ -29,7 +54,7 @@ public: const wxString& title, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, - long style = wxDEFAULT_FRAME|wxTINY_CAPTION_HORIZ, + long style = wxDEFAULT_FRAME_STYLE|wxTINY_CAPTION_HORIZ, const wxString& name = wxFrameNameStr) { Create(parent, id, title, pos, size, style, name); @@ -42,5 +67,8 @@ public: protected: }; +#endif + + #endif // _WX_MINIFRAM_H_