首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > VC/MFC >

?打开一个对话框以后,插入符不能显示啦解决方法

2012-06-03 
?打开一个对话框以后,插入符不能显示啦比如:void CTxtttView::OnLButtonUp(UINT nFlags, CPoint point){//

?打开一个对话框以后,插入符不能显示啦
比如:void CTxtttView::OnLButtonUp(UINT nFlags, CPoint point) 
{
// TODO: Add your message handler code here and/or call default
SetCaretPos(point);
MessageBox("nima");
CView::OnLButtonUp(nFlags, point);
}

int CTxtttView::OnCreate(LPCREATESTRUCT lpCreateStruct) 
{
if (CView::OnCreate(lpCreateStruct) == -1)
return -1;

// TODO: Add your specialized creation code here
//CBitmap bitmap;
bitmap.LoadBitmap(IDB_BITMAP1);
CreateCaret(&bitmap);
ShowCaret();
return 0;
}
我建立的是默认生产的单文档,就加了上面的,我点了"文件/打开“以后,插入符就不能显示啦
本人菜鸟,希望知道的人不吝指教


[解决办法]
如果你自己创建插入符,还得处理WM_KILLFOCUS WM_SETFOCUS消息

热点排行