CBaseWindow::OnSize

 
Microsoft DirectShow 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.

Requirements

**  Header:** Declared in Winutil.h; include Streams.h.

**  Library:** Use Strmbase.lib (retail builds) or Strmbasd.lib (debug builds).

See Also