共用方式為


IAgentPropertySheet::GetPosition

[Microsoft代理程式從 Windows 7 開始已被取代,而且可能無法在後續版本的 Windows 中使用。]

HRESULT GetPosition(
   long * plLeft,  // address of variable for left edge of property sheet
   long * plTop    // address of variable for top edge of property sheet
);

擷取Microsoft Agent 的屬性表視窗位置。

  • 傳回S_OK,表示作業成功。

plLeft

變數的位址,該變數會以像素為單位接收屬性表左邊緣的螢幕座標,相對於螢幕原點(左上方)。

plTop

變數的位址,該變數會以像素為單位接收屬性表上邊緣的螢幕座標,相對於螢幕原點(左上方)。

另請參閱

IAgentPropertySheet::GetSize