Click here to Skip to main content
16,010,876 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generaldialogs Pin
Lucky200231-Oct-02 10:12
Lucky200231-Oct-02 10:12 
GeneralRe: dialogs Pin
Christian Graus31-Oct-02 10:25
protectorChristian Graus31-Oct-02 10:25 
GeneralRe: dialogs Pin
Lucky200231-Oct-02 10:33
Lucky200231-Oct-02 10:33 
GeneralRe: dialogs Pin
Christian Graus31-Oct-02 10:50
protectorChristian Graus31-Oct-02 10:50 
GeneralRe: dialogs Pin
Lucky200231-Oct-02 11:03
Lucky200231-Oct-02 11:03 
GeneralRe: dialogs Pin
Christian Graus31-Oct-02 11:10
protectorChristian Graus31-Oct-02 11:10 
GeneralRe: dialogs Pin
Lucky200231-Oct-02 11:25
Lucky200231-Oct-02 11:25 
GeneralRe: dialogs Pin
Christian Graus31-Oct-02 11:33
protectorChristian Graus31-Oct-02 11:33 
Lucky2002 wrote:
where also the pointers are adjusted to zero?

In the constructor.

MyDialog1::MyDialog1()
{
pDialog2 = NULL;
}

Then presumably the main window when it creates dialog2, also passes the pointer to dialog1. In dialog1, you do this

{
if (pDialog2 && ::IsWindow(pDialog2))
pDialog2->SomeMethod(nSomeInt);
}

Finally, when the main program wants to get rid of a window, it calls ShowWindow(SW_HIDE); and when it wants to show it does this

if (m_pDialog1)
m_pDialog1->ShowWindow(SW_SHOW);
else
{
// Create the dialog
}



Christian

No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002

Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002

During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
GeneralRe: dialogs Pin
Lucky20021-Nov-02 8:07
Lucky20021-Nov-02 8:07 
GeneralTCP/IP Starting Point Pin
lstar31-Oct-02 7:23
lstar31-Oct-02 7:23 
GeneralRe: TCP/IP Starting Point Pin
Anders Molin31-Oct-02 7:51
professionalAnders Molin31-Oct-02 7:51 
GeneralRe: TCP/IP Starting Point Pin
valikac31-Oct-02 8:05
valikac31-Oct-02 8:05 
GeneralRe: TCP/IP Starting Point Pin
ian mariano31-Oct-02 12:17
ian mariano31-Oct-02 12:17 
QuestionHow do I create a CArray of complex numbers in VC++ Pin
Michael Liu31-Oct-02 7:09
Michael Liu31-Oct-02 7:09 
AnswerRe: How do I create a CArray of complex numbers in VC++ Pin
Joaquín M López Muñoz31-Oct-02 7:20
Joaquín M López Muñoz31-Oct-02 7:20 
GeneralRe: How do I create a CArray of complex numbers in VC++ Pin
Michael Liu31-Oct-02 7:37
Michael Liu31-Oct-02 7:37 
GeneralRe: How do I create a CArray of complex numbers in VC++ Pin
Michael Liu31-Oct-02 7:56
Michael Liu31-Oct-02 7:56 
GeneralRe: How do I create a CArray of complex numbers in VC++ Pin
markkuk31-Oct-02 23:58
markkuk31-Oct-02 23:58 
Generalchanging cursor Pin
mariuszpopiolek31-Oct-02 6:40
mariuszpopiolek31-Oct-02 6:40 
Generalmenu, menu, menu .... Pin
includeh1031-Oct-02 6:05
includeh1031-Oct-02 6:05 
GeneralRe: menu, menu, menu .... Pin
Maximilien31-Oct-02 7:04
Maximilien31-Oct-02 7:04 
GeneralRe: menu, menu, menu .... Pin
Christian Graus31-Oct-02 9:51
protectorChristian Graus31-Oct-02 9:51 
GeneralRe: menu, menu, menu .... Pin
Rickard Andersson2031-Oct-02 8:56
Rickard Andersson2031-Oct-02 8:56 
GeneralRe: menu, menu, menu .... Pin
Brian Delahunty31-Oct-02 9:38
Brian Delahunty31-Oct-02 9:38 
GeneralRe: menu, menu, menu .... Pin
Stephane Rodriguez.31-Oct-02 9:48
Stephane Rodriguez.31-Oct-02 9:48 

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.