About CPropertySheet, CPropertyPage and CTabCtrl
Posted on 1997-12-09
I have created a propertySheet with 3 propertyPages :
CMyPropertySheet MySheet("Test sheet");
My question is :
- How can I subclass the CTabCtrl returned by MySheet.GetTabControl()
to my class : CMyTabCtrl. Because I want to use owner draw the
Tab control associated with my PropertySheet and that all messages
are received by my class.
I have try do to this in CMyPropertySheet :
CMyTabCtrl *pTab = (CMyTabCtrl *)GetTabControl();
SubclassWindow(pTab->m_hWnd); //--> Assertion fail, Why ?
- I want to use owner draw because I want that some tab controls
are disabled (text in gray).
- Is there a different solution to do this ?
- Can some one send my a sample that made something like this