Link to home
Start Free TrialLog in
Avatar of WarrenW
WarrenW

asked on

MFC - Disabling tabs in a Property sheet

How do I disable(gray) one of the tabs in a property sheet?
Avatar of AndyAinscow
AndyAinscow
Flag of Switzerland image

I have not found any native support for this so:
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.
ASKER CERTIFIED SOLUTION
Avatar of martynjpearson
martynjpearson

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial