A dialog box procedure, contains A, B, C of the dialog box, A is the main dialog box, BC is A child dialogs
When I need to get A pointer in the B when doing so, A * pDlg=(A *) AfxGetMainWnd ();
Now I want to get in B C pointer, what should I do?
C * pDlg=(C *)...
CodePudding user response:
A * pDlg=new A ();//what is the difference between these two words?
A * pDlg=(A *) AfxGetMainWnd ();
CodePudding user response: