Assume that you try to close a Microsoft Foundation Class (MFC) application on a Windows Embedded Compact 2013-based device. In this situation, an exception occurs. This issue occurs because an additional WM_NCDESTROY message is sent in the function AfxWndProc when the WM_DESTROY message is handled.
Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.