Replaces the DefWindowProc function.
Syntax
HRESULT OnDefWindowProc( HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam, LRESULT *plResult );
Parameters
- hWnd
- [in] Handle to the window procedure that received the message.
- Msg
- [in] Unsigned integer that specifies the message.
- wParam
- [in] WPARAM value that specifies additional message information.
- lParam
- [in] LPARAM value that specifies additional message information.
- plResult
- [out] Address of an LRESULT value that receives the result of the operation.
Return Value
Returns S_OK if successful, or an error code otherwise.
Remarks
This method must be called before you would normally call DefWindowProc. If IActiveIMMApp::OnDefWindowProc returns S_FAIL, DefWindowProc should be called.