@pymethod |PyCFrameWnd|FloatControlBar|Floats a control bar.
| 3621 | |
| 3622 | // @pymethod |PyCFrameWnd|FloatControlBar|Floats a control bar. |
| 3623 | static PyObject * |
| 3624 | PyCFrameWnd_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. |
| 3646 | static PyObject * |
| 3647 | PyCFrameWnd_ShowControlBar(PyObject *self, PyObject *args) |
nothing calls this directly
no test coverage detected