?
Solved

CPropertySheet Tab change event

Posted on 2011-03-13
4
Medium Priority
?
1,597 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 35

Expert Comment

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

Sara
0
 
LVL 45

Accepted Solution

by:
AndyAinscow earned 2000 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

As more and more people are shifting to the latest .Net frameworks, the windows presentation framework is gaining importance by the day. Many people are now turning to WPF controls to provide a rich user experience. I have been using WPF controls fo…
Article by: evilrix
Looking for a way to avoid searching through large data sets for data that doesn't exist? A Bloom Filter might be what you need. This data structure is a probabilistic filter that allows you to avoid unnecessary searches when you know the data defin…
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

850 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