Click here to Skip to main content
16,007,885 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CWnd destruction Pin
Jay Beckert26-Feb-02 13:57
Jay Beckert26-Feb-02 13:57 
GeneralRe: CWnd destruction Pin
alex.barylski26-Feb-02 13:57
alex.barylski26-Feb-02 13:57 
GeneralRe: CWnd destruction Pin
Christian Graus26-Feb-02 14:06
protectorChristian Graus26-Feb-02 14:06 
GeneralRe: CWnd destruction Pin
alex.barylski26-Feb-02 15:04
alex.barylski26-Feb-02 15:04 
GeneralRe: CWnd destruction Pin
Christian Graus26-Feb-02 15:02
protectorChristian Graus26-Feb-02 15:02 
GeneralRe: CWnd destruction Pin
Nish Nishant26-Feb-02 15:15
sitebuilderNish Nishant26-Feb-02 15:15 
GeneralRe: CWnd destruction Pin
Nish Nishant26-Feb-02 14:27
sitebuilderNish Nishant26-Feb-02 14:27 
GeneralRe: CWnd destruction Pin
Atul Dharne26-Feb-02 14:53
Atul Dharne26-Feb-02 14:53 
HockeyDude wrote:
when delete is called on the controls pointer do all the CWnd destructors get called automatically...???
Yes they will be called but IMO before that you will have to remove the windows from screen.
From MSDN:

"In the MFC framework, when the user closes the frame window, the window’s defaultOnClose handler callsDestroyWindow."


HockeyDude wrote:
Would I have to call the controls destroyWindow functions..??
From MSDN:

"Do not use the C++ delete operator to destroy a frame window or view. Instead, call the CWnd member function DestroyWindow. Frame windows, therefore, should be allocated on the heap with operator new."


Atul
GeneralRe: CWnd destruction Pin
Nish Nishant26-Feb-02 14:57
sitebuilderNish Nishant26-Feb-02 14:57 
GeneralRe: CWnd destruction Pin
alex.barylski26-Feb-02 15:08
alex.barylski26-Feb-02 15:08 
GeneralRe: CWnd destruction Pin
Nish Nishant26-Feb-02 15:14
sitebuilderNish Nishant26-Feb-02 15:14 
GeneralRe: CWnd destruction Pin
alex.barylski26-Feb-02 15:46
alex.barylski26-Feb-02 15:46 
GeneralRe: CWnd destruction Pin
Atul Dharne26-Feb-02 16:28
Atul Dharne26-Feb-02 16:28 
GeneralWindow Pointers Pin
Alan Blakely26-Feb-02 12:52
Alan Blakely26-Feb-02 12:52 
GeneralRe: Window Pointers Pin
Derek Waters26-Feb-02 12:50
Derek Waters26-Feb-02 12:50 
GeneralRe: Window Pointers Pin
Nish Nishant26-Feb-02 12:58
sitebuilderNish Nishant26-Feb-02 12:58 
GeneralDifferent font sizes in a dialog Pin
26-Feb-02 12:36
suss26-Feb-02 12:36 
GeneralRe: Different font sizes in a dialog Pin
Derek Waters26-Feb-02 12:53
Derek Waters26-Feb-02 12:53 
GeneralRe: Different font sizes in a dialog Pin
Nish Nishant26-Feb-02 12:53
sitebuilderNish Nishant26-Feb-02 12:53 
GeneralRe: Different font sizes in a dialog Pin
Nish Nishant26-Feb-02 12:56
sitebuilderNish Nishant26-Feb-02 12:56 
GeneralDocument views Pin
26-Feb-02 12:29
suss26-Feb-02 12:29 
GeneralRe: Document views Pin
Derek Waters26-Feb-02 12:56
Derek Waters26-Feb-02 12:56 
GeneralVisual C++ breakpoint won't trigger. Pin
clintsinger26-Feb-02 10:50
clintsinger26-Feb-02 10:50 
GeneralRe: Visual C++ breakpoint won't trigger. Pin
alex.barylski26-Feb-02 13:33
alex.barylski26-Feb-02 13:33 
GeneralRe: Visual C++ breakpoint won't trigger. Pin
Michael P Butler26-Feb-02 22:59
Michael P Butler26-Feb-02 22:59 

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.