Solved

CPropertySheet Tab change event

Posted on 2011-03-13
4
1,462 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 30

Expert Comment

by:Zoppo
Comment Utility
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 32

Expert Comment

by:sarabande
Comment Utility
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
Comment Utility
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
Comment Utility
I followed the suggestion but I think it is the most complicated one.
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

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…
Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
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…

762 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

8 Experts available now in Live!

Get 1:1 Help Now