added system version getter
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17606 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -16,6 +16,7 @@
|
|||||||
|
|
||||||
void UMAInitToolbox( UInt16 inMoreMastersCalls) ;
|
void UMAInitToolbox( UInt16 inMoreMastersCalls) ;
|
||||||
void UMACleanupToolbox() ;
|
void UMACleanupToolbox() ;
|
||||||
|
long UMAGetSystemVersion() ;
|
||||||
bool UMAHasAppearance() ;
|
bool UMAHasAppearance() ;
|
||||||
long UMAGetAppearanceVersion() ;
|
long UMAGetAppearanceVersion() ;
|
||||||
bool UMAHasWindowManager() ;
|
bool UMAHasWindowManager() ;
|
||||||
|
@@ -23,12 +23,14 @@
|
|||||||
|
|
||||||
static bool sUMAHasAppearance = false ;
|
static bool sUMAHasAppearance = false ;
|
||||||
static long sUMAAppearanceVersion = 0 ;
|
static long sUMAAppearanceVersion = 0 ;
|
||||||
|
static long sUMASystemVersion = 0 ;
|
||||||
static bool sUMAHasAquaLayout = false ;
|
static bool sUMAHasAquaLayout = false ;
|
||||||
static bool sUMASystemInitialized = false ;
|
static bool sUMASystemInitialized = false ;
|
||||||
|
|
||||||
extern int gAGABackgroundColor ;
|
extern int gAGABackgroundColor ;
|
||||||
bool UMAHasAppearance() { return sUMAHasAppearance ; }
|
bool UMAHasAppearance() { return sUMAHasAppearance ; }
|
||||||
long UMAGetAppearanceVersion() { return sUMAAppearanceVersion ; }
|
long UMAGetAppearanceVersion() { return sUMAAppearanceVersion ; }
|
||||||
|
long UMAGetSystemVersion() { return sUMASystemVersion ; }
|
||||||
|
|
||||||
static bool sUMAHasWindowManager = false ;
|
static bool sUMAHasWindowManager = false ;
|
||||||
static long sUMAWindowManagerAttr = 0 ;
|
static long sUMAWindowManagerAttr = 0 ;
|
||||||
@@ -71,6 +73,9 @@ void UMAInitToolbox( UInt16 inMoreMastersCalls )
|
|||||||
InitCursor();
|
InitCursor();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
if ( Gestalt(gestaltSystemVersion, &sUMASystemVersion) != noErr)
|
||||||
|
sUMASystemVersion = 0x0000 ;
|
||||||
|
|
||||||
long theAppearance ;
|
long theAppearance ;
|
||||||
if ( Gestalt( gestaltAppearanceAttr, &theAppearance ) == noErr )
|
if ( Gestalt( gestaltAppearanceAttr, &theAppearance ) == noErr )
|
||||||
{
|
{
|
||||||
|
@@ -23,12 +23,14 @@
|
|||||||
|
|
||||||
static bool sUMAHasAppearance = false ;
|
static bool sUMAHasAppearance = false ;
|
||||||
static long sUMAAppearanceVersion = 0 ;
|
static long sUMAAppearanceVersion = 0 ;
|
||||||
|
static long sUMASystemVersion = 0 ;
|
||||||
static bool sUMAHasAquaLayout = false ;
|
static bool sUMAHasAquaLayout = false ;
|
||||||
static bool sUMASystemInitialized = false ;
|
static bool sUMASystemInitialized = false ;
|
||||||
|
|
||||||
extern int gAGABackgroundColor ;
|
extern int gAGABackgroundColor ;
|
||||||
bool UMAHasAppearance() { return sUMAHasAppearance ; }
|
bool UMAHasAppearance() { return sUMAHasAppearance ; }
|
||||||
long UMAGetAppearanceVersion() { return sUMAAppearanceVersion ; }
|
long UMAGetAppearanceVersion() { return sUMAAppearanceVersion ; }
|
||||||
|
long UMAGetSystemVersion() { return sUMASystemVersion ; }
|
||||||
|
|
||||||
static bool sUMAHasWindowManager = false ;
|
static bool sUMAHasWindowManager = false ;
|
||||||
static long sUMAWindowManagerAttr = 0 ;
|
static long sUMAWindowManagerAttr = 0 ;
|
||||||
@@ -71,6 +73,9 @@ void UMAInitToolbox( UInt16 inMoreMastersCalls )
|
|||||||
InitCursor();
|
InitCursor();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
if ( Gestalt(gestaltSystemVersion, &sUMASystemVersion) != noErr)
|
||||||
|
sUMASystemVersion = 0x0000 ;
|
||||||
|
|
||||||
long theAppearance ;
|
long theAppearance ;
|
||||||
if ( Gestalt( gestaltAppearanceAttr, &theAppearance ) == noErr )
|
if ( Gestalt( gestaltAppearanceAttr, &theAppearance ) == noErr )
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user