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

Method GetHandle

Pythonwin/win32menu.cpp:157–163  ·  view source on GitHub ↗

@pymethod int|PyCMenu|GetHandle|Returns the menu object's underlying hMenu.

Source from the content-addressed store, hash-verified

155}
156// @pymethod int|PyCMenu|GetHandle|Returns the menu object's underlying hMenu.
157PyObject *PyCMenu::GetHandle(PyObject *self, PyObject *args)
158{
159 HMENU hMenu = GetMenu(self);
160 if (!hMenu)
161 return NULL;
162 return Py_BuildValue("i",hMenu);
163}
164// @pymethod int|PyCMenu|GetMenuItemCount|Determines the number of items in a menu.
165PyObject *PyCMenu::GetMenuItemCount(PyObject *self, PyObject *args)
166{

Callers 5

CollectorThreadFunction · 0.80
SetToolsMenuFunction · 0.80
OnRClickMethod · 0.80
CheckIDLEMenusMethod · 0.80
_SetupMenuMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected