X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/96ac065f9ecc4d3d5c2c3ad6521091cc5d920024..d6d6a882d4d8ea0d7ef706a45fa92b96f34c94c7:/include/wx/frame.h diff --git a/include/wx/frame.h b/include/wx/frame.h index 3f769979b6..cc09dfbcb4 100644 --- a/include/wx/frame.h +++ b/include/wx/frame.h @@ -5,7 +5,7 @@ // Modified by: // Created: 15.11.99 // RCS-ID: $Id$ -// Copyright: (c) wxWindows team +// Copyright: (c) wxWidgets team // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -32,6 +32,16 @@ class WXDLLEXPORT wxMenuBar; class WXDLLEXPORT wxStatusBar; class WXDLLEXPORT wxToolBar; +// ---------------------------------------------------------------------------- +// constants +// ---------------------------------------------------------------------------- + +// wxFrame-specific (i.e. not for wxDialog) styles +#define wxFRAME_NO_TASKBAR 0x0002 // No taskbar button (MSW only) +#define wxFRAME_TOOL_WINDOW 0x0004 // No taskbar button, no system menu +#define wxFRAME_FLOAT_ON_PARENT 0x0008 // Always above its parent +#define wxFRAME_SHAPED 0x0010 // Create a window that is able to be shaped + // ---------------------------------------------------------------------------- // wxFrame is a top-level window with optional menubar, statusbar and toolbar // @@ -89,7 +99,7 @@ public: #if wxUSE_STATUSBAR // create the main status bar by calling OnCreateStatusBar() virtual wxStatusBar* CreateStatusBar(int number = 1, - long style = wxST_SIZEGRIP, + long style = wxST_SIZEGRIP|wxFULL_REPAINT_ON_RESIZE, wxWindowID winid = 0, const wxString& name = wxStatusLineNameStr); @@ -102,7 +112,8 @@ public: virtual wxStatusBar *GetStatusBar() const { return m_frameStatusBar; } // sets the main status bar - void SetStatusBar(wxStatusBar *statBar) { m_frameStatusBar = statBar; } + void SetStatusBar(wxStatusBar *statBar) + { m_frameStatusBar = statBar; PositionStatusBar(); } // forward these to status bar virtual void SetStatusText(const wxString &text, int number = 0); @@ -170,7 +181,7 @@ public: // if you are hiding the help, TRUE otherwise virtual void DoGiveHelp(const wxString& text, bool show); -#ifdef WXWIN_COMPATIBILITY_2_2 +#if WXWIN_COMPATIBILITY_2_2 // call this to simulate a menu command bool Command(int winid) { return ProcessCommand(winid); } #endif // WXWIN_COMPATIBILITY_2_2