Originally posted by: Graham
thanks for the help, I searched for so long trying to find a solution to my problems, thanks so much!
ReplyOriginally posted by: ArielR
How I may to do if want to use Dlg2 members like CString value in Dlg3 dialog.
I tried with:
BOOL CDlg3::OnInitDialog()
m_sDlg3Strn = m_pDlg2.m_sTxtDlg2;
UpdateData(TRUE);
return TRUE; // return TRUE unless you set the
But my m_pDlg2.m_sTxtDlg2 String is empty.
I have created 3 dialogs,
Dlg1-> Parent
Dlg2 -> child
Dlg3 -> child
In Dlg3:
# Include "Dlg2.h"
{
CDialog::OnInitDialog();
CDlg2 m_pDlg2;
}
Originally posted by: Utkal Ranjan
Hi
Can u tell me how can I access the controls(properties+functions) from one dialog from another dialog ? My Dialog Based Application has lots of Dialogs (abt 50 dialogs). I want to know a specific property of a control with in another dialog. Plz tell me.
Another thing is that who can guide me to know more abt VC++. I want to communicate with him by Yahoo Messaenger. My Messenger ID is "ctboy420". I'll be happy if any one can help me.
ReplyOriginally posted by: saro
Hi your example is good
can u say how i ll do the exchange for CRecordView?
Originally posted by: Lee Tobin
Pitty about the typo's :)
ReplyOriginally posted by: amit
Hi All!
I have created a dialog based application in mfc.
i need to use the controls of one dialog in the another dialog so that they are interdependent on each other i.e;
the functions should behave in the same manner.
My problem is that when i switch the dialogs the operations done in the main view are lost.I need the functions as if they are accessible from all dialogs and no data is lost while dialog switching.
I have used modal dialogs.
Please advise.
Thanks & regards
amit
Originally posted by: Rupak
I am facing a problem in the following situation...
I have 4 dialogs say A,B,C,D.Out of which, B needs to be
shown all the time as tray icon.Now I should be able to
show C and/or D with B as Modal dialog.How do I achieve
this? Also,with B already there,C and D dialogs remain on
top of all windows even if they have lost their
focus,where as I would like them to behave as normal
windows.
Any help would be greatly appreciated.
Thanking in appreciation,
Rupak.
Originally posted by: Jack
My project has 2 dialogs and when the user clicks on a button I want the 2nd dialog to open and the first to close. I can do this fine except the 2nd dialog doesn't have an icon and doesn't show in the windows task bar. Any suggestions?
ReplyOriginally posted by: MyeongHoon Lee
I changed the OnSwitch and the OnSwitchBack functions as follows:
Old coding
CWnd* TheMainWindow = AfxGetMainWnd();
CDialog::OnCancel;
New coding
CWnd* TheMainWnd = AfxGetMainWnd();
CDialog::OnCancel();
// change TheMainWindow -> TheMainWnd
// change OnCancel -> OnCancel()
//Thanks
Originally posted by: Wang Quan
// CWnd* TheMainWindow = AfxGetMainWnd();
As a matter of fact, the point of TheMainWindow is not used.
There will be the same result if you cancel the following:
// TheMainWindow = &Yourdlg1