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

Function PyCFrameWnd_FloatControlBar

Pythonwin/win32win.cpp:3623–3644  ·  view source on GitHub ↗

@pymethod |PyCFrameWnd|FloatControlBar|Floats a control bar.

Source from the content-addressed store, hash-verified

3621
3622// @pymethod |PyCFrameWnd|FloatControlBar|Floats a control bar.
3623static PyObject *
3624PyCFrameWnd_FloatControlBar(PyObject *self, PyObject *args)
3625{
3626 CFrameWnd *pFrame = GetFramePtr(self);
3627 if (!pFrame)
3628 return NULL;
3629 PyObject *ob;
3630 int style = CBRS_ALIGN_TOP;
3631 CPoint pt;
3632 if (!PyArg_ParseTuple(args,"O(ii)|i:FloatControlBar",
3633 &ob, // @pyparm <o PyCControlBar>|controlBar||The control bar to dock.
3634 &pt.x, &pt.y, // @pyparm x,y|int, int||The location, in screen coordinates, where the top left corner of the control bar will be placed.
3635 &style)) // @pyparm int|style|CBRS_ALIGN_TOP|Determines which sides of the frame window to consider for docking.
3636 return NULL;
3637 CControlBar *pControlBar = PyCControlBar::GetControlBar(ob);
3638 if (pControlBar==NULL)
3639 return NULL;
3640 GUI_BGN_SAVE;
3641 pFrame->FloatControlBar(pControlBar, pt, style); // @pyseemfc CFrameWnd|FloatControlBar
3642 GUI_END_SAVE;
3643 RETURN_NONE;
3644}
3645// @pymethod |PyCFrameWnd|ShowControlBar|Shows a control bar.
3646static PyObject *
3647PyCFrameWnd_ShowControlBar(PyObject *self, PyObject *args)

Callers

nothing calls this directly

Calls 1

GetFramePtrFunction · 0.85

Tested by

no test coverage detected