Solved

CPropertySheet Tab change event

Posted on 2011-03-13
4
1,471 Views
Last Modified: 2012-05-11
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
Comment
Question by:Ocrana
4 Comments
 
LVL 31

Expert Comment

by:Zoppo
ID: 35126763
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
 
LVL 33

Expert Comment

by:sarabande
ID: 35127854
An alternative is to handle the WM_ACTIVATE message in your tabbed dialog classes.

Sara
0
 
LVL 44

Accepted Solution

by:
AndyAinscow earned 500 total points
ID: 35135461
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
 

Author Closing Comment

by:Ocrana
ID: 35705487
I followed the suggestion but I think it is the most complicated one.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now