CWindow.SetControlCallbackmethod
Optional address of a callback function that receives all WM_COMMAND and WM_NOTIFY messages for the control.
Syntax
FUNCTION SetControlCallback (BYVAL hCtl AS HWND, BYVAL pCallback AS ANY PTR) AS BOOLEAN
FUNCTION SetControlCallback (BYVAL cID AS LONG, BYVAL pCallback AS ANY PTR) AS BOOLEAN
Parameters
| Name | Description | |
|---|---|---|
hCtl | The handle of the control. | |
pCallback | A pointer to a window procedure. You can use PROCPTR to get the pointer, e.g. PROCPTR (MyCallbackProc). |
Return value
TRUE if the subclass callback was successfully installed; otherwise, FALSE.
Description
Optional address of a callback function that receives all WM_COMMAND and WM_NOTIFY messages for the control.
Reference
- Include file
CWindow.inc - Defined in AfxNova/CWindow.inc:2127
- Documented in Windows/Windows GUI/CWindow Class.md
- Topic: CWindow Class