Platform | Win32, x64 |
Purpose |
To associate an accelerator key with a given window. |
Syntax |
SUBROUTINE ADD_ACCELERATOR@( HWND, KEY_NAME, F ) |
Description |
This associates the callback function F with the named key (see the definition of %ac in Accelerator key format for details of the names of keys). HWND is the handle of the window which you can obtain using %hw (Handle) when the window is created. If a previous accelerator definition for this key in this window exists then it is removed. |
Notes |
You could use this routine if you were writing a configurable editor and you wished to change the accelerator definitions of the surounding window dynamically. The call-back function cannot be a string representing a standard call-back. |
See also |