Visual C++ and MFC Fundamentals Chapter 8 GDI Orientation and Transformations
ETO_OPAQUE: in this case the color set by SetBkColor() would be used to fill the
rectangle
ETO_CLIPPED: the color previously specified by SetBkColor() will only highlight the
text
The lpRect is a RECT or CRect rectangle that will be drawn behind the text.
The lpszString value is the text to be drawn.
The nCount is the number of characters of lpszString.
The lpDxWidths argument is an array of integers that specifies the amount of empty
spaces that will be used between each combination of two characters. Unless you know
what you are doing, set this argument as 0, in which case the regular space used to
separate characters would be used.
Here is an example:
void CExoView::OnDraw(CDC* pDC)
{
CExoDoc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
pDC->SetTextColor(RGB(25, 55, 200));
pDC->SetBkColor(RGB(128, 255, 255));
pDC->ExtTextOut(50, 42, ETO_OPAQUE, CRect(20, 28, 188, 128), "Johnny Carson",
13, NULL);
}
7.3 Bitmaps...........................................................................................................
7.3.1 Introduction...........................................................................................
A bitmap is a series of points (bits) arranged like a map so that, when put together, they
produce a picture that can be written to, copied from, re-arranged, changed, manipulated,
or stored as a a computer file. Bitmaps are used to display pictures on graphical
applications, word processors, database files, or audience presentations. To display its
product on a device such as a monitor or a printer, a bitmap holds some properties and
follows a set of rules.