积极答复者
MFC 编辑框的边框消失不见

问题
答案
-
问题解决了,原因在于使用StretchBlt后背景图覆盖了控件,解决方法是:在OnPaint()函数最后加上 this->invalide(FALSE)
CDiaDlgEx::OnPaint();
还是很谢谢您
- 已标记为答案 Anna CcModerator 2013年8月12日 3:22
全部回复
-
您好,
请您检查下添加的编辑框的边框属性是否为true,如果不是,改成true试一下。
您也可以尝试设置边框颜色。如果您要在白色背景图上保持编辑框的边框,可以参考下面链接的内容。
http://forums.codeguru.com/showthread.php?294500-changing-CEdit-border-color
如果您的问题还没解决,请及时通知我们。
Sunny Cao
MSDN Community Support | Feedback to us
Develop and promote your apps in Windows Store
Please remember to mark the replies as answers if they help and unmark them if they provide no help. -
问题解决了,原因在于使用StretchBlt后背景图覆盖了控件,解决方法是:在OnPaint()函数最后加上 this->invalide(FALSE)
CDiaDlgEx::OnPaint();
还是很谢谢您
- 已标记为答案 Anna CcModerator 2013年8月12日 3:22