@pymethod object|PyCCmdTarget|HookCommandUpdate|Hook a windows command update handler.
| 100 | } |
| 101 | // @pymethod object|PyCCmdTarget|HookCommandUpdate|Hook a windows command update handler. |
| 102 | static PyObject * |
| 103 | PyCCmdTarget_hook_command_update(PyObject *self, PyObject *args) |
| 104 | { |
| 105 | // @comm The handler object passed will be called as |
| 106 | // the application updates user interface elements |
| 107 | // with the specified ID. |
| 108 | // See <om PyCCmdTarget.HookCommand> for a description |
| 109 | // of the rules used to determine command routing and updating. |
| 110 | |
| 111 | // @pyparm object|obHandler||The handler for the command message. This must be a callable object. |
| 112 | // @pyparm int|id||The ID of the command to be handled. |
| 113 | PyCCmdTarget *s = (PyCCmdTarget *)self; |
| 114 | // @rdesc The return value is the previous handler, or None. |
| 115 | return add_hook_list(s, args,&s->pCommandUpdateHookList); |
| 116 | } |
| 117 | |
| 118 | |
| 119 | // @pymethod object|PyCCmdTarget|HookNotify|Hook a windows command handler. |
nothing calls this directly
no test coverage detected