I am creating a dialog application in Visual Studio 2010. I have added an MFC EditBrowse control from the Toolbox in the dialog editor. I have then right-clicked and “Added Variable”, accepting the defaults with the ClassWizard.
The ClassWizard automatically creates a new member of my Dialog class, of type CMFCEditBrowseCtrl. Also, this class is correctly added to the DoDataExchange() function, and seems to be set up properly.
However, the compiler complains that CMFCEditBrowseCtrl is undefined.
The following header file has automatically been included:
#include "afxcmn.h"
Should I add another #include, or is there a deeper issue here?
According to the documentation it is defined in
afxeditbrowsectrl.h.