If the class name list in the MFC classwizard does not have a window class added to the project, you can add it in the following way:
1. Add the cdlgshow class index to the CLW file of the Project as follows:
[General info]
Classcount =4
Class1 = ccustomwizardapp
Class2 = ccustomwizarddlg
Class3 = caboutdlg
Class4 = cdlgshow
Then, in the project, open the view-> classwizard Class Wizard again, and select the class name list to find the type you just added. If the cdlgshow class conforms to the format of the MFC class, the corresponding processing method can be displayed and added normally. If it does not conform to the MFC class format, a prompt is displayed, and the correct cdlgshow header and source file can be selected.
Note:
To modify the MFC class name, complete the modification. For example, replace the following with the correct one:
. H file
// Dialog data // {afx_data (cdlgshow) //} afx_data
// Overrides // classwizard generated virtual function overrides // {afx_virtual (cdlgshow) //} afx_virtual
// Generated message map functions // {afx_msg (cdlgshow) //} afx_msg
. Cpp File
Begin_message_map (cdlgshow, cdialog) // {afx_msg_map (cdlgshow) //} afx_msg_mapend_message_map ()