Click here to Skip to main content
15,909,586 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Help with controls handling messages in a dialog Pin
work_to_live6-Dec-02 7:09
work_to_live6-Dec-02 7:09 
GeneralRe: Help with controls handling messages in a dialog Pin
Roger Allen6-Dec-02 7:21
Roger Allen6-Dec-02 7:21 
QuestionHow to Detect which Application is Connected to the Internet Pin
Ranjan Banerji6-Dec-02 4:57
Ranjan Banerji6-Dec-02 4:57 
AnswerRe: How to Detect which Application is Connected to the Internet Pin
geo_m6-Dec-02 5:16
geo_m6-Dec-02 5:16 
GeneralRe: How to Detect which Application is Connected to the Internet Pin
Ranjan Banerji9-Dec-02 4:07
Ranjan Banerji9-Dec-02 4:07 
GeneralMultiple windows program Pin
sumod6-Dec-02 4:54
sumod6-Dec-02 4:54 
GeneralRe: Multiple windows program Pin
Maximilien6-Dec-02 5:05
Maximilien6-Dec-02 5:05 
GeneralRe: Multiple windows program Pin
Nitron6-Dec-02 10:51
Nitron6-Dec-02 10:51 
If what you want to do is have 2 dialogs from the same app and have them talk to each other, try:

In the main dlg.h

protected:
 CMySecondDlg m_SecondDlg;


then in dlg.cpp:

m_SecondDlg.Create(IDD_MY_DIALOG_RESOURCE, this);


and to show it:
m_SecondDlg.ShowWindow(SW_SHOW);


Then to get access to the main dlg from the new one:
CDlg* pMainDlg = static_cast<CDlg*>(AfxGetMainWnd());


Then you can access main dialog public members like:
pMainDlg->m_MyEditBox.SetWindowText("Boo!");


The second dialog would then be called a Modeless dialog rather than a Modal one.

- Nitron


"Those that say a task is impossible shouldn't interrupt the ones who are doing it." - Chinese Proverb
Questionhow not to view disassembly while debugging Pin
pnpfriend6-Dec-02 4:15
pnpfriend6-Dec-02 4:15 
AnswerRe: how not to view disassembly while debugging Pin
Paul M Watt6-Dec-02 5:55
mentorPaul M Watt6-Dec-02 5:55 
QuestionHow to use m_spClientSite Pin
hdi99kf@syd.kth.se6-Dec-02 2:41
hdi99kf@syd.kth.se6-Dec-02 2:41 
AnswerRe: How to use m_spClientSite Pin
geo_m6-Dec-02 5:07
geo_m6-Dec-02 5:07 
GeneralRe: How to use m_spClientSite Pin
charlie26-Dec-02 7:01
charlie26-Dec-02 7:01 
GeneralRe: How to use m_spClientSite Pin
geo_m6-Dec-02 8:35
geo_m6-Dec-02 8:35 
GeneralMFC and ActiveX problems Pin
amek6-Dec-02 2:07
amek6-Dec-02 2:07 
GeneralRe: MFC and ActiveX problems Pin
Nitron6-Dec-02 10:13
Nitron6-Dec-02 10:13 
GeneralMFC doc/view with non-file-based documents Pin
Taka Muraoka6-Dec-02 1:52
Taka Muraoka6-Dec-02 1:52 
GeneralRe: MFC doc/view with non-file-based documents Pin
Prem Kumar6-Dec-02 4:31
Prem Kumar6-Dec-02 4:31 
GeneralRe: MFC doc/view with non-file-based documents Pin
Taka Muraoka6-Dec-02 4:45
Taka Muraoka6-Dec-02 4:45 
GeneralRe: MFC doc/view with non-file-based documents Pin
Roger Allen6-Dec-02 5:30
Roger Allen6-Dec-02 5:30 
GeneralRe: MFC doc/view with non-file-based documents Pin
Taka Muraoka6-Dec-02 11:20
Taka Muraoka6-Dec-02 11:20 
GeneralMsgWaitForMultipleObjects() Pin
Hugo Hallman6-Dec-02 1:08
Hugo Hallman6-Dec-02 1:08 
GeneralRe: MsgWaitForMultipleObjects() Pin
geo_m6-Dec-02 2:50
geo_m6-Dec-02 2:50 
QuestionHow to set DC Clipping Region?? Pin
work_to_live6-Dec-02 0:44
work_to_live6-Dec-02 0:44 
AnswerRe: How to set DC Clipping Region?? Pin
work_to_live6-Dec-02 1:06
work_to_live6-Dec-02 1:06 

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.