如果代码正确,为什么我在 OK 按钮上会出现这些错误?

Why do I have these errors on the OK Button if the code is correct?

我已准备好测试对话框,但我发现了照片中的错误。为什么?

The Error

也许 OnOK 而不是 OnOk

CDialog::OnOK   Override to perform the OK button action in a modal dialog box. The default closes the dialog box and DoModal returns IDOK.