]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/msw/minifram.h
Upported combobox changes and another fix.
[wxWidgets.git] / include / wx / msw / minifram.h
... / ...
CommitLineData
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#ifdef __GNUG__
16#pragma interface "minifram.h"
17#endif
18
19#include "wx/frame.h"
20
21#ifdef __WIN32__
22
23class WXDLLEXPORT wxMiniFrame : public wxFrame
24{
25public:
26 wxMiniFrame() { }
27 wxMiniFrame(wxWindow *parent,
28 wxWindowID id,
29 const wxString& title,
30 const wxPoint& pos = wxDefaultPosition,
31 const wxSize& size = wxDefaultSize,
32 long style = wxCAPTION | wxCLIP_CHILDREN | wxRESIZE_BORDER,
33 const wxString& name = wxFrameNameStr)
34 {
35 Create(parent, id, title, pos, size,
36 style |
37 wxFRAME_TOOL_WINDOW |
38 (parent ? wxFRAME_FLOAT_ON_PARENT : 0), name);
39 }
40
41protected:
42 DECLARE_DYNAMIC_CLASS(wxMiniFrame)
43};
44
45
46#else // !Win32
47
48class WXDLLEXPORT wxMiniFrame : public wxFrame
49{
50public:
51 wxMiniFrame() { }
52 wxMiniFrame(wxWindow *parent,
53 wxWindowID id,
54 const wxString& title,
55 const wxPoint& pos = wxDefaultPosition,
56 const wxSize& size = wxDefaultSize,
57 long style = wxDEFAULT_FRAME_STYLE|wxTINY_CAPTION_HORIZ,
58 const wxString& name = wxFrameNameStr)
59 {
60 Create(parent, id, title, pos, size, style, name);
61 }
62
63 virtual ~wxMiniFrame();
64
65 virtual long MSWDefWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam);
66
67 DECLARE_DYNAMIC_CLASS(wxMiniFrame)
68};
69
70#endif // Win32/!Win32
71
72#endif
73 // _WX_MINIFRAM_H_