The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.



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 


A pointer to an uncaught exception.


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

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

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.


Header: afxwin.h