July 16th, 1999, 04:45 AM
There is plenty of code around to disable a tab but can they be hidden/unhidden on the fly?
Regards
Malc
Regards
Malc
|
Click to See Complete Forum and Search --> : CPropertySheet and Hiding Tabs July 16th, 1999, 04:45 AM There is plenty of code around to disable a tab but can they be hidden/unhidden on the fly? Regards Malc Burlacu Ovidiu July 16th, 1999, 08:31 AM You must your class derived from CPropertySheet and you must a variable like this: CPropertyPage *m_pages[n]//where n is number of pages And when you want to hide a page do it something like this: myPSheet.RemovePage( number of page to remove)//0 indexed If you want to unhide a page, if isn't the last page do this: [ccode] //Remove all pages for(int i = 0; i<myPSheet.GetPageCount;i++) { myPSheet.RemovePage(i); } for(int i = 0; i<n/*n - no of pages*/;i++) { myPSheet.AddPage(m_pages[i]); } codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |