Click here to Skip to main content
15,896,207 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: template specialization for functions Pin
peterchen21-Jul-05 8:53
peterchen21-Jul-05 8:53 
GeneralAfxLockGlobals no more exits in MFC 8 Pin
Saurabh_Gupta21-Jul-05 6:40
Saurabh_Gupta21-Jul-05 6:40 
GeneralParsing a string using std::string Pin
LCI21-Jul-05 5:52
LCI21-Jul-05 5:52 
GeneralRe: Parsing a string using std::string Pin
David Crow21-Jul-05 7:11
David Crow21-Jul-05 7:11 
GeneralRe: Parsing a string using std::string Pin
John R. Shaw21-Jul-05 7:44
John R. Shaw21-Jul-05 7:44 
GeneralRe: Parsing a string using std::string Pin
LCI21-Jul-05 8:31
LCI21-Jul-05 8:31 
GeneralRe: Parsing a string using std::string Pin
John R. Shaw21-Jul-05 9:04
John R. Shaw21-Jul-05 9:04 
GeneralPropertySheet Wizard Question Pin
picazo21-Jul-05 5:01
picazo21-Jul-05 5:01 
Hi,

I have written a class, CWizardSheet, which extends CPropertySheet. It is set to wizard mode. An instance of CWizardSheet, contains several pages, which extend CPropertyPage, so naturally I have to do directive includes for these pages in the CWizardSheetClass. However, CWizardSheet has a variable, info, which I would like each of the pages to be able to access.

I have tried to do a directive include of the CWizardSheet in the pages, but that causes problems because of cyclic redefinition. I have also tried to add a 'set' method in each of the pages so that I can 'send' a pointer to the variable from the CWizardSheet's OnInit() method.

The problem with the second approach is that after I leave a page (clicking next), if I decide to come back to it (clicking back), if I make changes to the variable, it no longer changes the info variable in the CWizardSheet.

To solve this, I have decided that instead of 'setting' the variable in the OnInit() method in the CWizardSheet class, I should do it in another method which is called every time that the wizard changes to another page (set the top level page's variable).

My question is: Is there a method in CPropertySheet that I can override to catch the event when the wizard changes the top page, and if so, how do I use it and is it possible to get a pointer to that page? Other suggestions to solve this problem are also welcome.

Thanks in advance,

-----------------
Genaro

\\\|
_ _
@ @
_\\
--|
_/
GeneralRe: PropertySheet Wizard Question Pin
Graham Bradshaw21-Jul-05 6:56
Graham Bradshaw21-Jul-05 6:56 
GeneralRe: PropertySheet Wizard Question Pin
Anonymous21-Jul-05 8:14
Anonymous21-Jul-05 8:14 
GeneralCDialogBar Help Pin
Budric B.21-Jul-05 4:55
Budric B.21-Jul-05 4:55 
GeneralAlso.. Pin
Budric B.21-Jul-05 5:06
Budric B.21-Jul-05 5:06 
GeneralVC++ .NET saveFileDialog Pin
Freddie Code21-Jul-05 4:46
Freddie Code21-Jul-05 4:46 
GeneralRe: VC++ .NET saveFileDialog Pin
Anonymous21-Jul-05 4:55
Anonymous21-Jul-05 4:55 
GeneralRe: VC++ .NET saveFileDialog Pin
Freddie Code21-Jul-05 7:13
Freddie Code21-Jul-05 7:13 
GeneralRe: VC++ .NET saveFileDialog Pin
Freddie Code21-Jul-05 14:13
Freddie Code21-Jul-05 14:13 
General'/EDITANDCONTINUE' due to '/INCREMENTAL:NO' specification questions Pin
Anonymous21-Jul-05 4:15
Anonymous21-Jul-05 4:15 
GeneralRe: '/EDITANDCONTINUE' due to '/INCREMENTAL:NO' specification questions Pin
peterchen21-Jul-05 8:55
peterchen21-Jul-05 8:55 
GeneralXML parse to get a single node Pin
LCI21-Jul-05 3:44
LCI21-Jul-05 3:44 
GeneralRe: XML parse to get a single node Pin
Alex_Y21-Jul-05 10:43
Alex_Y21-Jul-05 10:43 
GeneralRe: XML parse to get a single node Pin
LCI21-Jul-05 10:53
LCI21-Jul-05 10:53 
GeneralRe: XML parse to get a single node Pin
Alex_Y22-Jul-05 4:51
Alex_Y22-Jul-05 4:51 
Generalproblem with /clr switch Pin
DaveHuber21-Jul-05 3:31
DaveHuber21-Jul-05 3:31 
GeneralAdding in hex Pin
Halawlaws21-Jul-05 3:19
Halawlaws21-Jul-05 3:19 
GeneralRe: Adding in hex Pin
Andrew Kirillov21-Jul-05 3:23
Andrew Kirillov21-Jul-05 3:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.