BCGSuite for MFC
void CBCGPSwitchImpl::SetOn ( BOOL  bSet = TRUE,
BOOL  bRedraw = FALSE,
BOOL  bAnimation = FALSE 
)

Modifies the switch's state.

Parameters
bSetTRUE - "On" (checked), FALSE - "Off" (unchecked).
bRedrawSpecifies whether a control should be redrawn.
bAnimationSpecifies whether a thumb should be moved to a new postion with transition effect.