windows_programming_notes.nbk: Home | Index | Next Page: Sending A Message | Previous Page: SCROLLINFO
The SelectObject function selects an object into the specified device context (DC). The new object replaces the previous object of the same type.
HGDIOBJ SelectObject( HDC hdc, // handle to DC HGDIOBJ hgdiobj // handle to object );
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.
If an error occurs and the selected object is not a region, the return value is NULL. Otherwise, it is HGDI_ERROR.
This function returns the previously selected object of the specified type. An application should always replace a new object with the original, default object after it has finished drawing with the new object.
An application cannot select a bitmap into more than one DC at a time.
ICM: If the object being selected is a brush or a pen, color management is performed.
windows_programming_notes.nbk: Home | Index | Next Page: Sending A Message | Previous Page: SCROLLINFO
Notebook exported on Monday, 7 July 2008, 18:56:50 PM Eastern Daylight Time