Condividi tramite


IOleInPlaceSiteWindowless.GetDC(RECT[], UInt32, IntPtr) Method

Definition

Provides an object with a handle to a device context for a screen or compatible device from its container.

public:
 void GetDC(cli::array <Microsoft::VisualStudio::OLE::Interop::RECT> ^ pRect, System::UInt32 grfFlags, [Runtime::InteropServices::Out] IntPtr % phDC);
public void GetDC (Microsoft.VisualStudio.OLE.Interop.RECT[] pRect, uint grfFlags, out IntPtr phDC);
abstract member GetDC : Microsoft.VisualStudio.OLE.Interop.RECT[] * uint32 * nativeint -> unit
Public Sub GetDC (pRect As RECT(), grfFlags As UInteger, ByRef phDC As IntPtr)

Parameters

pRect
RECT[]

[in] Pointer to the rectangle that the object wants to redraw, in client coordinates of the containing window. If this parameter is NULL, the object's full extent is redrawn.

grfFlags
UInt32

[in] A combination of values from the OLEDCFLAGS enumeration.

phDC
IntPtr

nativeint

[out] Pointer to a returned device context.

Remarks

For information on the COM interface, see IOleInPlaceSiteWindowless::GetDC

Applies to