From: Václav Slavík Date: Fri, 6 Aug 1999 11:52:33 +0000 (+0000) Subject: win32 miniframe added X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/7309b92dd71901b8c96dea3e48e57a6c21d072a4 win32 miniframe added git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3299 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/msw/minifram.h b/include/wx/msw/minifram.h index 97ba03c69a..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) @@ -42,5 +67,8 @@ public: protected: }; +#endif + + #endif // _WX_MINIFRAM_H_ diff --git a/src/msw/minifram.cpp b/src/msw/minifram.cpp index e40b0532f8..819e0b01d3 100644 --- a/src/msw/minifram.cpp +++ b/src/msw/minifram.cpp @@ -30,6 +30,19 @@ #include "wx/utils.h" #endif + +#ifdef __WIN32__ + +#include "wx/minifram.h" + +#if !USE_SHARED_LIBRARY +IMPLEMENT_DYNAMIC_CLASS(wxMiniFrame, wxFrame) +#endif + + +#else + + #if wxUSE_ITSY_BITSY #include "wx/minifram.h" @@ -1610,3 +1623,5 @@ void PASCAL DrawArrow( HDC hdc, LPRECT lprc, UINT uiStyle ) } // DrawArrow() #endif // wxUSE_ITSY_BITSY + +#endif // __WIN32__