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

Function PyCFrameWnd_LoadAccelTable

Pythonwin/win32win.cpp:3481–3501  ·  view source on GitHub ↗

@pymethod |PyCFrameWnd|LoadAccelTable|Loads an accelerator table.

Source from the content-addressed store, hash-verified

3479
3480// @pymethod |PyCFrameWnd|LoadAccelTable|Loads an accelerator table.
3481static PyObject *
3482PyCFrameWnd_LoadAccelTable(PyObject *self, PyObject *args)
3483{
3484 CFrameWnd *pFrame = GetFramePtr(self);
3485 if (!pFrame)
3486 return NULL;
3487 PyObject *obID;
3488 if (!PyArg_ParseTuple(args, "O", &obID))
3489 return NULL;
3490 // @pyparm <o PyResourceId>|id||Name or id of the resource that contains the table
3491 TCHAR *res;
3492 if (!PyWinObject_AsResourceId(obID, &res, FALSE))
3493 return NULL;
3494 GUI_BGN_SAVE;
3495 BOOL ok = pFrame->LoadAccelTable(res);
3496 GUI_END_SAVE;
3497 PyWinObject_FreeResourceId(res);
3498 if (!ok)
3499 RETURN_ERR("LoadAccelTable failed");
3500 RETURN_NONE;
3501}
3502
3503// @pymethod |PyCFrameWnd|LoadFrame|Loads a Windows frame window and associated resources
3504static PyObject *

Callers

nothing calls this directly

Calls 2

GetFramePtrFunction · 0.85

Tested by

no test coverage detected