The following source-code fragment creates a dialog template. Notice that the WS_GROUP and WS_TABSTOP style designations are given for the first item in each group.
DLGTEMPLATE IDD_ABOUT
BEGIN
DIALOG "", IDD_ABOUT2,
10, 10, 150, 110, FS_DLGBORDER, 0
BEGIN
CONTROL "Attributes:",100,
10, 30, 100, 70,
WC_STATIC,
SS_GROUPBOX | WS_VISIBLE
CONTROL "Highlighted",101,
20, 80, 58, 12,
WC_BUTTON,
WS_GROUP | WS_TABSTOP | BS_AUTOCHECKBOX | WS_VISIBLE
CONTROL "Enabled",102,
20, 60, 58, 12,
WC_BUTTON,
BS_AUTOCHECKBOX | WS_VISIBLE
CONTROL "Checked",103,
20, 40, 58, 12,
WC_BUTTON,
BS_AUTOCHECKBOX | WS_VISIBLE
CONTROL "Okay", DID_OK,
10, 10, 50, 14,
WC_BUTTON,
WS_GROUP | WS_TABSTOP | BS_PUSHBUTTON | BS_DEFAULT | WS_VISIBLE
CONTROL "Cancel", DID_CANCEL,
80, 10, 50, 14,
WC_BUTTON,
BS_PUSHBUTTON | WS_VISIBLE
END
END