I was wondering how Visual Studio associates MFC CDialog derived classes with the corresponding dialog resources. I'm not interested in how the connection is made at runtime (as given here ), but rather at design time.
When I add a message handler to the dialog, how does it know which class to add the handler to. Also, is it possible to have multiple CDialog derived classes associated with the same dialog resource, and vice versa?
I searched the project directory for the IDD_SOMEDIALOG line, but only found it in SomeDialog.h , resource.h and Project.rc in the expected places, so I assume that it somehow outputs the connection from these files, most likely an listing in SomeDialog.h :
// in class CSomeDialog: enum { IDD = IDD_SOMEDIALOG };
I ask for this mainly out of curiosity.
visual-c ++ visual-studio dialog mfc
Yngve hammersland
source share