@pymethod |PyCFrameWnd|LoadAccelTable|Loads an accelerator table.
| 3479 | |
| 3480 | // @pymethod |PyCFrameWnd|LoadAccelTable|Loads an accelerator table. |
| 3481 | static PyObject * |
| 3482 | PyCFrameWnd_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 |
| 3504 | static PyObject * |
nothing calls this directly
no test coverage detected