There is plenty of code around to disable a tab but can they be hidden/unhidden on the fly?
Regards
Malc
Printable View
There is plenty of code around to disable a tab but can they be hidden/unhidden on the fly?
Regards
Malc
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]);
}