]>
Commit | Line | Data |
---|---|---|
1 | ///////////////////////////////////////////////////////////////////////////// | |
2 | // Name: wx/msw/minifram.h | |
3 | // Purpose: wxMiniFrame class | |
4 | // Author: Julian Smart | |
5 | // Modified by: | |
6 | // Created: 01/02/97 | |
7 | // Copyright: (c) Julian Smart | |
8 | // Licence: wxWindows licence | |
9 | ///////////////////////////////////////////////////////////////////////////// | |
10 | ||
11 | #ifndef _WX_MINIFRAM_H_ | |
12 | #define _WX_MINIFRAM_H_ | |
13 | ||
14 | #include "wx/frame.h" | |
15 | ||
16 | class WXDLLIMPEXP_CORE wxMiniFrame : public wxFrame | |
17 | { | |
18 | public: | |
19 | wxMiniFrame() { } | |
20 | ||
21 | bool Create(wxWindow *parent, | |
22 | wxWindowID id, | |
23 | const wxString& title, | |
24 | const wxPoint& pos = wxDefaultPosition, | |
25 | const wxSize& size = wxDefaultSize, | |
26 | long style = wxCAPTION | wxCLIP_CHILDREN | wxRESIZE_BORDER, | |
27 | const wxString& name = wxFrameNameStr) | |
28 | { | |
29 | return wxFrame::Create(parent, id, title, pos, size, | |
30 | style | | |
31 | wxFRAME_TOOL_WINDOW | | |
32 | (parent ? wxFRAME_FLOAT_ON_PARENT : 0), name); | |
33 | } | |
34 | ||
35 | wxMiniFrame(wxWindow *parent, | |
36 | wxWindowID id, | |
37 | const wxString& title, | |
38 | const wxPoint& pos = wxDefaultPosition, | |
39 | const wxSize& size = wxDefaultSize, | |
40 | long style = wxCAPTION | wxCLIP_CHILDREN | wxRESIZE_BORDER, | |
41 | const wxString& name = wxFrameNameStr) | |
42 | { | |
43 | Create(parent, id, title, pos, size, style, name); | |
44 | } | |
45 | ||
46 | protected: | |
47 | DECLARE_DYNAMIC_CLASS_NO_COPY(wxMiniFrame) | |
48 | }; | |
49 | ||
50 | #endif | |
51 | // _WX_MINIFRAM_H_ |