Freigeben über


CWinThread::ProcessWndProcException

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

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

Parameters

  • e
    Points to an unhandled exception.

  • pMsg
    Points to a MSG structure containing information about the windows message that caused the framework to throw an exception.

Return Value

–1 if a WM_CREATE exception is generated; otherwise 0.

Remarks

Do not call this member function directly.

The default implementation of this member function handles only exceptions generated from the following messages:

Command

Action

WM_CREATE

Fail.

WM_PAINT

Validate the affected window, thus preventing another WM_PAINT message from being generated.

Override this member function to provide global handling of your exceptions. Call the base functionality only if you wish to display the default behavior.

This member function is used only in threads that have a message pump.

Requirements

Header: afxwin.h

See Also

Concepts

CWinThread Class

CWinThread Members

Hierarchy Chart

CWinApp::ProcessWndProcException