CodePudding user response:
Can add a parameter passing in static function dialog class pointer XXXFun (CXXXDlg * pDlg,Deposit or use global variables dialog box class pointer,
If it is based on the dialog box, also can try AfxGetMainWnd
CodePudding user response:
Where such as AfxGetMainWnd written in ADlg classCodePudding user response:
I created a static function entry without this