Windows CE provides a complete set of functions to format and draw text in an application client area and on a page of printer paper.
The default text color for a display device context is black; the default background color is white; and the default background mode is OPAQUE. Call the SetTextColor and GetTextColor functions to respectively set and retrieve the color of text drawn in the client area of a window or printed by a color printer. Call the SetBkColor and GetBkColor functions to respectively set or retrieve the background color. Call the SetBkMode and the GetBkMode functions to respectively set or retrieve the background mode. The background mode specifies the logical method for combining the selected background color with the current video display colors.
You can call the GetTextExtentPoint32 function to compute the advance width and height of a string of text. You can call the GetTextMetrics function to retrieve a font's logical dimensions. You can call the GetDeviceCaps function to determine the dimensions of an output device.