## wxMiniFrame

A miniframe is a frame with a small title bar. It is suitable for floating toolbars that must not take up too much screen area.

Derived from

wxFrame
wxWindow
wxEvtHandler
wxObject

Include files

<wx/minifram.h>

Window styles

wxICONIZE | Display the frame iconized (minimized) (Windows only).
wxCAPTION | Puts a caption on the frame.
wxMINIMIZE | Identical to wxICONIZE.
wxMINIMIZE_BOX | Displays a minimize box on the frame (Windows and Motif only).
wxMAXIMIZE | Displays the frame maximized (Windows only).
wxMAXIMIZE_BOX | Displays a maximize box on the frame (Windows and Motif only).
wxCLOSE_BOX | Displays a close box on the frame.
wxSTAY_ON_TOP | Stay on top of other windows (Windows only).
wxSYSTEM_MENU | Displays a system menu (Windows and Motif only).
wxTINY_CAPTION_HORIZ | This style is obsolete and not used any longer.
wxTINY_CAPTION_VERT | This style is obsolete and not used any longer.
wxRESIZE_BORDER | Displays a resizeable border around the window.

Remarks

This class has miniframe functionality under Windows and GTK, i.e. the presence of mini frame will not be noted in the task bar and focus behaviour is different. On other platforms, it behaves like a normal frame.

See also

wxMDIParentFrame, wxMDIChildFrame, wxFrame, wxDialog

Members

wxMiniFrame::wxMiniFrame
wxMiniFrame::~wxMiniFrame
wxMiniFrame::Create

### wxMiniFrame::wxMiniFrame

wxMiniFrame()

Default constructor.

wxMiniFrame(wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxCAPTION | wxRESIZE_BORDER, const wxString& name = "frame")

Constructor, creating the window.

Parameters

parent

The window parent. This may be NULL. If it is non-NULL, the frame will always be displayed on top of the parent window on Windows.

id

The window identifier. It may take a value of -1 to indicate a default value.

title

The caption to be displayed on the frame's title bar.

pos

The window position. A value of (-1, -1) indicates a default position, chosen by either the windowing system or wxWidgets, depending on platform.

size

The window size. A value of (-1, -1) indicates a default size, chosen by either the windowing system or wxWidgets, depending on platform.

style

The window style. See wxMiniFrame.

name

The name of the window. This parameter is used to associate a name with the item, allowing the application user to set Motif resource values for individual windows.

Remarks

The frame behaves like a normal frame on non-Windows platforms.

See also

wxMiniFrame::Create

### wxMiniFrame::~wxMiniFrame

void ~wxMiniFrame()

Destructor. Destroys all child windows and menu bar if present.

### wxMiniFrame::Create

bool Create(wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxCAPTION | wxRESIZE_BORDER, const wxString& name = "frame")

Used in two-step frame construction. See wxMiniFrame::wxMiniFrame for further details.