Compartilhar via


IVsIME.SetDefCurPos(IntPtr, VSIME_ERR[]) Method

Definition

Moves the editor window to the default position. The method provides a wrapper to ImmSetCompositionWindow.

public:
 int SetDefCurPos(IntPtr hwnd, cli::array <Microsoft::VisualStudio::Shell::Interop::VSIME_ERR> ^ perr);
public int SetDefCurPos (IntPtr hwnd, Microsoft.VisualStudio.Shell.Interop.VSIME_ERR[] perr);
abstract member SetDefCurPos : nativeint * Microsoft.VisualStudio.Shell.Interop.VSIME_ERR[] -> int
Public Function SetDefCurPos (hwnd As IntPtr, perr As VSIME_ERR()) As Integer

Parameters

hwnd
IntPtr

nativeint

[in] Handle of the editor window.

perr
VSIME_ERR[]

[out] Set to zero when there is an error. Nonzero otherwise.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsIME::SetDefCurPos(  
   [in] HWND hwnd,   
   [out] VSIME_ERR * perr  
);  

Applies to