Help Center

CWindow.SetClientSizemethod

Adjusts the bounding rectangle of the window based on the desired size of the client area.

WindowsmethodCWindow.incdocumented

Syntax

SUB SetClientSize (BYVAL nWidth AS LONG, BYVAL nHeight AS LONG)

Parameters

NameDescription
nWidthThe new width of the client area of the window.
nHeightThe new height of the client area of the window.

Description

Adjusts the bounding rectangle of the window based on the desired size of the client area. The sizes are scaled according the DPI seeting.

Example

pWindow.SetClientSize(400, 250)

Reference

  • Include file CWindow.inc
  • Defined in AfxNova/CWindow.inc:740
  • Documented in Windows/Windows GUI/CWindow Class.md
  • Topic: CWindow Class