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

Function PyCButton_get_bitmap

Pythonwin/win32control.cpp:236–247  ·  view source on GitHub ↗

@pymethod int|PyCButton|GetBitmap|Get the button's bitmap

Source from the content-addressed store, hash-verified

234}
235// @pymethod int|PyCButton|GetBitmap|Get the button's bitmap
236static PyObject *
237PyCButton_get_bitmap(PyObject *self, PyObject *args)
238{
239 CHECK_NO_ARGS(args);
240 CButton *pBut = GetButton(self);
241 if (!pBut)
242 return NULL;
243 GUI_BGN_SAVE;
244 HBITMAP rc = pBut->GetBitmap();
245 GUI_END_SAVE;
246 return PyWinLong_FromHANDLE(rc);
247}
248
249
250// @object PyCButton|A windows button. Encapsulates an MFC <c CButton> class. Derived from <o PyCControl>.

Callers

nothing calls this directly

Calls 3

GetButtonFunction · 0.85
PyWinLong_FromHANDLEFunction · 0.85
GetBitmapMethod · 0.80

Tested by

no test coverage detected