Click here to Skip to main content
15,892,965 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Sending A Variable to another computer. Pin
David Crow30-Mar-06 10:56
David Crow30-Mar-06 10:56 
QuestionCan't find clipboard is busy error Pin
Harrier30-Mar-06 9:46
Harrier30-Mar-06 9:46 
QuestionRe: Can't find clipboard is busy error Pin
David Crow30-Mar-06 9:51
David Crow30-Mar-06 9:51 
AnswerRe: Can't find clipboard is busy error Pin
Harrier30-Mar-06 10:06
Harrier30-Mar-06 10:06 
QuestionRe: Can't find clipboard is busy error Pin
David Crow30-Mar-06 10:32
David Crow30-Mar-06 10:32 
AnswerRe: Can't find clipboard is busy error Pin
Harrier30-Mar-06 10:44
Harrier30-Mar-06 10:44 
QuestionOnInitialUpdate() never gets entered Pin
ns30-Mar-06 9:20
ns30-Mar-06 9:20 
QuestionRe: OnInitialUpdate() never gets entered Pin
David Crow30-Mar-06 9:53
David Crow30-Mar-06 9:53 
OnInitialUpdate() is for a view, not a dialog. Override OnInitDialog() instead.


ns wrote:
The way I am creating the dialog is

m_tgtInfo = new CTargetInfo(this);
if(!m_tgtInfo) return CDialog::OnCommand(wp, lp);
m_tgtInfo->Create(IDD_DLGTGTINFO, (CWnd*)this);
m_tgtInfo->ShowWindow(SW_SHOW);


Why not create a modal dialog instead:

CTargetInfo dlg;
dlg.DoModal();



"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain

"There is no death, only a change of worlds." - Native American Proverb


AnswerRe: OnInitialUpdate() never gets entered Pin
ns30-Mar-06 10:05
ns30-Mar-06 10:05 
GeneralRe: OnInitialUpdate() never gets entered Pin
David Crow30-Mar-06 10:31
David Crow30-Mar-06 10:31 
GeneralRe: OnInitialUpdate() never gets entered Pin
ns30-Mar-06 10:40
ns30-Mar-06 10:40 
QuestionSerial port access Pin
LCI30-Mar-06 8:53
LCI30-Mar-06 8:53 
QuestionRe: Serial port access Pin
Roger Stoltz30-Mar-06 10:15
Roger Stoltz30-Mar-06 10:15 
AnswerRe: Serial port access Pin
LCI30-Mar-06 10:35
LCI30-Mar-06 10:35 
AnswerRe: Serial port access Pin
Roger Stoltz30-Mar-06 11:26
Roger Stoltz30-Mar-06 11:26 
GeneralRe: Serial port access Pin
LCI30-Mar-06 11:53
LCI30-Mar-06 11:53 
AnswerRe: Serial port access Pin
Roger Stoltz30-Mar-06 20:34
Roger Stoltz30-Mar-06 20:34 
AnswerRe: Serial port access Pin
Trollslayer30-Mar-06 12:09
mentorTrollslayer30-Mar-06 12:09 
Questionhow does a CDialog derived window notify the parent it was closed? Pin
ns30-Mar-06 8:50
ns30-Mar-06 8:50 
AnswerRe: how does a CDialog derived window notify the parent it was closed? Pin
Rage30-Mar-06 9:07
professionalRage30-Mar-06 9:07 
QuestionRe: how does a CDialog derived window notify the parent it was closed? Pin
David Crow30-Mar-06 9:33
David Crow30-Mar-06 9:33 
AnswerRe: how does a CDialog derived window notify the parent it was closed? Pin
ns30-Mar-06 9:39
ns30-Mar-06 9:39 
QuestionRe: how does a CDialog derived window notify the parent it was closed? Pin
David Crow30-Mar-06 9:39
David Crow30-Mar-06 9:39 
AnswerRe: how does a CDialog derived window notify the parent it was closed? Pin
ns30-Mar-06 10:12
ns30-Mar-06 10:12 
GeneralRe: how does a CDialog derived window notify the parent it was closed? Pin
David Crow30-Mar-06 10:27
David Crow30-Mar-06 10:27 

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.