1.CreateSolidCaret
2.ShowCaret()
3.TEXTMETRIC
4. dc.GetTextMetrics(&tm);
5.LoadBitmap
6.ondraw函数始终处理WM_PAINT消息,在窗口重绘时就会调用
7.
CSize sz=pDC->GetTextExtent(str);
pDC->BeginPath();
pDC->Rectangle(50,50,50+sz.cx,50+sz.cy);
pDC->EndPath();
8. CFont font;
font.CreatePointFont(300,"楷体",NULL);
dc.SelectObject(font);