WinCE 4 cleanup

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25017 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2003-12-27 17:24:00 +00:00
parent 504de6d140
commit 2d36b3d847
4 changed files with 38 additions and 19 deletions

View File

@@ -51,12 +51,12 @@
#include <ole2.h>
#include <shellapi.h>
#include <commctrl.h>
#if _WIN32_WCE < 400
#include <aygshell.h>
#ifndef TBSTYLE_NO_DROPDOWN_ARROW
#define TBSTYLE_NO_DROPDOWN_ARROW 0x0080
#endif
#include "wx/msw/wince/missing.h"
#endif
// other standard headers
@@ -745,7 +745,7 @@ WXHMENU wxMenuBar::Create()
// since you have to use resources.
// We'll have to find another way to add a menu
// by changing/adding menu items to an existing menu.
#ifdef __WXWINCE__
#if defined(__WXWINCE__) && _WIN32_WCE < 400
if ( m_hMenu != 0 )
return m_hMenu;
@@ -806,6 +806,17 @@ WXHMENU wxMenuBar::Create()
}
}
#if _WIN32_WCE >= 400
if (GetToolBar())
{
HWND hCommandBar = (HWND) GetToolBar()->GetHWND();
if (!CommandBar_InsertMenubarEx(hCommandBar, NULL, (LPTSTR) m_hMenu, 0))
{
wxLogLastError(wxT("CommandBar_InsertMenubarEx"));
}
}
#endif
return m_hMenu;
#endif
}