]>
Commit | Line | Data |
---|---|---|
2bda0e17 KB |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: minifram.h | |
3 | // Purpose: wxMiniFrame class | |
4 | // Author: Julian Smart | |
5 | // Modified by: | |
6 | // Created: 01/02/97 | |
7 | // RCS-ID: $Id$ | |
bbcdf8bc JS |
8 | // Copyright: (c) Julian Smart |
9 | // Licence: wxWindows licence | |
2bda0e17 KB |
10 | ///////////////////////////////////////////////////////////////////////////// |
11 | ||
bbcdf8bc JS |
12 | #ifndef _WX_MINIFRAM_H_ |
13 | #define _WX_MINIFRAM_H_ | |
2bda0e17 KB |
14 | |
15 | #ifdef __GNUG__ | |
16 | #pragma interface "minifram.h" | |
17 | #endif | |
18 | ||
19 | #include "wx/frame.h" | |
20 | ||
7309b92d VS |
21 | #ifdef __WIN32__ |
22 | ||
23 | class WXDLLEXPORT wxMiniFrame: public wxFrame { | |
24 | ||
25 | DECLARE_DYNAMIC_CLASS(wxMiniFrame) | |
26 | ||
27 | public: | |
28 | inline wxMiniFrame(void) {} | |
29 | inline wxMiniFrame(wxWindow *parent, | |
30 | wxWindowID id, | |
31 | const wxString& title, | |
32 | const wxPoint& pos = wxDefaultPosition, | |
33 | const wxSize& size = wxDefaultSize, | |
34 | long style = wxDEFAULT_FRAME_STYLE, | |
35 | const wxString& name = wxFrameNameStr) | |
36 | { | |
37 | Create(parent, id, title, pos, size, style | wxFRAME_TOOL_WINDOW | wxFRAME_FLOAT_ON_PARENT, name); | |
38 | } | |
39 | ||
40 | protected: | |
41 | }; | |
42 | ||
43 | ||
44 | #else | |
45 | ||
2bda0e17 KB |
46 | class WXDLLEXPORT wxMiniFrame: public wxFrame { |
47 | ||
48 | DECLARE_DYNAMIC_CLASS(wxMiniFrame) | |
49 | ||
50 | public: | |
51 | inline wxMiniFrame(void) {} | |
52 | inline wxMiniFrame(wxWindow *parent, | |
debe6624 | 53 | wxWindowID id, |
2bda0e17 KB |
54 | const wxString& title, |
55 | const wxPoint& pos = wxDefaultPosition, | |
56 | const wxSize& size = wxDefaultSize, | |
ca5e9f67 | 57 | long style = wxDEFAULT_FRAME_STYLE|wxTINY_CAPTION_HORIZ, |
2bda0e17 KB |
58 | const wxString& name = wxFrameNameStr) |
59 | { | |
60 | Create(parent, id, title, pos, size, style, name); | |
61 | } | |
62 | ||
63 | ~wxMiniFrame(void); | |
64 | ||
65 | long MSWDefWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam); | |
66 | ||
67 | protected: | |
68 | }; | |
69 | ||
7309b92d VS |
70 | #endif |
71 | ||
72 | ||
2bda0e17 | 73 | #endif |
bbcdf8bc | 74 | // _WX_MINIFRAM_H_ |