Wednesday, March 07, 2007

How to change the Edit control Caret as Ur desired bitmap

// Changes the caret of the edit control in this dialog box
void CMyDlg::OnChangeCaret()
{
CBitmap* pBitmap = new CBitmap;
pBitmap->LoadBitmap(IDB_HAPPY_BITMAP);
m_editCtrl.CreateCaret(pBitmap);
m_editCtrl.ShowCaret();
}

No comments: