Click here to Skip to main content
15,899,679 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have subclassed CTabCtrl as following,but when I want to add a variable to my tab control of this new class,new class does not come in list at " Add variable->variable type" list of claswizard.This feature was there in VC6.0 does it removed in VC++ 2010

class CMyTabCtrl : public CTabCtrl
{
DECLARE_DYNAMIC(CMyTabCtrl)

public:
CMyTabCtrl();
virtual ~CMyTabCtrl();
//Array to hold the list of dialog boxes/tab pages for CTabCtrl
int m_DialogID[2];
int m_nPageCount;
//CDialog Array Variable to hold the dialogs
CDialog *m_Dialog[2];

//Function to Create the dialog boxes during startup
void InitDialogs();

//Function to activate the tab dialog boxes
void ActivateTabDialogs();

protected:
DECLARE_MESSAGE_MAP()
public:
afx_msg void OnTcnSelchange(NMHDR *pNMHDR, LRESULT *pResult);
};
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900