WarrenW
asked on
MFC - Disabling tabs in a Property sheet
How do I disable(gray) one of the tabs in a property sheet?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I have created a child class based on the CTabCtrl.
That contains a CMap with tabs to disable/enable and supporting functions to set/unset as disabled and to trap the activation of a tab that is to be disabled. Also the control is set as owner draw (also to give visual highlight of the currently active tab).
It is part of a commercial app I have developed under contract so, sorry, no code. Using the logic above you should be able to code it yourself without too much trouble.