Click here to Skip to main content
15,891,908 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Version info from resources Pin
John R. Shaw21-Jan-04 10:10
John R. Shaw21-Jan-04 10:10 
GeneralRe: Version info from resources Pin
ExtraLean21-Jan-04 10:26
ExtraLean21-Jan-04 10:26 
GeneralWritiing values of a variable to a file Pin
Obsidianick21-Jan-04 8:15
Obsidianick21-Jan-04 8:15 
GeneralRe: Writiing values of a variable to a file Pin
John R. Shaw21-Jan-04 9:36
John R. Shaw21-Jan-04 9:36 
GeneralRe: Writiing values of a variable to a file Pin
John M. Drescher21-Jan-04 9:41
John M. Drescher21-Jan-04 9:41 
GeneralSharing data within application Pin
David Crow21-Jan-04 8:02
David Crow21-Jan-04 8:02 
GeneralRe: Sharing data within application Pin
Joe Woodbury21-Jan-04 8:37
professionalJoe Woodbury21-Jan-04 8:37 
GeneralRe: Sharing data within application Pin
Blake Miller21-Jan-04 10:10
Blake Miller21-Jan-04 10:10 
In MFC the OnSetActive and OnKillActive will invoke the dynamic data exchange member function. You can load data from a data structure ahead of the control loading, and save it after the controls write the data to the member variables back to the data structure. This works out well, because you can validate the data and fail the data exchange to disallow the property page from being changed.
I make a class or data structure to hold the data, it is usually owned by the app, but in your case the document, so in the first call to OnInitDialog, when the page is first constructed, you could obtain and perhaps store the pointer to the configuration data structure or class. Or else obtain it dynamically from the document each time you need a load or a save of the data.
GeneralExporting Device Context to File (GIF/JPG/PNG etc) Pin
Miszou21-Jan-04 6:34
Miszou21-Jan-04 6:34 
GeneralRe: Exporting Device Context to File (GIF/JPG/PNG etc) Pin
Nick Hodapp21-Jan-04 7:33
sitebuilderNick Hodapp21-Jan-04 7:33 
GeneralRe: Exporting Device Context to File (GIF/JPG/PNG etc) Pin
Miszou21-Jan-04 7:45
Miszou21-Jan-04 7:45 
GeneralRemove Pin
Anonymous21-Jan-04 6:20
Anonymous21-Jan-04 6:20 
GeneralRe: Remove Pin
David Crow21-Jan-04 6:55
David Crow21-Jan-04 6:55 
GeneralRe: Remove Pin
Anonymous21-Jan-04 7:28
Anonymous21-Jan-04 7:28 
GeneralRe: Remove Pin
David Crow21-Jan-04 7:56
David Crow21-Jan-04 7:56 
GeneralDrag and Drop from Outlook Pin
Steve Thresher21-Jan-04 5:47
Steve Thresher21-Jan-04 5:47 
GeneralShellOpen Pin
Gary Kirkham21-Jan-04 5:45
Gary Kirkham21-Jan-04 5:45 
GeneralRe: ShellOpen Pin
Antti Keskinen21-Jan-04 5:55
Antti Keskinen21-Jan-04 5:55 
GeneralRe: ShellOpen Pin
Gary Kirkham21-Jan-04 5:59
Gary Kirkham21-Jan-04 5:59 
QuestionHow to threshold an image? Pin
uus9921-Jan-04 5:41
uus9921-Jan-04 5:41 
AnswerRe: How to threshold an image? Pin
J. Eric Vaughan21-Jan-04 6:24
J. Eric Vaughan21-Jan-04 6:24 
GeneralRe: How to threshold an image? Pin
uus9921-Jan-04 23:25
uus9921-Jan-04 23:25 
GeneralRe: How to threshold an image? Pin
J. Eric Vaughan22-Jan-04 6:01
J. Eric Vaughan22-Jan-04 6:01 
GeneralRe: How to threshold an image? Pin
uus9922-Jan-04 8:42
uus9922-Jan-04 8:42 
GeneralRe: How to threshold an image? Pin
J. Eric Vaughan22-Jan-04 10:58
J. Eric Vaughan22-Jan-04 10:58 

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.