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
);
Параметры
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.
Возвращаемое значение
–1 if a WM_CREATE exception is generated; otherwise 0.
Заметки
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.
Требования
Header: afxwin.h