다음을 통해 공유


CWinApp::ProcessWndProcException

The framework calls this member function whenever the handler does not catch an exception thrown in one of your application's message or command handlers.

virtual LRESULT ProcessWndProcException(
   CException* e,
   const MSG* pMsg 
);

Parameters

  • e
    A pointer to an uncaught exception.

  • pMsg
    A MSG structure that contains information about the windows message that caused the framework to throw an exception.

Return Value

The value that should be returned to Windows. Normally this is 0L for windows messages, 1L (TRUE) for command messages.

Remarks

Do not call this member function directly.

The default implementation of this member function creates a message box. If the uncaught exception originates with a menu, toolbar, or accelerator command failure, the message box displays a "Command failed" message; otherwise, it displays an "Internal application error" message.

Override this member function to provide global handling of your exceptions. Only call the base functionality if you wish the message box to be displayed.

Requirements

Header: afxwin.h

See Also

Concepts

CWinApp Class

CWinApp Members

Hierarchy Chart

CWnd::WindowProc

CException Class