Microsoft DirectX 9.0

CBaseWindow::OnSize

The OnSize method handles WM_SIZE messages.

Syntax

virtual BOOL OnSize(
    LONG Width,
    LONG Height
);

Parameters

Width

Width of the client area, in pixels.

Height

Height of the client area, in pixels.

Return Value

Returns TRUE.

Remarks

This method stores the new width and height. To retrieve these values, call the CBaseWindow::GetWindowHeight and CBaseWindow::GetWindowWidth methods.

See Also