Gdi32SelectObject(IntPtr, IntPtr) 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(
IntPtr hdc,
IntPtr hObject
)
<DllImportAttribute("GDI32.dll", CharSet := CharSet.Auto>]
Public Shared Function SelectObject (
hdc As IntPtr,
hObject As IntPtr
) As IntPtr
Dim hdc As IntPtr
Dim hObject As IntPtr
Dim returnValue As IntPtr
returnValue = Gdi32.SelectObject(hdc,
hObject)
public:
[DllImportAttribute(L"GDI32.dll", CharSet = CharSet::Auto)]
static IntPtr SelectObject(
IntPtr hdc,
IntPtr hObject
)
[<DllImportAttribute("GDI32.dll", CharSet = CharSet.Auto)>]
static member SelectObject :
hdc : IntPtr *
hObject : IntPtr -> IntPtr
No code example is currently available or this language may not be supported.
- hdc IntPtr
-
A handle to the Device Context (DC).
- hObject IntPtr
-
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.