Processing on the return and ESC key on the dialog interface

zhaozj2021-02-16  47

Processing on the return and ESC key on the dialog interface

Processing method: Remove the default processing of ONOK and ONCANCEL

1. Remove the OK and Cancel buttons, then add the following positions in .h

// generated message map functions virtual void onok (); Virtual void oncancel (); declare_message_map ()

II to add the corresponding Onok and ONCANCEL processing in .CPP

Void CParamSetdlg :: Onok () {Note Do not process}

Void cParamSetdlg :: oncancel () {

Pay attention to no treatment}

Don't be right, please criticize.

转载请注明原文地址:https://www.9cbs.com/read-24976.html

New Post(0)