Click here to Skip to main content
15,903,030 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Converting txt to bmp Pin
Nilesh K.31-May-05 23:14
Nilesh K.31-May-05 23:14 
GeneralRe: Converting txt to bmp Pin
ThatsAlok1-Jun-05 0:15
ThatsAlok1-Jun-05 0:15 
GeneralRe: Converting txt to bmp Pin
Nilesh K.1-Jun-05 0:23
Nilesh K.1-Jun-05 0:23 
GeneralRe: Converting txt to bmp Pin
khan++1-Jun-05 1:38
khan++1-Jun-05 1:38 
QuestionHow can I disable Firewall Pin
Ali_quaidian31-May-05 21:42
Ali_quaidian31-May-05 21:42 
AnswerRe: How can I disable Firewall Pin
Christian Graus31-May-05 22:01
protectorChristian Graus31-May-05 22:01 
Generaltransfer data between dialog boxes Pin
abhi_code31-May-05 21:36
abhi_code31-May-05 21:36 
GeneralRe: transfer data between dialog boxes Pin
Cedric Moonen31-May-05 21:55
Cedric Moonen31-May-05 21:55 
The best way to do that is something like that:

Say your main dialog is CMainDlg, and your three other dialogs are CDialog1, CDialog2 and CDialog3

void CMainDlg::OnButton1()<br />
{<br />
   CDialog1 Dlg;<br />
   Dlg.DoModal();<br />
<br />
   RadioStatus1 = Dlg.GetRadioStatus();<br />


The same thing for Button2 (retrieving RadioStatus2 from CDialog2

void CMainDlg::OnButton3()<br />
{<br />
   CDialog3 Dlg;<br />
   Dlg.SetRadioStatus(RadioStatus1, RadioStatus2);<br />
   Dlg.DoModal();<br />
}


So, a quick explanation: RadioStatus1 and RadioStatus2 are member variables from your main dialog that will hold the status of the two radio buttons. In the CDialog1 and CDialog2 classes, you must add a handler function for the OnOk event (or when the dialog closes) to retrieve the status of the radio button and save it in a member variable of this class. Then add the member function GetRadioStatus that will return this value.

Finally, for the third dialog, you must add a function that will send the values of the buttons to this dialog before calling DoModal.

Ok, this is just an example of how to do it. Hope this is clear enough...
GeneralRe: transfer data between dialog boxes Pin
abhi_code1-Jun-05 0:59
abhi_code1-Jun-05 0:59 
GeneralRe: transfer data between dialog boxes Pin
Christian Graus31-May-05 21:58
protectorChristian Graus31-May-05 21:58 
GeneralRe: transfer data between dialog boxes Pin
abhi_code1-Jun-05 1:02
abhi_code1-Jun-05 1:02 
GeneralAssignement operator Pin
Haakon S.31-May-05 21:17
Haakon S.31-May-05 21:17 
GeneralRe: Assignement operator Pin
Haakon S.31-May-05 21:20
Haakon S.31-May-05 21:20 
GeneralRe: Assignement operator Pin
PJ Arends31-May-05 21:50
professionalPJ Arends31-May-05 21:50 
GeneralRe: Assignement operator Pin
Haakon S.1-Jun-05 3:50
Haakon S.1-Jun-05 3:50 
GeneralRe: Assignement operator Pin
PJ Arends1-Jun-05 14:57
professionalPJ Arends1-Jun-05 14:57 
GeneralRe: Assignement operator Pin
Haakon S.1-Jun-05 20:54
Haakon S.1-Jun-05 20:54 
GeneralRe: Assignement operator Pin
Haakon S.2-Jun-05 0:00
Haakon S.2-Jun-05 0:00 
GeneralRe: Assignement operator Pin
S. Senthil Kumar31-May-05 23:12
S. Senthil Kumar31-May-05 23:12 
GeneralCadlib for creating dxf Pin
saqibsohail31-May-05 20:51
saqibsohail31-May-05 20:51 
GeneralManaged Form in Unmanaged Host Pin
Aamir Butt31-May-05 20:47
Aamir Butt31-May-05 20:47 
GeneralRe: Managed Form in Unmanaged Host Pin
Ryan Binns31-May-05 22:20
Ryan Binns31-May-05 22:20 
GeneralMaking setup file vc++ Pin
ningthemcha00731-May-05 20:19
ningthemcha00731-May-05 20:19 
GeneralRe: Making setup file vc++ Pin
ThatsAlok31-May-05 20:33
ThatsAlok31-May-05 20:33 
Generalpop up message Pin
ask_you31-May-05 17:44
ask_you31-May-05 17:44 

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.