Removes a subclass callback from a window.
BOOL RemoveWindowSubclass( HWND hWnd, SUBCLASSPROC pfnSubclass, UINT_PTR uIdSubclass );
The handle of the window being subclassed.
A pointer to a window procedure. This pointer and the subclass ID uniquely identify this subclass callback. For the callback function prototype, see SUBCLASSPROC.
The UINT_PTR subclass ID. This ID and the callback pointer uniquely identify this subclass callback. Note: On 64-bit versions of Windows this is a 64-bit value.
TRUE if the subclass callback was successfully removed; otherwise, FALSE.
Subclass callbacks are identified by their combination of the callback address and the subclass ID defined by the calling process.
The SUBCLASS module defines helper functions that are used to subclass windows. The code maintains a single property on the subclassed window and dispatches various subclass callbacks to its clients as required. The client is provided reference data and a default processing API.
No reference counting is performed for the callback; it may repeatedly call SetWindowSubclass to alter the value of its reference data element.
|Windows version||Windows XP [desktop apps only] Windows Server 2003 [desktop apps only]|
|DLL||Comctl32.dll (version 5.8 or later)|