|
-
May 6th, 1999, 02:28 PM
#1
Please explain ambiguity
I have stand-alone owner-draw button to use as "Close." MFC source file defines OnAppExit(): m_pMainWnd->SendMessage(WM_CLOSE). Even has comment stating: "Same as clicking close button in upper right corner." In my view class, define handler for button: AfxGetApp()->m_pMainWnd->SendMessage(WM_CLOSE). App closes fine. Here's problem: Memory leak when using owner-draw button. Among others, DocTemplate not deallocating. Using default "X" button, no leaks. Has me baffled. Any suggestions? Thanks.
Tom
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|