git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13697
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
+#ifdef WXMAKINGDLL
+extern short gCurrentResource ;
+#endif
void wxMenuBar::MacInstallMenuBar()
{
if ( s_macInstalledMenuBar == this )
return ;
void wxMenuBar::MacInstallMenuBar()
{
if ( s_macInstalledMenuBar == this )
return ;
+ wxStAppResource resload ;
+
Handle menubar = ::GetNewMBar( kwxMacMenuBarResource ) ;
wxString message ;
wxCHECK_RET( menubar != NULL, "can't read MBAR resource" );
Handle menubar = ::GetNewMBar( kwxMacMenuBarResource ) ;
wxString message ;
wxCHECK_RET( menubar != NULL, "can't read MBAR resource" );
MenuHandle menu = ::GetMenuHandle( kwxMacAppleMenuId ) ;
#if TARGET_API_MAC_OS8
MenuHandle menu = ::GetMenuHandle( kwxMacAppleMenuId ) ;
#if TARGET_API_MAC_OS8
- ::AppendResMenu(menu, 'DRVR');
+ if ( CountMenuItems( menu ) == 2 )
+ {
+ ::AppendResMenu(menu, 'DRVR');
+ }
#endif
for (int i = 0; i < m_menus.GetCount(); i++)
#endif
for (int i = 0; i < m_menus.GetCount(); i++)
s_macInstalledMenuBar = this;
}
s_macInstalledMenuBar = this;
}
+#ifdef WXMAKINGDLL
+extern short gCurrentResource ;
+#endif
void wxMenuBar::MacInstallMenuBar()
{
if ( s_macInstalledMenuBar == this )
return ;
void wxMenuBar::MacInstallMenuBar()
{
if ( s_macInstalledMenuBar == this )
return ;
+ wxStAppResource resload ;
+
Handle menubar = ::GetNewMBar( kwxMacMenuBarResource ) ;
wxString message ;
wxCHECK_RET( menubar != NULL, "can't read MBAR resource" );
Handle menubar = ::GetNewMBar( kwxMacMenuBarResource ) ;
wxString message ;
wxCHECK_RET( menubar != NULL, "can't read MBAR resource" );
MenuHandle menu = ::GetMenuHandle( kwxMacAppleMenuId ) ;
#if TARGET_API_MAC_OS8
MenuHandle menu = ::GetMenuHandle( kwxMacAppleMenuId ) ;
#if TARGET_API_MAC_OS8
- ::AppendResMenu(menu, 'DRVR');
+ if ( CountMenuItems( menu ) == 2 )
+ {
+ ::AppendResMenu(menu, 'DRVR');
+ }
#endif
for (int i = 0; i < m_menus.GetCount(); i++)
#endif
for (int i = 0; i < m_menus.GetCount(); i++)
s_macInstalledMenuBar = this;
}
s_macInstalledMenuBar = this;
}