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();
}
void CMyDlg::OnChangeCaret()
{
CBitmap* pBitmap = new CBitmap;
pBitmap->LoadBitmap(IDB_HAPPY_BITMAP);
m_editCtrl.CreateCaret(pBitmap);
m_editCtrl.ShowCaret();
}
Labels: MFC
0 Comments:
Post a Comment
<< Home