Function:
SelectObject(hdc, hObject)

 

Description:
Selects a given object for use on a device. Possible objects to use with this function include bitmaps, brushes, fonts, pens, and regions. Once selected, this object will be used by the device whenever necessary. You should re-select the old object when finished using it in order to preserve the default objects.

 

Parameters:
hdc: A device context to the device to select an object for.
hObject: A handle to the bitmap, brush, font, pen, or region to select for the device.

 

Returns:
A handle to the object previously selected by the device to do that task (e.g., the old brush).

 

Example:
Click on the calc icon to view a sample of the SelectObject function.