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

C / C++ / MFC

 
GeneralRe: Type conversion Pin
CPallini17-Apr-07 21:10
mveCPallini17-Apr-07 21:10 
GeneralRe: Type conversion Pin
CarpenterJim18-Apr-07 2:18
CarpenterJim18-Apr-07 2:18 
QuestionDLL and Lib Pin
amitmistry_petlad 17-Apr-07 17:45
amitmistry_petlad 17-Apr-07 17:45 
AnswerRe: DLL and Lib Pin
_AnsHUMAN_ 17-Apr-07 18:17
_AnsHUMAN_ 17-Apr-07 18:17 
AnswerRe: DLL and Lib Pin
Eytukan17-Apr-07 20:35
Eytukan17-Apr-07 20:35 
Questionerror in using strcat Pin
cyn817-Apr-07 16:05
cyn817-Apr-07 16:05 
AnswerRe: error in using strcat Pin
David Crow17-Apr-07 16:37
David Crow17-Apr-07 16:37 
AnswerRe: error in using strcat Pin
Stephen Hewitt17-Apr-07 17:21
Stephen Hewitt17-Apr-07 17:21 
AnswerRe: error in using strcat Pin
syampj17-Apr-07 18:31
syampj17-Apr-07 18:31 
QuestionType comparison in if statement Pin
Lasoryth17-Apr-07 13:25
Lasoryth17-Apr-07 13:25 
AnswerRe: Type comparison in if statement Pin
David Crow17-Apr-07 16:39
David Crow17-Apr-07 16:39 
QuestionScreensaver settings Pin
Al_Pennyworth17-Apr-07 12:53
Al_Pennyworth17-Apr-07 12:53 
QuestionRe: Screensaver settings Pin
David Crow17-Apr-07 16:40
David Crow17-Apr-07 16:40 
Questionaccessing parent variables from dialog mfc?? Pin
bimgot17-Apr-07 10:22
bimgot17-Apr-07 10:22 
AnswerRe: accessing parent variables from dialog mfc?? Pin
led mike17-Apr-07 11:36
led mike17-Apr-07 11:36 
GeneralRe: accessing parent variables from dialog mfc?? Pin
bimgot17-Apr-07 12:07
bimgot17-Apr-07 12:07 
QuestionRe: accessing parent variables from dialog mfc?? Pin
David Crow17-Apr-07 16:43
David Crow17-Apr-07 16:43 
AnswerRe: accessing parent variables from dialog mfc?? Pin
bimgot18-Apr-07 0:36
bimgot18-Apr-07 0:36 
GeneralRe: accessing parent variables from dialog mfc?? Pin
JudyL_MD18-Apr-07 2:39
JudyL_MD18-Apr-07 2:39 
UpdateData (TRUE) puts the values currently in the controls into the variables. You need to call UpdateData (FALSE) to move the variable values into the screen controls. Note that I have added a line. This is so that if you have other controls on the screen, you won't lose the values the user might have changed on the screen when you call UpdateData (FALSE).

void CDlg::OnTimer(UINT_PTR nIDEvent)
{
CDialog::OnTimer(nIDEvent);
dlg_level = dlg_sldr.GetPos();

CformView* form = (CformView*) GetParent();
UpdateData (TRUE);
form->form_level = dlg_level;
form->UpdateData(FALSE);

UpdateData(TRUE);
}


Judy
GeneralRe: accessing parent variables from dialog mfc?? Pin
David Crow18-Apr-07 2:46
David Crow18-Apr-07 2:46 
GeneralRe: accessing parent variables from dialog mfc?? Pin
bimgot18-Apr-07 3:25
bimgot18-Apr-07 3:25 
GeneralRe: accessing parent variables from dialog mfc?? Pin
David Crow18-Apr-07 2:51
David Crow18-Apr-07 2:51 
GeneralRe: accessing parent variables from dialog mfc?? Pin
bimgot18-Apr-07 3:48
bimgot18-Apr-07 3:48 
QuestionRe: accessing parent variables from dialog mfc?? Pin
David Crow18-Apr-07 3:59
David Crow18-Apr-07 3:59 
AnswerRe: accessing parent variables from dialog mfc?? Pin
bimgot18-Apr-07 5:21
bimgot18-Apr-07 5:21 

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.