MCPcopy Create free account
hub / github.com/mhammond/pywin32 / PyCCmdTarget_hook_command_update

Function PyCCmdTarget_hook_command_update

Pythonwin/win32cmd.cpp:102–116  ·  view source on GitHub ↗

@pymethod object|PyCCmdTarget|HookCommandUpdate|Hook a windows command update handler.

Source from the content-addressed store, hash-verified

100}
101// @pymethod object|PyCCmdTarget|HookCommandUpdate|Hook a windows command update handler.
102static PyObject *
103PyCCmdTarget_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.

Callers

nothing calls this directly

Calls 1

add_hook_listFunction · 0.85

Tested by

no test coverage detected