Graphics.FromHwndInternal(IntPtr) 方法

定义

创建指定 Windows 句柄的新 GraphicsCreates a new Graphics for the specified windows handle.

public:
 static System::Drawing::Graphics ^ FromHwndInternal(IntPtr hwnd);
public static System.Drawing.Graphics FromHwndInternal (IntPtr hwnd);
static member FromHwndInternal : nativeint -> System.Drawing.Graphics
Public Shared Function FromHwndInternal (hwnd As IntPtr) As Graphics

参数

hwnd
IntPtr

窗口的句柄。Handle to a window.

返回

Graphics

指定窗口句柄的 GraphicsA Graphics for the specified window handle.

注解

不应使用此方法。This method should not be used.

适用于