Graphic Modes

Windows CE initializes a device context with default graphic modes. You can get the current background mix mode with the GetBkMode function and set it with the SetBkMode function. In Windows CE, the background mix mode effects the apperence of text and dashed pens. You can set the foreground mix mode with the SetROP2 function. The foreground mix mode controls how the brush or pen colors and the image colors are combined. SetROP2 returns the mix mode for the last foreground mix mode.

You can change the viewport origin from its default starting point of the upper-left corner of the screen with the SetViewportOrgEx function.