]> git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk/minifram.h
Forward events to active child at MSW, not wx, level in wxMDIParentFrame.
[wxWidgets.git] / include / wx / gtk / minifram.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk/minifram.h
3 // Purpose: wxMiniFrame class
4 // Author: Robert Roebling
5 // RCS-ID: $Id$
6 // Copyright: (c) Robert Roebling
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
9
10 #ifndef _WX_GTK_MINIFRAME_H_
11 #define _WX_GTK_MINIFRAME_H_
12
13 #include "wx/bitmap.h"
14 #include "wx/frame.h"
15
16 //-----------------------------------------------------------------------------
17 // wxMiniFrame
18 //-----------------------------------------------------------------------------
19
20 class WXDLLIMPEXP_CORE wxMiniFrame: public wxFrame
21 {
22 DECLARE_DYNAMIC_CLASS(wxMiniFrame)
23
24 public:
25 wxMiniFrame() {}
26 wxMiniFrame(wxWindow *parent,
27 wxWindowID id,
28 const wxString& title,
29 const wxPoint& pos = wxDefaultPosition,
30 const wxSize& size = wxDefaultSize,
31 long style = wxCAPTION | wxRESIZE_BORDER,
32 const wxString& name = wxFrameNameStr)
33 {
34 Create(parent, id, title, pos, size, style, name);
35 }
36 ~wxMiniFrame();
37
38 bool Create(wxWindow *parent,
39 wxWindowID id,
40 const wxString& title,
41 const wxPoint& pos = wxDefaultPosition,
42 const wxSize& size = wxDefaultSize,
43 long style = wxCAPTION | wxRESIZE_BORDER,
44 const wxString& name = wxFrameNameStr);
45
46 virtual void SetTitle( const wxString &title );
47
48 protected:
49 virtual void DoSetSizeHints( int minW, int minH,
50 int maxW, int maxH,
51 int incW, int incH );
52 virtual void DoGetClientSize(int* width, int* height) const;
53
54 // implementation
55 public:
56 bool m_isDragging;
57 int m_oldX,m_oldY;
58 int m_diffX,m_diffY;
59 wxBitmap m_closeButton;
60 int m_miniEdge;
61 int m_miniTitle;
62 };
63
64 #endif // _WX_GTK_MINIFRAME_H_