共用方式為


CBasePane::MoveWindow

Moves the pane.

virtual HDWP MoveWindow(
   CRect& rect,
   BOOL bRepaint = TRUE,
   HDWP hdwp = NULL
);

Parameters

  • [in] rect
    A rectangle specifying the new location and size of the pane.

  • [in] bRepaint
    If TRUE, the pane is repainted. If FALSE, the pane is not repainted.

  • [in] hdwp
    Handle to a deferred window position structure.

Return Value

A handle to a deferred window position structure, or NULL.

Remarks

If you pass NULL as the hdwp parameter, this method moves the window normally. If you pass a handle, this method performs a deferred window move. You can obtain a handle by calling BeginDeferWindowPos or by storing the return value of a previous call to this method.

Requirements

Header: afxbasepane.h

See Also

Reference

CBasePane Class

Hierarchy Chart