Click here to Skip to main content
15,926,035 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: OnOK and delete this Pin
palbano26-Feb-03 6:09
palbano26-Feb-03 6:09 
GeneralRe: OnOK and delete this Pin
ns26-Feb-03 6:16
ns26-Feb-03 6:16 
GeneralRe: OnOK and delete this Pin
xsummerx26-Feb-03 7:10
xsummerx26-Feb-03 7:10 
Generalthanks--I got it now Pin
ns26-Feb-03 7:58
ns26-Feb-03 7:58 
Generalthe CP modeless article - thanks. Pin
ns26-Feb-03 6:21
ns26-Feb-03 6:21 
Generalresource.rc could not be opened. Pin
ns26-Feb-03 5:40
ns26-Feb-03 5:40 
GeneralDialog Data Exchange Pin
Kash26-Feb-03 5:04
Kash26-Feb-03 5:04 
GeneralRe: Dialog Data Exchange Pin
jhwurmbach26-Feb-03 5:14
jhwurmbach26-Feb-03 5:14 
Kash wrote:
Have I missed something out?

Yep!
MSDN[^]says:
The framework automatically calls UpdateData 
with bSaveAndValidate set to FALSE when a modal 
dialog box is created in the default implementation 
of CDialog::OnInitDialog. The call occurs before 
the dialog box is visible. The default 
implementation of CDialog::OnOK calls this member 
function with bSaveAndValidate set to TRUE to 
retrieve the data, and if successful, will close 
the dialog box.
So you Do not have to call UpdataData() yourself:
void CMyPropPage::OnCallMyDlgButton() 
{
CMyDlg ViewData;
if (ViewData.DoModal()==IDOK)
   m_Number = ViewData.m_Number;
}



My opinions may have changed, but not the fact that I am right.
GeneralRe: Dialog Data Exchange Pin
Kash26-Feb-03 5:34
Kash26-Feb-03 5:34 
GeneralRe: Dialog Data Exchange Pin
jhwurmbach26-Feb-03 5:37
jhwurmbach26-Feb-03 5:37 
GeneralRe: Dialog Data Exchange Pin
palbano26-Feb-03 5:15
palbano26-Feb-03 5:15 
GeneralRe: Dialog Data Exchange Pin
Kash26-Feb-03 5:52
Kash26-Feb-03 5:52 
GeneralRead files... Pin
Dennis L26-Feb-03 4:45
Dennis L26-Feb-03 4:45 
GeneralRe: Read files... Pin
Dana Epp26-Feb-03 6:30
Dana Epp26-Feb-03 6:30 
GeneralCOM and #import question ... Pin
Daniel Strigl26-Feb-03 3:57
Daniel Strigl26-Feb-03 3:57 
GeneralRe: COM and #import question ... Pin
peterchen26-Feb-03 4:04
peterchen26-Feb-03 4:04 
GeneralRe: COM and #import question ... Pin
Stephane Rodriguez.26-Feb-03 4:21
Stephane Rodriguez.26-Feb-03 4:21 
GeneralRe: COM and #import question ... Pin
Daniel Strigl26-Feb-03 20:11
Daniel Strigl26-Feb-03 20:11 
GeneralRe: COM and #import question ... Pin
Stephane Rodriguez.26-Feb-03 4:20
Stephane Rodriguez.26-Feb-03 4:20 
GeneralRe: COM and #import question ... Pin
Daniel Strigl26-Feb-03 20:11
Daniel Strigl26-Feb-03 20:11 
GeneralRe: COM and #import question ... Pin
Giles26-Feb-03 5:53
Giles26-Feb-03 5:53 
GeneralRe: COM and #import question ... Pin
Daniel Strigl26-Feb-03 20:11
Daniel Strigl26-Feb-03 20:11 
GeneralDebugging fun with assembly and user dumps Pin
mediamaster4026-Feb-03 3:19
mediamaster4026-Feb-03 3:19 
GeneralRe: Debugging fun with assembly and user dumps Pin
Tim Smith26-Feb-03 3:33
Tim Smith26-Feb-03 3:33 
GeneralRe: Debugging fun with assembly and user dumps Pin
mediamaster4026-Feb-03 4:05
mediamaster4026-Feb-03 4:05 

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.