Bagikan melalui


IVsWindowFrame.GetFramePos Method

Definition

Returns the position of the window.

public:
 int GetFramePos(cli::array <Microsoft::VisualStudio::Shell::Interop::VSSETFRAMEPOS> ^ pdwSFP, [Runtime::InteropServices::Out] Guid % pguidRelativeTo, [Runtime::InteropServices::Out] int % px, [Runtime::InteropServices::Out] int % py, [Runtime::InteropServices::Out] int % pcx, [Runtime::InteropServices::Out] int % pcy);
public int GetFramePos (Microsoft.VisualStudio.Shell.Interop.VSSETFRAMEPOS[] pdwSFP, out Guid pguidRelativeTo, out int px, out int py, out int pcx, out int pcy);
abstract member GetFramePos : Microsoft.VisualStudio.Shell.Interop.VSSETFRAMEPOS[] * Guid * int * int * int * int -> int
Public Function GetFramePos (pdwSFP As VSSETFRAMEPOS(), ByRef pguidRelativeTo As Guid, ByRef px As Integer, ByRef py As Integer, ByRef pcx As Integer, ByRef pcy As Integer) As Integer

Parameters

pdwSFP
VSSETFRAMEPOS[]

[out] Pointer to the frame position to set. Values are taken from the VSSETFRAMEPOS enumeration.

pguidRelativeTo
Guid

[out] Not used (set to null).

px
Int32

[out] Pointer to the absolute x ordinate.

py
Int32

[out] Pointer to the absolute y ordinate.

pcx
Int32

[out] Pointer to the x ordinate relative to px.

pcy
Int32

[out] Pointer to the y ordinate relative to py.

Returns

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

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsWindowFrame::GetFramePos(  
   [out] VSSETFRAMEPOS *pdwSFP,  
   [out] GUID *pguidRelativeTo,  
   [out] int *px,  
   [out] int *py,  
   [out] int *pcx,  
   [out] int *pcy  
);  

Applies to