win32 miniframe added

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3299 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
1999-08-06 11:52:33 +00:00
parent f8c4475a3e
commit 7309b92dd7
2 changed files with 43 additions and 0 deletions

View File

@@ -18,6 +18,31 @@
#include "wx/frame.h" #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 { class WXDLLEXPORT wxMiniFrame: public wxFrame {
DECLARE_DYNAMIC_CLASS(wxMiniFrame) DECLARE_DYNAMIC_CLASS(wxMiniFrame)
@@ -42,5 +67,8 @@ public:
protected: protected:
}; };
#endif
#endif #endif
// _WX_MINIFRAM_H_ // _WX_MINIFRAM_H_

View File

@@ -30,6 +30,19 @@
#include "wx/utils.h" #include "wx/utils.h"
#endif #endif
#ifdef __WIN32__
#include "wx/minifram.h"
#if !USE_SHARED_LIBRARY
IMPLEMENT_DYNAMIC_CLASS(wxMiniFrame, wxFrame)
#endif
#else
#if wxUSE_ITSY_BITSY #if wxUSE_ITSY_BITSY
#include "wx/minifram.h" #include "wx/minifram.h"
@@ -1610,3 +1623,5 @@ void PASCAL DrawArrow( HDC hdc, LPRECT lprc, UINT uiStyle )
} // DrawArrow() } // DrawArrow()
#endif // wxUSE_ITSY_BITSY #endif // wxUSE_ITSY_BITSY
#endif // __WIN32__