在mfc添加光标,必须要用到ShowCaret() 函数么?我在视类的ondraw里没有用ShowCaret() 函数 ,为什么依然可以显示光标?代码如下~void CMfcView::OnDraw(CDC* pDC)
{
CMfcDoc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
this->CreateSolidCaret(3,20);
this->SetCaretPos(CPoint(300,300));
}