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:
Supply GetDeviceCapswith a handle to a device context and an index specifying the type of data to be retrieved.
Windows CE initializes a DC with default graphic modes. Use the GetBkModefunction to get the current background mix mode and the SetBkModefunction to set it.
Related Topics
Working with DirectDraw Surfaces
Last updated on Tuesday, May 18, 2004