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:
Stefan Csomor
2006-08-10 05:31:13 +00:00
parent c7f200e9c5
commit 9a62fa17b1
2 changed files with 2 additions and 2 deletions

View File

@@ -37,7 +37,7 @@ static int nextPopUpMenuId = 1000 ;
MenuHandle NewUniqueMenu()
{
MenuHandle handle = NewMenu( nextPopUpMenuId , "\pMenu" ) ;
MenuHandle handle = UMANewMenu(nextPopUpMenuId, wxString(wxT("Menu")), wxFont::GetDefaultEncoding() );
nextPopUpMenuId++ ;
return handle ;

View File

@@ -235,7 +235,7 @@ pascal OSStatus wxDockEventHandler( EventHandlerCallRef inHandlerCallRef,
// When SetEventParameter is called it will decrement
// the reference count of the menu - we need to make
// sure it stays around in the wxMenu class here
RetainMenu(hMenu);
CFRetain(hMenu);
// set the actual dock menu
err = SetEventParameter(