共用方式為


COleControlSite::SetWindowPos

將控制項站台的大小、位置和疊置順序。

virtual BOOL SetWindowPos( 
   const CWnd* pWndInsertAfter, 
   int x, 
   int y, 
   int cx, 
   int cy, 
   UINT nFlags  
);

參數

  • pWndInsertAfter
    指標至視窗。

  • x
    視窗左邊的新位置。

  • y
    視窗上邊緣的新位置。

  • cx
    視窗的新寬度。

  • cy
    視窗的新高度。

  • nFlags
    指定視窗大小和位置旗標。 如需可能的值,在 Windows SDK的 SetWindowPos 請參閱<備註>一節。

傳回值

不是零,如果成功,則為零。

需求

Header: afxocc.h

請參閱

參考

COleControlSite 類別

階層架構圖表