- wxMacWindowClipper clipper(win) ;
- Rect rect = { y , x , y + h , x + w } ;
- wxPoint origin = win->GetClientAreaOrigin() ;
- int dx , dy ;
- dx = origin.x ;
- dy = origin.y ;
- win->MacWindowToRootWindow( &dx , &dy ) ;
- OffsetRect( &rect , dx , dy ) ;
-
- ThemeButtonDrawInfo drawInfo ;
- memset( &drawInfo , 0 , sizeof(drawInfo) ) ;
- drawInfo.state = ( flags & wxCONTROL_DISABLED ) ? kThemeStateInactive : kThemeStateActive ;
- drawInfo.value = 0 ;
- drawInfo.adornment = kThemeAdornmentNone ;
- DrawThemeButton( &rect , kThemeListHeaderButton , &drawInfo , NULL , NULL , NULL , 0 ) ;
+ wxMacWindowClipper clipper(win);
+ Rect rect = { y, x, y + h, x + w };
+ wxPoint origin = win->GetClientAreaOrigin();
+ int dx, dy;
+ dx = origin.x;
+ dy = origin.y;
+ win->MacWindowToRootWindow( &dx, &dy );
+ OffsetRect( &rect, dx, dy );
+
+ ThemeButtonDrawInfo drawInfo;
+ memset( &drawInfo, 0, sizeof(drawInfo) );
+ drawInfo.state = (flags & wxCONTROL_DISABLED) ? kThemeStateInactive : kThemeStateActive;
+ drawInfo.value = 0;
+ drawInfo.adornment = kThemeAdornmentNone;
+ DrawThemeButton( &rect, kThemeListHeaderButton, &drawInfo, NULL, NULL, NULL, 0 );