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

Function PyCStatusBarCtrl_set_simple

Pythonwin/win32control.cpp:2323–2349  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2321// @pymethod |PyCStatusBarCtrl|SetSimple|Specify whether a status bar control displays simple text or displays all control parts set by a previous call to SetParts.
2322
2323static PyObject *
2324PyCStatusBarCtrl_set_simple (PyObject *self, PyObject *args)
2325{
2326 int bSimple;
2327 CStatusBarCtrl *pSB = GetStatusBarCtrl(self);
2328
2329 if (!pSB)
2330 return NULL;
2331
2332 // @pyparm int|bSimple||If non-zero, displays simple text.
2333
2334 if (!PyArg_ParseTuple(args,
2335 "i:SetSimple",
2336 &bSimple))
2337 return NULL;
2338
2339 BOOL ok;
2340 GUI_BGN_SAVE;
2341 ok = pSB->SetSimple (bSimple);
2342 GUI_END_SAVE;
2343
2344 if (!ok) {
2345 RETURN_ERR ("CStatusBarCtrl::SetSimple");
2346 }
2347
2348 RETURN_NONE;
2349}
2350
2351// @pymethod |PyCStatusBarCtrl|SetText|Set the text in the given part of a status bar control.
2352

Callers

nothing calls this directly

Calls 1

GetStatusBarCtrlFunction · 0.85

Tested by

no test coverage detected