如果代码正确,为什么我在“确定”按钮上有这些错误

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

本文关键字:按钮 错误 确定 代码 为什么 如果      更新时间:2023-10-16

>我准备测试对话框,但我有照片中的错误。为什么?

错误

也许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.