CWindow.SetClientSizemethod
Adjusts the bounding rectangle of the window based on the desired size of the client area.
Syntax
SUB SetClientSize (BYVAL nWidth AS LONG, BYVAL nHeight AS LONG)
Parameters
| Name | Description | |
|---|---|---|
nWidth | The new width of the client area of the window. | |
nHeight | The 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