Implemented PocketPC menubar/toolbar as wxToolMenuBar derived

from wxToolBar, solving the problem of how normal toolbars
can co-exist with combined ones. Tidied up WinCE toolbar code.
Implemented wxToolBar as 'dummy' toolbar under Smartphone.
Dialogs now show an empty menubar to hide inactive one
underneath.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32853 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2005-03-16 17:51:41 +00:00
parent 2ecf902bc8
commit a9102b3671
13 changed files with 263 additions and 512 deletions

View File

@@ -489,9 +489,15 @@ wxToolBar* wxFrameBase::OnCreateToolBar(long style,
wxWindowID id,
const wxString& name)
{
#if defined(__WXWINCE__) && defined(__POCKETPC__)
return new wxToolMenuBar(this, id,
wxDefaultPosition, wxDefaultSize,
style, name);
#else
return new wxToolBar(this, id,
wxDefaultPosition, wxDefaultSize,
style, name);
#endif
}
void wxFrameBase::SetToolBar(wxToolBar *toolbar)