• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1654
  • Last Modified:

CPropertySheet Tab change event

Hi,
how I can receive and work with the TAB change event in CPRopertySheet?
I need to know when and what PropertyPage the user selected.

Ocrana
0
Ocrana
Asked:
Ocrana
1 Solution
 
ZoppoCommented:
Hi Ocrana,

the tab control should send a TCN_SELCHANGE notification message to its parent.

To handle it within a CPropertySheet you have to derive a class from CPropertySheet (if you didn't already) and override it's OnNotify method as i.e. shown at http://support.microsoft.com/kb/151662/en-us

Hope that helps,

ZOPPO
0
 
sarabandeCommented:
An alternative is to handle the WM_ACTIVATE message in your tabbed dialog classes.

Sara
0
 
AndyAinscowFreelance programmer / ConsultantCommented:
You could subclass the underlying tab control that the property sheet uses to a derived class of your own.  I've done the same to implement 'disabled' pages.
0
 
OcranaAuthor Commented:
I followed the suggestion but I think it is the most complicated one.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now