Reference

WINPROC_SetProc(3w)

WINPROC_SetProc

NAME

WINPROC_SetProc - WINPROC_SetProc

SYNOPSIS

BOOL32 WINPROC_SetProc
(

HWINDOWPROC *pFirst,

WNDPROC16 func,

WINDOWPROCTYPE type,

WINDOWPROCUSER user
);

DESCRIPTION

Set the window procedure for a window or class. There are three tree classes of winproc callbacks:

1) Class -> wp - not subclassed class -> wp -> wp -> wp -> wp - SetClassLong() / /
2) Window -' / - not subclassed window -> wp -> wp ' - SetWindowLong()

3) Timer -> wp - SetTimer()

Initially, winproc of the window points to the current winproc thunk of its class. Subclassing prepends a new thunk to the window winproc chain at the head of the list. Thus, window thunk list includes class thunks and the latter are preserved when the window is destroyed.

SEE ALSO

WINPROC_Init(3w), WINPROC_GetProc(3w), WINPROC_FreeProc(3w), WINPROC_GetProcType(3w), WINPROC_MapMsg32ATo32W(3w), WINPROC_UnmapMsg32ATo32W(3w), WINPROC_MapMsg32WTo32A(3w), WINPROC_UnmapMsg32WTo32A(3w), WINPROC_MapMsg16To32A(3w), WINPROC_UnmapMsg16To32A(3w), WINPROC_MapMsg16To32W(3w), WINPROC_UnmapMsg16To32W(3w), WINPROC_MapMsg32ATo16(3w), WINPROC_UnmapMsg32ATo16(3w), WINPROC_MapMsg32WTo16(3w), WINPROC_UnmapMsg32WTo16(3w), WINPROC_CallProc16To32A(3w), WINPROC_CallProc16To32W(3w), CallWindowProc16(3w), CallWindowProc32A(3w), CallWindowProc32W(3w)