Click here to Skip to main content
15,888,984 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: MFC code to move a train in two directions Pin
Chris Losinger14-Dec-16 11:00
professionalChris Losinger14-Dec-16 11:00 
AnswerRe: MFC code to move a train in two directions Pin
Gerry Schmitz14-Dec-16 12:21
mveGerry Schmitz14-Dec-16 12:21 
AnswerRe: MFC code to move a train in two directions Pin
Patrice T14-Dec-16 12:45
mvePatrice T14-Dec-16 12:45 
AnswerRe: MFC code to move a train in two directions Pin
Munchies_Matt30-Dec-16 7:35
Munchies_Matt30-Dec-16 7:35 
QuestionTiny Encryption Algorithm Pin
Rhonnn12-Dec-16 20:42
Rhonnn12-Dec-16 20:42 
AnswerRe: Tiny Encryption Algorithm Pin
Jochen Arndt12-Dec-16 20:55
professionalJochen Arndt12-Dec-16 20:55 
AnswerRe: Tiny Encryption Algorithm Pin
Patrice T14-Dec-16 12:39
mvePatrice T14-Dec-16 12:39 
QuestionKnow when a child popup dialog is opened Pin
_Flaviu11-Dec-16 23:06
_Flaviu11-Dec-16 23:06 
Hi all of you. I have a dialogbar from where I open a popup dialog, let say CMyDialog, but it is opened in non modal way, dynamically created:

C++
void CDialogBar::SomeButton()
{
    CMyDialog* pDialog = new CMyDialog;
    pDialog->Create(...);
}


From that dialogbar, it is possible to know if that CMyDialog is opened ?

C++
void CDialogBar::OtherButton()
{
    CWnd* pWnd = FindWindowEx(NULL, NULL, _T("Dialog"), NULL);
    ASSERT(NULL != pWnd);
}


but the pWnd is always NULL, even when CMyDialog is open ...

How can I know for sure if that CMyDialog is opened, without making pDialog as member variable of CDialogbar ?
SuggestionRe: Know when a child popup dialog is opened Pin
Richard MacCutchan11-Dec-16 23:18
mveRichard MacCutchan11-Dec-16 23:18 
AnswerRe: Know when a child popup dialog is opened Pin
Jochen Arndt11-Dec-16 23:56
professionalJochen Arndt11-Dec-16 23:56 
GeneralRe: Know when a child popup dialog is opened Pin
_Flaviu12-Dec-16 1:38
_Flaviu12-Dec-16 1:38 
GeneralRe: Know when a child popup dialog is opened Pin
Jochen Arndt12-Dec-16 2:06
professionalJochen Arndt12-Dec-16 2:06 
GeneralRe: Know when a child popup dialog is opened Pin
_Flaviu13-Dec-16 0:08
_Flaviu13-Dec-16 0:08 
GeneralRe: Know when a child popup dialog is opened Pin
Jochen Arndt13-Dec-16 0:25
professionalJochen Arndt13-Dec-16 0:25 
QuestionRe: Know when a child popup dialog is opened Pin
David Crow12-Dec-16 3:15
David Crow12-Dec-16 3:15 
AnswerRe: Know when a child popup dialog is opened Pin
_Flaviu12-Dec-16 5:24
_Flaviu12-Dec-16 5:24 
GeneralRe: Know when a child popup dialog is opened Pin
Victor Nijegorodov12-Dec-16 7:46
Victor Nijegorodov12-Dec-16 7:46 
GeneralRe: Know when a child popup dialog is opened Pin
_Flaviu12-Dec-16 23:48
_Flaviu12-Dec-16 23:48 
AnswerRe: Know when a child popup dialog is opened Pin
leon de boer13-Dec-16 16:47
leon de boer13-Dec-16 16:47 
GeneralRe: Know when a child popup dialog is opened Pin
_Flaviu15-Dec-16 23:24
_Flaviu15-Dec-16 23:24 
QuestionProper declaration of array with volatile values inside it? Pin
arnold_w7-Dec-16 3:30
arnold_w7-Dec-16 3:30 
AnswerRe: Proper declaration of array with volatile values inside it? Pin
Jochen Arndt7-Dec-16 4:22
professionalJochen Arndt7-Dec-16 4:22 
AnswerRe: Proper declaration of array with volatile values inside it? Pin
leon de boer7-Dec-16 6:39
leon de boer7-Dec-16 6:39 
QuestionTree Ctrl Object Selection Pin
raajpatel4-Dec-16 20:57
raajpatel4-Dec-16 20:57 
GeneralRe: Tree Ctrl Object Selection Pin
Richard MacCutchan4-Dec-16 21:16
mveRichard MacCutchan4-Dec-16 21:16 

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.