BCGSuite for MFC
void CBCGPCheckComboBox::SetState ( ULONGLONG  nState,
BOOL  bRedraw = TRUE 
)

Sets items state by mask.

Call this method to set the combobox items state by mask. For example, calling SetState(0x3) checks first 2 items and unchecks the rest of the items. Please note that this method works correctly only if the combobox has less than 64 items.

Parameters
nStateSpecifies the items state.
bRedrawSpecifies whether a control should be redrawn.