Allocating and Deallocating Window Memory
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
. Be careful when allocating frame windows on the stack frame or globally. Other windows should be allocated on the stack frame whenever possible.
What do you want to know more about
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for