Added WCE toolbar
Got menubars working with WCE git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22085 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -25,6 +25,10 @@
|
||||
|
||||
class WXDLLEXPORT wxFrame;
|
||||
|
||||
#if defined(__WXWINCE__) && wxUSE_TOOLBAR
|
||||
class WXDLLEXPORT wxToolBar;
|
||||
#endif
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// Menu
|
||||
// ----------------------------------------------------------------------------
|
||||
@@ -153,6 +157,12 @@ public:
|
||||
virtual void Detach();
|
||||
virtual void Attach(wxFrame *frame);
|
||||
|
||||
#if defined(__WXWINCE__) && wxUSE_TOOLBAR
|
||||
// Under WinCE, a menubar is owned by the frame's toolbar
|
||||
void SetToolBar(wxToolBar* toolBar) { m_toolBar = toolBar; }
|
||||
wxToolBar* GetToolBar() const { return m_toolBar; }
|
||||
#endif
|
||||
|
||||
#if wxUSE_ACCEL
|
||||
// get the accel table for all the menus
|
||||
const wxAcceleratorTable& GetAccelTable() const { return m_accelTable; }
|
||||
@@ -189,6 +199,10 @@ protected:
|
||||
wxAcceleratorTable m_accelTable;
|
||||
#endif // wxUSE_ACCEL
|
||||
|
||||
#if defined(__WXWINCE__) && wxUSE_TOOLBAR
|
||||
wxToolBar* m_toolBar;
|
||||
#endif
|
||||
|
||||
private:
|
||||
DECLARE_DYNAMIC_CLASS(wxMenuBar)
|
||||
};
|
||||
|
Reference in New Issue
Block a user