Unicode Controls & Classes for VB6 - Version 4

clsGpGraphics.CreateFromHwnd Function

Creates a Graphics object that is associated with a specified window.

Syntax
Public Function CreateFromHwnd (ByVal hWnd As Long, _
Optional ByVal u As GpUnit = UnitPixel, _
Optional ByVal o As GpPixelOffsetMode = PixelOffsetModeDefault, _
Optional ByVal s As GpSmoothingMode = SmoothingModeDefault) As GpStatus
Parameters
Parameter Description
ByVal hWnd As Long The window handle
Optional ByVal u As GpUnit = UnitPixel The desired Unit
Optional ByVal o As GpPixelOffsetMode = PixelOffsetModeDefault The desired Offset Mode
Optional ByVal s As GpSmoothingMode = SmoothingModeDefault The desired Smoothing Mode
Remarks