点击edit空间弹出字定义的键盘对话框,如何实现鼠标焦点不在该对话框时,销毁该对话框
解决方案 »
- 8583报文是用什么数据类型发的?
- 关于2003server下用WindowsAPI来打印不成功的问题。
- 用户界面线程!
- UpdateData时能否指定某一个控件不更新?
- 人才需求
- 郁闷!学校计算机系的全用VB,就一个用Delphi。我学自动化的,真是井地之娃!!
- 请问谁有combox里包含tree树的控件
- clear case 只读属性的文件写入
- 如何在TreeCtrl和ListCtrl实现Item的右键弹出pop menu 内容不同。
- 请问哪位大虾知道怎样控制系统中音量的大小?
- cannot access protected member declared in class 'CAutoToolbar'
- MFC对话框居中问题
Return Values
The handle to the window with the keyboard focus indicates success. NULL indicates that the calling thread’s message queue does not have an associated window with the keyboard focus. 看返回的句柄是不是对话框的
加载以下函数:
在CWnd::OnActivate消息中处理:
if(nState == WA_INACTIVE)
{
PostNcDestory() //失去焦点了,摧毁对话框
}
这样当窗口不是当前窗口时,关闭该窗口。