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

Function PyCStatusBarCtrl_get_rect

Pythonwin/win32control.cpp:2143–2168  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2141// @pymethod (left, top, right, bottom)|PyCStatusBarCtrl|GetRect|Retrieves the bounding rectangle of a part in a status bar control.
2142
2143static PyObject *
2144PyCStatusBarCtrl_get_rect(PyObject *self, PyObject *args)
2145{
2146 int nPane;
2147 RECT rect;
2148
2149 CStatusBarCtrl *pSB = GetStatusBarCtrl(self);
2150
2151 if (!pSB)
2152 return NULL;
2153
2154 if (!PyArg_ParseTuple(args,
2155 "i:GetRect", // @pyparm int|nPane||Zero-based index of the part whose bounding rectangle is to be retrieved.
2156 &nPane))
2157 return NULL;
2158
2159 BOOL ok;
2160 GUI_BGN_SAVE;
2161 ok = pSB->GetRect (nPane, &rect);
2162 GUI_END_SAVE;
2163
2164 if (!ok)
2165 RETURN_ERR ("CStatusBarCtrl::GetRect");
2166
2167 return Py_BuildValue ("(iiii)", rect.left, rect.top, rect.right, rect.bottom);
2168}
2169
2170// @pymethod text|PyCStatusBarCtrl|GetText|Retrieve the text from the given part of a status bar control.
2171

Callers

nothing calls this directly

Calls 1

GetStatusBarCtrlFunction · 0.85

Tested by

no test coverage detected