Help Center

CWindow.ControlWidthmethod

Returns the unscaled width of the specified window.

WindowsmethodCWindow.incdocumented

Syntax

FUNCTION ControlWidth (BYVAL hwnd AS HWND) AS LONG

Parameters

NameDescription
hwndHandle to the window or control.

Description

Returns the unscaled width of the specified window.

Example

DIM nWidth AS LONG = pWindow.ControlWidth(hwnd)

Reference

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