Gdi32SelectObject(HandleRef, HandleRef) Method
Selects an object into a specified device context.
The new object replaces the previous object of the same type.
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", CharSet = CharSet.Auto)]
public static IntPtr SelectObject(
HandleRef hdc,
HandleRef hObject
)
<DllImportAttribute("GDI32.dll", CharSet := CharSet.Auto>]
Public Shared Function SelectObject (
hdc As HandleRef,
hObject As HandleRef
) As IntPtr
Dim hdc As HandleRef
Dim hObject As HandleRef
Dim returnValue As IntPtr
returnValue = Gdi32.SelectObject(hdc,
hObject)
public:
[DllImportAttribute(L"GDI32.dll", CharSet = CharSet::Auto)]
static IntPtr SelectObject(
HandleRef hdc,
HandleRef hObject
)
[<DllImportAttribute("GDI32.dll", CharSet = CharSet.Auto)>]
static member SelectObject :
hdc : HandleRef *
hObject : HandleRef -> IntPtr
No code example is currently available or this language may not be supported.
- hdc HandleRef
-
A handle to the Device Context (DC).
- hObject HandleRef
-
A handle to the object to be selected.
IntPtr
If the selected object is not a region and the function succeeds,
the return value is a handle to the object being replaced.
If the selected object is a region and the function succeeds,
the return value is one of the following values.