Help Center

AfxAddWindowExStylefunction

Adds a new extended style to the specified window.

WindowsfunctionAfxWin.incdocumented

Syntax

FUNCTION AfxAddWindowExStyle (BYVAL hwnd AS HWND, BYVAL dwExStyle AS LONG_PTR) AS LONG_PTR

Parameters

NameDescription
hwndHandle to the window.
dwExStyleExtended style to add.

Return value

The previous window extended styles.

Description

Adds a new extended style to the specified window.

Remarks

If the window has a class style of CS_CLASSDC or CS_OWNDC, do not set the extended window styles WS_EX_COMPOSITED or WS_EX_LAYERED.

Example

AfxAddWindowExStyle(hwnd, WS_EX_COMPOSITED)

Reference

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