# include <PMCore.h>
# endif
# include <PMApplication.h>
+# else
+# include <Printing.h>
# endif
#endif
if ( menuMgrAttr & gestaltMenuMgrAquaLayoutMask )
sUMAHasAquaLayout = true ;
sUMASystemInitialized = true ;
+
}
+/*
+Boolean CanUseATSUI()
+ {
+ long result;
+ OSErr err = Gestalt(gestaltATSUVersion, &result);
+ return (err == noErr);
+ }
+*/
// process manager
long UMAGetProcessMode()
{
{
wxASSERT( inWindowRef != NULL ) ;
#if TARGET_CARBON
- return GetWindowPort( inWindowRef ) ;
+ return (GrafPtr) GetWindowPort( inWindowRef ) ;
#else
return (GrafPtr) inWindowRef ;
#endif
}
static OSStatus helpMenuStatus = noErr ;
-static MenuRef helpMenuHandle = NULL ;
static MenuItemIndex firstCustomItemIndex = 0 ;
OSStatus UMAGetHelpMenu(
#if TARGET_CARBON
return HMGetHelpMenu( outHelpMenu , outFirstCustomItemIndex ) ;
#else
- if ( helpMenuHandle == NULL )
+ MenuRef helpMenuHandle ;
+ helpMenuStatus = HMGetHelpMenuHandle( &helpMenuHandle ) ;
+ if ( firstCustomItemIndex == 0 && helpMenuStatus == noErr )
{
- helpMenuStatus = HMGetHelpMenuHandle( &helpMenuHandle ) ;
- if ( helpMenuStatus == noErr )
- {
- firstCustomItemIndex = CountMenuItems( helpMenuHandle ) + 1 ;
- }
+ firstCustomItemIndex = CountMenuItems( helpMenuHandle ) + 1 ;
}
if ( outFirstCustomItemIndex )
{