Click here to Skip to main content
16,004,901 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How can I stitch image files while scrolling? Pin
Nelek22-Aug-07 20:11
protectorNelek22-Aug-07 20:11 
QuestionHow do you check if a USB Stick is inserted? Pin
adful22-Aug-07 13:01
adful22-Aug-07 13:01 
AnswerRe: How do you check if a USB Stick is inserted? Pin
act_x22-Aug-07 13:42
act_x22-Aug-07 13:42 
AnswerRe: How do you check if a USB Stick is inserted? Pin
Iain Clarke, Warrior Programmer23-Aug-07 1:43
Iain Clarke, Warrior Programmer23-Aug-07 1:43 
JokeRe: How do you check if a USB Stick is inserted? Pin
David Crow23-Aug-07 3:16
David Crow23-Aug-07 3:16 
QuestionTwo methods to create dialog Pin
acerunner31622-Aug-07 10:35
acerunner31622-Aug-07 10:35 
AnswerRe: Two methods to create dialog Pin
David Crow22-Aug-07 10:57
David Crow22-Aug-07 10:57 
AnswerRe: Two methods to create dialog Pin
Mark Salsbery22-Aug-07 12:02
Mark Salsbery22-Aug-07 12:02 
acerunner316 wrote:
in method 1, mMyDialog will be destroyed when its parent is closed, correct?

The windows object (HWND) will be destroyed when the parent is destroyed.
The CMyDialog object is destroyed when it goes out of scope.  If it goes out of
scope while its wrapped HWND is valid, the Windows object (HWND) will be destroyed
as well.

I suppose which method you use (in addition to DavidCrow's reply) depends on the
desired scope of the object and/or whether you want it on the stack or the heap.

Mark



Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

AnswerRe: Two methods to create dialog Pin
toxcct22-Aug-07 21:27
toxcct22-Aug-07 21:27 
AnswerRe: Two methods to create dialog Pin
Russell'22-Aug-07 22:23
Russell'22-Aug-07 22:23 
AnswerRe: Two methods to create dialog Pin
Roger Broomfield22-Aug-07 22:33
Roger Broomfield22-Aug-07 22:33 
QuestionVC++,CClientDC and OnDraw's CDC Pin
akira3222-Aug-07 7:36
akira3222-Aug-07 7:36 
AnswerRe: VC++,CClientDC and OnDraw's CDC Pin
Mark Salsbery22-Aug-07 7:51
Mark Salsbery22-Aug-07 7:51 
QuestionUsing MSXML APIs in C++ program Pin
koumodaki22-Aug-07 7:23
koumodaki22-Aug-07 7:23 
QuestionRe: Using MSXML APIs in C++ program Pin
David Crow22-Aug-07 7:30
David Crow22-Aug-07 7:30 
AnswerRe: Using MSXML APIs in C++ program Pin
koumodaki22-Aug-07 7:33
koumodaki22-Aug-07 7:33 
GeneralRe: Using MSXML APIs in C++ program Pin
David Crow22-Aug-07 7:42
David Crow22-Aug-07 7:42 
GeneralRe: Using MSXML APIs in C++ program Pin
koumodaki22-Aug-07 8:00
koumodaki22-Aug-07 8:00 
GeneralRe: Using MSXML APIs in C++ program Pin
Michael Dunn22-Aug-07 7:46
sitebuilderMichael Dunn22-Aug-07 7:46 
GeneralRe: Using MSXML APIs in C++ program Pin
led mike22-Aug-07 8:39
led mike22-Aug-07 8:39 
AnswerRe: Using MSXML APIs in C++ program Pin
jhwurmbach22-Aug-07 7:32
jhwurmbach22-Aug-07 7:32 
GeneralRe: Using MSXML APIs in C++ program Pin
koumodaki22-Aug-07 7:41
koumodaki22-Aug-07 7:41 
GeneralRe: Using MSXML APIs in C++ program Pin
jhwurmbach22-Aug-07 7:44
jhwurmbach22-Aug-07 7:44 
QuestionHow to pass dynamic array from SDI Document to Dialog ComboBox? Pin
penny black22-Aug-07 7:21
penny black22-Aug-07 7:21 
AnswerRe: How to pass dynamic array from SDI Document to Dialog ComboBox? Pin
David Crow22-Aug-07 7:33
David Crow22-Aug-07 7:33 

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.