IAgentCommandWindow::GetSize

[从 Windows 7 开始,Microsoft代理已弃用,在后续版本的 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