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