supporting menu dimension retrieval for menubars, fixes #2570
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76943 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
		| @@ -202,6 +202,11 @@ public : | ||||
|     wxMenu* GetWXPeer() { return m_peer ; } | ||||
|  | ||||
|     virtual void PopUp( wxWindow *win, int x, int y ) = 0; | ||||
|      | ||||
|     virtual void GetMenuBarDimensions(int &x, int &y, int &width, int &height) const | ||||
|     { | ||||
|         x = y = width = height = -1; | ||||
|     } | ||||
|  | ||||
|     static wxMenuImpl* Create( wxMenu* peer, const wxString& title ); | ||||
|     static wxMenuImpl* CreateRootMenu( wxMenu* peer ); | ||||
|   | ||||
| @@ -160,6 +160,11 @@ public: | ||||
|  | ||||
|  | ||||
|     static WXHMENU MacGetWindowMenuHMenu() { return s_macWindowMenuHandle ; } | ||||
|      | ||||
|     virtual void DoGetPosition(int *x, int *y) const; | ||||
|     virtual void DoGetSize(int *width, int *height) const; | ||||
|     virtual void DoGetClientSize(int *width, int *height) const; | ||||
|  | ||||
| protected: | ||||
|     // common part of all ctors | ||||
|     void Init(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user