Click here to Skip to main content
15,921,793 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how to transfer Cstring to float Pin
Niklas L20-Apr-11 0:26
Niklas L20-Apr-11 0:26 
QuestionLocalizing a MFC application Pin
kle8vi19-Apr-11 22:32
kle8vi19-Apr-11 22:32 
AnswerRe: Localizing a MFC application Pin
Hans Dietrich19-Apr-11 23:41
mentorHans Dietrich19-Apr-11 23:41 
QuestionRe: Localizing a MFC application Pin
pix_programmer20-Apr-11 3:28
pix_programmer20-Apr-11 3:28 
QuestionFTP download status call back problem Pin
rajniyadav1a19-Apr-11 20:24
rajniyadav1a19-Apr-11 20:24 
AnswerRe: FTP download status call back problem Pin
Rajesh R Subramanian19-Apr-11 20:25
professionalRajesh R Subramanian19-Apr-11 20:25 
QuestionBasic array problem Pin
VCProgrammer19-Apr-11 19:28
VCProgrammer19-Apr-11 19:28 
AnswerRe: Basic array problem Pin
Cool_Dev19-Apr-11 19:51
Cool_Dev19-Apr-11 19:51 
AnswerRe: Basic array problem Pin
Rajesh R Subramanian19-Apr-11 20:16
professionalRajesh R Subramanian19-Apr-11 20:16 
GeneralRe: Basic array problem Pin
VCProgrammer19-Apr-11 20:57
VCProgrammer19-Apr-11 20:57 
GeneralRe: Basic array problem Pin
Cool_Dev19-Apr-11 21:24
Cool_Dev19-Apr-11 21:24 
AnswerRe: Basic array problem Pin
Niklas L19-Apr-11 22:15
Niklas L19-Apr-11 22:15 
Questioni having problem to connect my MFC form to Access database using sql query.. Pin
tohard19-Apr-11 14:51
tohard19-Apr-11 14:51 
AnswerRe: i having problem to connect my MFC form to Access database using sql query.. Pin
Rajesh R Subramanian19-Apr-11 20:23
professionalRajesh R Subramanian19-Apr-11 20:23 
QuestionShared Library o DLL? Pin
Andy20219-Apr-11 6:36
Andy20219-Apr-11 6:36 
AnswerRe: Shared Library o DLL? Pin
Albert Holguin19-Apr-11 7:30
professionalAlbert Holguin19-Apr-11 7:30 
QuestionDeskband (XP) Problem.. Pin
nitin319-Apr-11 5:54
nitin319-Apr-11 5:54 
QuestionProblems with getting data from a Edit Control [modified] Pin
jhoesche19-Apr-11 4:54
jhoesche19-Apr-11 4:54 
AnswerRe: Problems with getting data from a Edit Control Pin
David Crow19-Apr-11 7:13
David Crow19-Apr-11 7:13 
GeneralRe: Problems with getting data from a Edit Control Pin
jhoesche19-Apr-11 8:49
jhoesche19-Apr-11 8:49 
AnswerRe: Problems with getting data from a Edit Control Pin
Hans Dietrich19-Apr-11 11:37
mentorHans Dietrich19-Apr-11 11:37 
GeneralRe: Problems with getting data from a Edit Control Pin
jhoesche19-Apr-11 12:12
jhoesche19-Apr-11 12:12 
GeneralRe: Problems with getting data from a Edit Control [modified] Pin
David Crow20-Apr-11 3:47
David Crow20-Apr-11 3:47 
GeneralRe: Problems with getting data from a Edit Control Pin
jhoesche20-Apr-11 5:56
jhoesche20-Apr-11 5:56 
GeneralRe: Problems with getting data from a Edit Control Pin
David Crow20-Apr-11 6:54
David Crow20-Apr-11 6:54 
Use ClassWizard (Ctrl+W) to derive a class from CDialog. Then add the following to it:

class CBaseDialog : public CDialog
{
public:
    virtual int ReadControls( CArray *pArray ) {}
};


Now in your other dialogs, derive them from CBaseDialog instead of CDialog. You'll have at least one change in the .H file and several in the .CPP file.

The virtual method means that the derived classes can choose to implement their own version of it or not. In your implementation of it, you'd likely want to enumerate each of the dialog's child controls, and put their values in the array parameter. Check out EnumChildWindows().

"One man's wage rise is another man's price increase." - Harold Wilson

"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

"Some people are making such thorough preparation for rainy days that they aren't enjoying today's sunshine." - William Feather


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.