SetWindowSubclass(3w)

SetWindowSubclass3w

Usage

BOOL SetWindowSubclass
(
HWND hWnd,
SUBCLASSPROC pfnSubclass,
UINT_PTR uIDSubclass,
DWORD_PTR dwRef
)

Overview

Starts a window subclass.

Params

hWnd [In] handle to window subclass.

pfnSubclass [In] Pointer to new window procedure.

uIDSubclass [In] Unique identifier of subclass together with pfnSubclass.

dwRef [In] Reference data to pass to window procedure.

Returns

Success: non-zero

Failure: zero.

Implementation

Declared in "commctrl.h".

Implemented in "dlls/comctl32/commctrl.c".

Debug channel "commctrl".

Releases

4 releases since Debian 4.0 (Etch); the text changed 3 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7

Bugs

If an application manually subclasses a window after subclassing it with this Api and then with this Api again, then none of the previous subclasses get called or the original window procedure.

From libwine-dev 1.4.1-4 in Debian 7 (Wheezy). Parsed by carta from the page's man source.