IVsWindowFrame::GetFramePos Method (array<VSSETFRAMEPOS>^, Guid, Int32, Int32, Int32, Int32)
Visual Studio 2015
Returns the position of the window.
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
int GetFramePos( array<VSSETFRAMEPOS>^ pdwSFP, [OutAttribute] Guid% pguidRelativeTo, [OutAttribute] int% px, [OutAttribute] int% py, [OutAttribute] int% pcx, [OutAttribute] int% pcy )
Parameters
- pdwSFP
-
Type:
array<Microsoft.VisualStudio.Shell.Interop::VSSETFRAMEPOS>^
[out] Pointer to the frame position to set. Values are taken from the VSSETFRAMEPOS enumeration.
- pguidRelativeTo
-
Type:
System::Guid
[out] Not used (set to null).
- px
-
Type:
System::Int32
[out] Pointer to the absolute x ordinate.
- py
-
Type:
System::Int32
[out] Pointer to the absolute y ordinate.
- pcx
-
Type:
System::Int32
[out] Pointer to the x ordinate relative to px.
- pcy
-
Type:
System::Int32
[out] Pointer to the y ordinate relative to py.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From vsshell.idl:
HRESULT IVsWindowFrame::GetFramePos( [out] VSSETFRAMEPOS *pdwSFP, [out] GUID *pguidRelativeTo, [out] int *px, [out] int *py, [out] int *pcx, [out] int *pcy );
Show: