X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/085ad68651cd624a11331f5ab2cb2720bd7162aa..39c0acb66674c5e0424633cf162e6c10c92178d4:/include/wx/msw/frame.h?ds=sidebyside diff --git a/include/wx/msw/frame.h b/include/wx/msw/frame.h index 4b4b657d2f..21b6badf86 100644 --- a/include/wx/msw/frame.h +++ b/include/wx/msw/frame.h @@ -5,14 +5,14 @@ // Modified by: // Created: 01/02/97 // RCS-ID: $Id$ -// Copyright: (c) Julian Smart and Markus Holzem -// Licence: wxWindows license +// Copyright: (c) Julian Smart +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef _WX_FRAME_H_ #define _WX_FRAME_H_ -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma interface "frame.h" #endif @@ -56,7 +56,7 @@ public: // Toolbar #if wxUSE_TOOLBAR - virtual wxToolBar* CreateToolBar(long style = wxNO_BORDER | wxTB_HORIZONTAL | wxTB_FLAT, + virtual wxToolBar* CreateToolBar(long style = -1, wxWindowID id = -1, const wxString& name = wxToolBarNameStr); @@ -100,7 +100,7 @@ public: // a MSW only function which sends a size event to the window using its // current size - this has an effect of refreshing the window layout - void SendSizeEvent(); + virtual void SendSizeEvent(); protected: // common part of all ctors @@ -128,6 +128,9 @@ protected: // window proc for the frames long MSWWindowProc(WXUINT message, WXWPARAM wParam, WXLPARAM lParam); + // handle WM_INITMENUPOPUP message + bool HandleInitMenuPopup(WXHMENU hMenu); + virtual bool IsMDIChild() const { return FALSE; } // get default (wxWindows) icon for the frame @@ -151,7 +154,7 @@ private: bool m_wasMinimized; DECLARE_EVENT_TABLE() - DECLARE_DYNAMIC_CLASS(wxFrame) + DECLARE_DYNAMIC_CLASS_NO_COPY(wxFrame) }; #endif