Re: Passing Parameters Out of a DialogBox
- From: "Tom Serface" <tserface@xxxxxxx>
- Date: Thu, 10 Aug 2006 09:00:25 -0700
Didn't say I knew for sure that's why I said "you will likely want". I
think setting the values from a dialog to the main routine only when someone
clicks "OK" (I.E., don't do it when you cancel) is pretty common and I just
wanted to show another illustration. To be fair, I don't know exactly what
they want.
Tom
"Ajay Kalra" <ajaykalra@xxxxxxxxx> wrote in message
news:%23WbWS$CvGHA.3552@xxxxxxxxxxxxxxxxxxxxxxx
// They canceled or closed without clicking OK so we don't want to getthe
new values.
How do you know what OP wants?
--
Ajay Kalra [MVP - VC++]
ajaykalra@xxxxxxxxx
"Tom Serface" <tserface@xxxxxxx> wrote in message
news:#FJl4Y8uGHA.3264@xxxxxxxxxxxxxxxxxxxxxxx
To add to what Ajay wrote, you will likely want to do something like:
dlg.m_nMyValue1 = m_nMyvalue1;
dlg.m_csMyValue = m_csMyvalue;
if(dlg.DoModal() == IDOK) {
// Get values
m_nMyValue = dlg.m_nMyValue1;
m_csMyvalue = dlg.m_csMyValue;
}
Tom
.
- References:
- Passing Parameters Out of a DialogBox
- From: Peter Olcott
- Re: Passing Parameters Out of a DialogBox
- From: Ajay Kalra
- Re: Passing Parameters Out of a DialogBox
- From: Peter Olcott
- Re: Passing Parameters Out of a DialogBox
- From: Tom Serface
- Re: Passing Parameters Out of a DialogBox
- From: Ajay Kalra
- Passing Parameters Out of a DialogBox
- Prev by Date: Re: save array to file, read it back in
- Next by Date: Re: Cache the login information
- Previous by thread: Re: Passing Parameters Out of a DialogBox
- Next by thread: Re: Passing Parameters Out of a DialogBox
- Index(es):
Relevant Pages
|