Click here to Skip to main content
15,919,479 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
General"Controlling" a laptop from my desktop Pin
svoida27-Mar-02 12:00
svoida27-Mar-02 12:00 
GeneralRe: "Controlling" a laptop from my desktop Pin
Paul M Watt27-Mar-02 13:39
mentorPaul M Watt27-Mar-02 13:39 
GeneralRe: "Controlling" a laptop from my desktop Pin
Ravi Bhavnani28-Mar-02 6:51
professionalRavi Bhavnani28-Mar-02 6:51 
GeneralBinary Behavior Pin
Gerosa27-Mar-02 10:05
Gerosa27-Mar-02 10:05 
GeneralRe: Binary Behavior Pin
Maximilien27-Mar-02 11:12
Maximilien27-Mar-02 11:12 
GeneralRe: Binary Behavior Pin
Gerosa28-Mar-02 6:21
Gerosa28-Mar-02 6:21 
GeneralDialogs Pin
Tzoockee27-Mar-02 10:06
Tzoockee27-Mar-02 10:06 
GeneralRe: Dialogs Pin
Christian Graus27-Mar-02 10:12
protectorChristian Graus27-Mar-02 10:12 
DoModal(this) ???

Just create the dialog in the resource editor, make it a tool window, and create a class for it. In the SDI project, you just create an instance of the class and pass this into DoModal to make it a child.

If you want a toolwindow, I suspect you want to create a modeless dialog ( the main window remains functional ), in which case, do something like this in the constructor of the dialog]

if (Create(IDD, this)) ShowWindow(SW_SHOW);

Then make the dialog a member variable pointer, and call new on it when you want to show the dialog, and either ShowWindow(SW_HIDE) or DestroyObject(I *think*, it's been a while since I did this)/set to NULL when you don't want it anymore.


Christian

The tragedy of cyberspace - that so much can travel so far, and yet mean so little.

"I'm somewhat suspicious of STL though. My (test,experimental) program worked first time. Whats that all about??!?!
- Jon Hulatt, 22/3/2002
GeneralRe: Dialogs Pin
lucy27-Mar-02 10:08
lucy27-Mar-02 10:08 
GeneralRe: Dialogs Pin
Tomasz Sowinski27-Mar-02 10:31
Tomasz Sowinski27-Mar-02 10:31 
GeneralRe: Dialogs Pin
Christian Graus27-Mar-02 10:12
protectorChristian Graus27-Mar-02 10:12 
GeneralRe: Dialogs Pin
Nish Nishant27-Mar-02 13:45
sitebuilderNish Nishant27-Mar-02 13:45 
QuestionWin API equivalent of cin? Pin
thx27-Mar-02 10:02
thx27-Mar-02 10:02 
AnswerRe: Win API equivalent of cin? Pin
Christian Graus27-Mar-02 10:11
protectorChristian Graus27-Mar-02 10:11 
AnswerRe: Win API equivalent of cin? Pin
Chris Losinger27-Mar-02 10:19
professionalChris Losinger27-Mar-02 10:19 
GeneralRe: Win API equivalent of cin? Pin
29-Mar-02 5:59
suss29-Mar-02 5:59 
AnswerRe: Win API equivalent of cin? Pin
Tomasz Sowinski27-Mar-02 10:15
Tomasz Sowinski27-Mar-02 10:15 
AnswerRe: Win API equivalent of cin? Pin
Ravi Bhavnani27-Mar-02 10:29
professionalRavi Bhavnani27-Mar-02 10:29 
GeneralRe: Win API equivalent of cin? Pin
Christian Graus27-Mar-02 10:26
protectorChristian Graus27-Mar-02 10:26 
GeneralRe: Win API equivalent of cin? Pin
Tomasz Sowinski27-Mar-02 10:28
Tomasz Sowinski27-Mar-02 10:28 
GeneralRe: Win API equivalent of cin? Pin
Ravi Bhavnani27-Mar-02 10:36
professionalRavi Bhavnani27-Mar-02 10:36 
GeneralRe: Win API equivalent of cin? Pin
Tomasz Sowinski27-Mar-02 10:32
Tomasz Sowinski27-Mar-02 10:32 
AnswerRe: Win API equivalent of cin? Pin
28-Mar-02 6:27
suss28-Mar-02 6:27 
GeneralUninstall DLL Pin
27-Mar-02 9:45
suss27-Mar-02 9:45 
GeneralRe: Uninstall DLL Pin
soptest27-Mar-02 9:47
soptest27-Mar-02 9:47 

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.