Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Adding Dialog popup to Tab in Tabbed Application

13 views
Skip to first unread message

Me

unread,
Feb 15, 2013, 9:42:41 AM2/15/13
to
I am using VC++ VS2012
I have a Tabbed Dialog application with two tabs
I am trying to add a popup dialog window for one of the tabs
I create a new dialog IDD_DLGLIST and a new CDialog class for it
Dlglist.cpp using the Class Wizard
When I click Finish & Apply in the Class Wizard the new Dlglist.h come up
in editor.

class Dlglist : public CDialog
{
DECLARE_DYNAMIC(Dlglist)

public:
Dlglist(CWnd* pParent = NULL); // standard constructor
virtual ~Dlglist();

// Dialog Data
enum { IDD = IDD_DLGLIST };

protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support

DECLARE_MESSAGE_MAP()
};

The line "enum { IDD = IDD_DLGLIST }; has the IDD_DLGLIST underlined in red
Error: identifier "IDD_DLGLIST" is undefined
When I try to build the same error comes up?
I see IDD_DLGLIST in the Resource View?

What is wrong?
TIA
Ed

Me

unread,
Feb 15, 2013, 10:39:14 AM2/15/13
to
NEVERMIND
I found and fixed it.
0 new messages