.\" -*- nroff -*- .\" Generated file - DO NOT EDIT! .TH SetWindowSubclass 3w "Oct 2012" "Wine API" "Wine API" .SH NAME \fBSetWindowSubclass\fR (COMCTL32.410) .SH SYNOPSIS BOOL SetWindowSubclass ( HWND \fIhWnd\fR, SUBCLASSPROC \fIpfnSubclass\fR, UINT_PTR \fIuIDSubclass\fR, DWORD_PTR \fIdwRef\fR ) .SH DESCRIPTION .PP Starts a window subclass. .SH PARAMS \fIhWnd\fR \fB[In]\fR handle to window subclass. .PP \fIpfnSubclass\fR \fB[In]\fR Pointer to new window procedure. .PP \fIuIDSubclass\fR \fB[In]\fR Unique identifier of subclass together with \fIpfnSubclass\fR. .PP \fIdwRef\fR \fB[In]\fR Reference data to pass to window procedure. .PP .SH RETURNS .PP \fBSuccess:\fR non-zero .PP \fBFailure:\fR zero. .SH BUGS .PP 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. .SH IMPLEMENTATION .PP Declared in \fB"commctrl.h"\fR. .PP Implemented in \fB"dlls/comctl32/commctrl.c"\fR. .PP Debug channel \fB"commctrl"\fR.