Click here to Skip to main content
15,916,941 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: C2084 FUNCTION ALREADY HAS A BODY Pin
Albert Holguin23-Dec-16 7:25
professionalAlbert Holguin23-Dec-16 7:25 
GeneralRe: C2084 FUNCTION ALREADY HAS A BODY Pin
leon de boer23-Dec-16 8:37
leon de boer23-Dec-16 8:37 
QuestionMFC code to move a train in two directions Pin
Member 1289526213-Dec-16 19:17
Member 1289526213-Dec-16 19:17 
AnswerRe: MFC code to move a train in two directions Pin
CPallini13-Dec-16 21:22
mveCPallini13-Dec-16 21:22 
AnswerRe: MFC code to move a train in two directions Pin
jeron114-Dec-16 4:40
jeron114-Dec-16 4:40 
GeneralRe: MFC code to move a train in two directions Pin
Richard MacCutchan14-Dec-16 5:08
mveRichard MacCutchan14-Dec-16 5:08 
GeneralRe: MFC code to move a train in two directions Pin
jeron114-Dec-16 5:11
jeron114-Dec-16 5:11 
SuggestionRe: MFC code to move a train in two directions Pin
David Crow14-Dec-16 5:36
David Crow14-Dec-16 5:36 
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 

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.