Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

CPropertySheet Tab change event

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

With most software applications trying to cater to multiple user needs nowadays, the focus is to make them as configurable as possible. For e.g., when creating Silverlight applications which will connect to WCF services, the service end point usuall…
For a while now I'v been searching for a circular progress control, much like the one you get when first starting your Silverlight application. I found a couple that were written in WPF and there were a few written in Silverlight, but all appeared o…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

790 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