| 2141 | // @pymethod (left, top, right, bottom)|PyCStatusBarCtrl|GetRect|Retrieves the bounding rectangle of a part in a status bar control. |
| 2142 | |
| 2143 | static PyObject * |
| 2144 | PyCStatusBarCtrl_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 |
nothing calls this directly
no test coverage detected