共用方式為


IAgentCommandWindow::GetSize

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

HRESULT GetSize(
   long * plWidth,  // address of variable for Voice Commands Window width
   long * plHeight  // address of variable for Voice Commands Window height
);

擷取語音命令視窗目前的大小。

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

plWidth

相對於螢幕原點(左上方),以像素為單位接收語音命令視窗寬度的變數位址。

plHeight

相對於螢幕原點(左上方),以像素為單位接收語音命令視窗高度的變數位址。

另請參閱

IAgentCommandWindow::GetPosition