CWinApp::ProcessWndProcException

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

Return Value

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

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.

Remarks

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.

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.

CWinApp OverviewClass MembersHierarchy Chart

See Also   CWnd::WindowProc, CException