using newer API
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40544 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -37,7 +37,7 @@ static int nextPopUpMenuId = 1000 ;
|
|||||||
|
|
||||||
MenuHandle NewUniqueMenu()
|
MenuHandle NewUniqueMenu()
|
||||||
{
|
{
|
||||||
MenuHandle handle = NewMenu( nextPopUpMenuId , "\pMenu" ) ;
|
MenuHandle handle = UMANewMenu(nextPopUpMenuId, wxString(wxT("Menu")), wxFont::GetDefaultEncoding() );
|
||||||
nextPopUpMenuId++ ;
|
nextPopUpMenuId++ ;
|
||||||
|
|
||||||
return handle ;
|
return handle ;
|
||||||
|
@@ -235,7 +235,7 @@ pascal OSStatus wxDockEventHandler( EventHandlerCallRef inHandlerCallRef,
|
|||||||
// When SetEventParameter is called it will decrement
|
// When SetEventParameter is called it will decrement
|
||||||
// the reference count of the menu - we need to make
|
// the reference count of the menu - we need to make
|
||||||
// sure it stays around in the wxMenu class here
|
// sure it stays around in the wxMenu class here
|
||||||
RetainMenu(hMenu);
|
CFRetain(hMenu);
|
||||||
|
|
||||||
// set the actual dock menu
|
// set the actual dock menu
|
||||||
err = SetEventParameter(
|
err = SetEventParameter(
|
||||||
|
Reference in New Issue
Block a user