Help Center

AfxAddWindowStylefunction

Adds a new style to the specified window.

WindowsfunctionAfxWin.incdocumented

Syntax

FUNCTION AfxAddWindowStyle (BYVAL hwnd AS HWND, BYVAL dwStyle AS LONG_PTR) AS LONG_PTR

Parameters

NameDescription
hwndHandle to the window.
dwStyleStyle to add.

Return value

The previous window styles.

Description

Adds a new style to the specified window.

Example

AfxAddWindowStyle(hwnd, WS_HSCROLL)

Reference

  • Include file AfxWin.inc
  • Defined in AfxNova/AfxWin.inc:1890
  • Documented in Windows/Windows Procedures.md
  • Topic: Windows Procedures