Click here to Skip to main content
15,894,343 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to declare a variable of type CRITICAL_SECTION Pin
zipliu2-Jul-07 10:18
zipliu2-Jul-07 10:18 
AnswerRe: How to declare a variable of type CRITICAL_SECTION Pin
zipliu2-Jul-07 10:19
zipliu2-Jul-07 10:19 
AnswerRe: How to declare a variable of type CRITICAL_SECTION Pin
David Crow2-Jul-07 10:49
David Crow2-Jul-07 10:49 
AnswerRe: How to declare a variable of type CRITICAL_SECTION Pin
Mark Salsbery2-Jul-07 12:43
Mark Salsbery2-Jul-07 12:43 
QuestionVariants Pin
tom groezer2-Jul-07 9:24
tom groezer2-Jul-07 9:24 
AnswerRe: Variants Pin
David Crow2-Jul-07 9:41
David Crow2-Jul-07 9:41 
QuestionMFC frame Pin
tom groezer2-Jul-07 9:16
tom groezer2-Jul-07 9:16 
AnswerRe: MFC frame Pin
Mark Salsbery2-Jul-07 9:39
Mark Salsbery2-Jul-07 9:39 
The Windows object (HWND) gets destroyed like any other window, when DestroyWindow() is called.

The MFC CFrameWnd object is destroyed in response to the WM_NCDESTROY message (see
CFrameWnd::PostNcDestroy()).

tom groezer wrote:
as opposed to other windows which should created on the stack?


Not necessarily true - The same scope rules apply as always. If you want a window to exist after
a function/method returns, the stack might not be a good place for the object.

Mark

Mark Salsbery
Microsoft MVP - Visual C++

QuestionWindow registeration Pin
tom groezer2-Jul-07 9:00
tom groezer2-Jul-07 9:00 
AnswerRe: Window registeration Pin
David Crow2-Jul-07 9:48
David Crow2-Jul-07 9:48 
AnswerRe: Window registeration Pin
Mark Salsbery2-Jul-07 9:49
Mark Salsbery2-Jul-07 9:49 
QuestionVMR9 & SampleGrabber at the same time , how ? Pin
Akin Ocal2-Jul-07 8:51
Akin Ocal2-Jul-07 8:51 
AnswerRe: VMR9 & SampleGrabber at the same time , how ? Pin
Mark Salsbery2-Jul-07 9:30
Mark Salsbery2-Jul-07 9:30 
GeneralRe: VMR9 & SampleGrabber at the same time , how ? Pin
Akin Ocal2-Jul-07 11:27
Akin Ocal2-Jul-07 11:27 
GeneralRe: VMR9 & SampleGrabber at the same time , how ? Pin
Mark Salsbery2-Jul-07 12:28
Mark Salsbery2-Jul-07 12:28 
QuestionWhat is dlg subclass ? Pin
prithaa2-Jul-07 8:21
prithaa2-Jul-07 8:21 
AnswerRe: What is dlg subclass ? Pin
David Crow2-Jul-07 8:32
David Crow2-Jul-07 8:32 
AnswerRe: What is dlg subclass ? Pin
Mark Salsbery2-Jul-07 9:06
Mark Salsbery2-Jul-07 9:06 
GeneralRe: What is dlg subclass ? Pin
prithaa3-Jul-07 0:36
prithaa3-Jul-07 0:36 
GeneralRe: What is dlg subclass ? Pin
Mark Salsbery3-Jul-07 5:50
Mark Salsbery3-Jul-07 5:50 
GeneralRe: What is dlg subclass ? Pin
prithaa3-Jul-07 23:35
prithaa3-Jul-07 23:35 
GeneralRe: What is dlg subclass ? Pin
Mark Salsbery4-Jul-07 6:20
Mark Salsbery4-Jul-07 6:20 
QuestionA simple question Pin
paulosuckow2-Jul-07 7:29
paulosuckow2-Jul-07 7:29 
QuestionInfinite value in C++ Pin
includeh102-Jul-07 6:18
includeh102-Jul-07 6:18 
AnswerRe: Infinite value in C++ Pin
Eytukan2-Jul-07 6:22
Eytukan2-Jul-07 6:22 

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.