[Microsoft代理程式從 Windows 7 開始已被取代,而且可能無法在後續版本的 Windows 中使用。]
HRESULT GetMoveCause(
long * pdwCause // address of variable for cause of character move
);
擷取字元上次移動的原因。
- 傳回S_OK,表示作業成功。
-
pdwCause
-
接收字元最後一次移動原因的變數位址,且會是下列其中一項:
值 Description const unsigned shortNeverMoved = 0; 尚未移動字元。 const unsigned shortUserMoved = 1; 用戶拖曳字元。 const unsigned shortProgramMoved = 2; 您的應用程式已移動字元。 const unsigned shortOtherProgramMoved = 3; 另一個應用程式移動字元。 const unsigned shortSystemMoved = 4 伺服器移動字元以在螢幕解析度變更后將其保留在螢幕上。