Microsoft Windows CE 3.0  

Graphic Objects and Modes

Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

All new DCs have default graphic objects. Call the GetCurrentObjectand GetObjectfunctions to examine the attributes of a graphic object. GetCurrentObjectreturns a handle identifying the current attribute, and GetObjectinitializes a structure containing the attributes of that object.

Each of these functions returns a handle identifying the new graphic object. After you retrieve a handle, call the SelectObjectfunction to select the new object into the DC. Save the handle to the currently selected object. If SelectObjectsucceeds, it returns a handle to the object being replaced in the DC. When you are finished with the new object, use SelectObjectto restore the previously selected object and the DeleteObjectfunction to delete the new object. Be sure to delete all objects that are no longer in use.

GetDeviceCapsprovides information about the following rendering capabilities of a device: