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
คำติชม
https://aka.ms/ContentUserFeedback
เร็วๆ นี้: ตลอดปี 2024 เราจะขจัดปัญหา GitHub เพื่อเป็นกลไกคำติชมสำหรับเนื้อหา และแทนที่ด้วยระบบคำติชมใหม่ สำหรับข้อมูลเพิ่มเติม ให้ดู:ส่งและดูข้อคิดเห็นสำหรับ