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

C / C++ / MFC

 
GeneralRe: Version info from resources Pin
Blake Miller21-Jan-04 10:04
Blake Miller21-Jan-04 10:04 
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 
I am now in the middle of working on various property pages/sheets and these are the methods I am using:

First, I store the configuration data in a structure. I copy this data to an instance in the function call that creates the property sheet and pages. If the user clicks OK (or Apply, though I rarely use Apply) the data is stored in the registry (or wherever such things are saved) and in the original instance. Often, I don't to a binary copy, but use functions to save since other things, such as font changes, have to be done with the new settings.

BTW, to share the temporary options I pass a reference to the constructors of the property pages.



Anyone who thinks he has a better idea of what's good for people than people do is a swine.
- P.J. O'Rourke

GeneralRe: Sharing data within application Pin
Blake Miller21-Jan-04 10:10
Blake Miller21-Jan-04 10:10 
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 

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.