Microsoft DirectX 9.0

CBaseWindow::OnReceiveMessage

The OnReceiveMessage method handles window messages.

Syntax

virtual LRESULT OnReceiveMessage(
    HWND hwnd,
    INT uMsg,
    WPARAM wParam,
    LPARAM lParam
);

Parameters

hwnd

Handle to the window.

uMsg

Message identifier.

wParam

First message parameter.

lParam

Second message parameter.

Return Value

Returns 0 if the message was processed, or 1 if the message was not processed.

Remarks

The base class handles the following messages:

A derived class can override this method to handle other messages. The derived class should call the base class method to handle any messages that the derived class ignores.

See Also