Hello.
I set variable declaration of CheckBox in CExtCheckBox.
The setting of the standard button does not work.
I declare CheckBox in CButton
When I assign a focus to CheckBox and push Return Key, DefPushButton is pushed.
However,
I declare CheckBox in CExtCheckBox
Even if I assign a focus to CheckBox and push Return Key, DefPushButton does not become effective.
Because the setting of the standard button does not work, I cannot close a dialog.

IDD_SAMPLEDLGMFC_DIALOG DIALOGEX 0, 0, 320, 200
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
EXSTYLE WS_EX_APPWINDOW
CAPTION "SampleDlgMFC"
FONT 9, "MS Pゴシック"
BEGIN
DEFPUSHBUTTON "OK",IDOK,260,7,50,14 <--- This does not work
PUSHBUTTON "CANCEL",IDCANCEL,260,23,50,14
LTEXT "TODO: ",IDC_STATIC,87,32,200,
8
PUSHBUTTON "Button1",IDC_BUTTON1,17,15,36,17
PUSHBUTTON "Button2",IDC_BUTTON2,14,46,51,28
PUSHBUTTON "Button3",IDC_BUTTON3,17,94,45,26
CONTROL "Check1",IDC_CHECK1,"Button",BS_AUTOCHECKBOX |
WS_TABSTOP,92,103,80,16
CONTROL "Check2",IDC_CHECK2,"Button",BS_AUTOCHECKBOX |
WS_TABSTOP,90,119,96,18
CONTROL "Check3",IDC_CHECK3,"Button",BS_AUTOCHECKBOX |
WS_TABSTOP,91,137,83,25
END
Even if it is declared in CExtCheckBox,
Please teach me the method that DefPushButton becomes effective
Or please revise it
Please answer immediately.