SetWindowSubclass.3w

Langue: en

Version: Jun 2009 (debian - 07/07/09)

Section: 3 (Bibliothèques de fonctions)

NAME

SetWindowSubclass (COMCTL32.410)

SYNOPSIS

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

DESCRIPTION

Starts a window subclass.

PARAMS

hWnd [In] handle to window subclass.

pfnSubclass [In] Pointer to new window procedure.

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

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

RETURNS

Success: non-zero

Failure: zero.

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.

IMPLEMENTATION

Exported by ordinal only. Use GetProcAddress(3w) to obtain a pointer to the function.

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

Debug channel "commctrl".