From fffa92eaee33adf0f70685c61d88866559c6e184 Mon Sep 17 00:00:00 2001 From: Dimitri Schoolwerth Date: Fri, 27 Jun 2014 05:29:30 +0000 Subject: [PATCH] Fix compilation with wxUSE_MENUITEMINFO==0. Add argument to a call to GetHBitmapForMenu, which doesn't have a default parameter any more. Fixes (this part of) WinCE compilation. Broken since r76760. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76780 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/menu.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/msw/menu.cpp b/src/msw/menu.cpp index 5984f49377..800dcdc8c9 100644 --- a/src/msw/menu.cpp +++ b/src/msw/menu.cpp @@ -641,7 +641,8 @@ bool wxMenu::DoInsertOrAppend(wxMenuItem *pItem, size_t pos) if ( pItem->GetBitmap().IsOk() ) { flags |= MF_BITMAP; - pData = reinterpret_cast(pItem->GetHBitmapForMenu()); + pData = reinterpret_cast( + pItem->GetHBitmapForMenu(wxMenuItem::Normal)); } else {