corrected scoping

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15940 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2002-06-24 15:26:06 +00:00
parent 6cd4655bee
commit f03c50fa3b
2 changed files with 20 additions and 16 deletions

View File

@@ -68,16 +68,18 @@ pascal OSStatus wxMacSetupControlBackground( ControlRef iControl , SInt16 iMessa
switch( iMessage )
{
case kControlMsgSetUpBackground :
{
wxControl* wx = (wxControl*) GetControlReference( iControl ) ;
if ( wx != NULL && wx->IsKindOf( CLASSINFO( wxControl ) ) )
{
wxDC::MacSetupBackgroundForCurrentPort( wx->MacGetBackgroundBrush() ) ;
// SetThemeBackground( iDepth , iIsColor ) ;
// SetThemeBackground( iDepth , iIsColor ) ;
}
else
{
status = paramErr ;
}
}
break ;
default :
status = paramErr ;

View File

@@ -68,16 +68,18 @@ pascal OSStatus wxMacSetupControlBackground( ControlRef iControl , SInt16 iMessa
switch( iMessage )
{
case kControlMsgSetUpBackground :
{
wxControl* wx = (wxControl*) GetControlReference( iControl ) ;
if ( wx != NULL && wx->IsKindOf( CLASSINFO( wxControl ) ) )
{
wxDC::MacSetupBackgroundForCurrentPort( wx->MacGetBackgroundBrush() ) ;
// SetThemeBackground( iDepth , iIsColor ) ;
// SetThemeBackground( iDepth , iIsColor ) ;
}
else
{
status = paramErr ;
}
}
break ;
default :
status = paramErr ;