]> git.saurik.com Git - wxWidgets.git/blame - include/wx/msw/minifram.h
Fixed typo in my last commit (it did break socket detection code :-( ).
[wxWidgets.git] / include / wx / msw / minifram.h
CommitLineData
2bda0e17 1/////////////////////////////////////////////////////////////////////////////
3ca6a5f0 2// Name: wx/msw/minifram.h
2bda0e17
KB
3// Purpose: wxMiniFrame class
4// Author: Julian Smart
5// Modified by:
6// Created: 01/02/97
7// RCS-ID: $Id$
bbcdf8bc 8// Copyright: (c) Julian Smart
3ca6a5f0 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
3ca6a5f0
BP
23class WXDLLEXPORT wxMiniFrame : public wxFrame
24{
7309b92d 25public:
3ca6a5f0
BP
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)
7309b92d
VS
34 {
35 Create(parent, id, title, pos, size, style | wxFRAME_TOOL_WINDOW | wxFRAME_FLOAT_ON_PARENT, name);
36 }
37
38protected:
3ca6a5f0 39 DECLARE_DYNAMIC_CLASS(wxMiniFrame)
7309b92d
VS
40};
41
42
3ca6a5f0 43#else // !Win32
2bda0e17 44
3ca6a5f0
BP
45class WXDLLEXPORT wxMiniFrame : public wxFrame
46{
2bda0e17 47public:
3ca6a5f0
BP
48 wxMiniFrame() { }
49 wxMiniFrame(wxWindow *parent,
50 wxWindowID id,
51 const wxString& title,
52 const wxPoint& pos = wxDefaultPosition,
53 const wxSize& size = wxDefaultSize,
54 long style = wxDEFAULT_FRAME_STYLE|wxTINY_CAPTION_HORIZ,
55 const wxString& name = wxFrameNameStr)
2bda0e17
KB
56 {
57 Create(parent, id, title, pos, size, style, name);
58 }
59
3ca6a5f0 60 virtual ~wxMiniFrame();
2bda0e17 61
3ca6a5f0 62 virtual long MSWDefWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam);
2bda0e17 63
3ca6a5f0 64 DECLARE_DYNAMIC_CLASS(wxMiniFrame)
2bda0e17
KB
65};
66
3ca6a5f0 67#endif // Win32/!Win32
7309b92d 68
2bda0e17 69#endif
bbcdf8bc 70 // _WX_MINIFRAM_H_