共用方式為


IAgentEx::ShowDefaultCharacterProperties

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

HRESULT ShowDefaultCharacterProperties(
   short x,          // x-coordinate of window
   short y,          // y-coordinate of window
   long bUseDefault  // default position flag
);

顯示預設字元屬性視窗。

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

x

視窗的 X 座標,以像素為單位,相對於螢幕原點(左上方)。

y

視窗的 Y 座標,以像素為單位,相對於螢幕原點(左上方)。

bUseDefault

默認位置旗標。 如果此參數 True,Microsoft Agent 會顯示出現在最後一個位置之預設字元的屬性表視窗。

注意

針對 Windows 2000,可能需要呼叫新的 AllowSetForegroundWindow API,以確保此視窗成為前景視窗。 如需在 Windows 2000 下設定前景視窗的詳細資訊,請參閱平臺 SDK 檔。

 

另請參閱

IAgentNotifySinkEx::D efaultCharacterChange