Gdi32GetStockObject Method
Retrieves a handle to one of the stock pens, brushes, fonts, or palettes.
Namespace: DevCase.Win32.NativeMethodsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("GDI32.dll", SetLastError = true)]
public static IntPtr GetStockObject(
StockObjects stockObject
)
<DllImportAttribute("GDI32.dll", SetLastError := true>]
Public Shared Function GetStockObject (
stockObject As StockObjects
) As IntPtr
Dim stockObject As StockObjects
Dim returnValue As IntPtr
returnValue = Gdi32.GetStockObject(stockObject)
public:
[DllImportAttribute(L"GDI32.dll", SetLastError = true)]
static IntPtr GetStockObject(
StockObjects stockObject
)
[<DllImportAttribute("GDI32.dll", SetLastError = true)>]
static member GetStockObject :
stockObject : StockObjects -> IntPtr
No code example is currently available or this language may not be supported.
- stockObject StockObjects
-
The type of stock object.
IntPtr
If the function succeeds, the return value is a handle to the requested logical object.
If the function fails, the return value is
Zero.