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:
@@ -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_
|
||||
|
@@ -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__
|
||||
|
Reference in New Issue
Block a user