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