问题不死,提问不休! 关于DLL中的非模态对话框
问题:
http://expert.csdn.net/Expert/topic/2401/2401596.xml?temp=.9291956
Dll中的非模态对话框的问题:
不光是ToolTip显示不出来,PretranslateMessage也没执行。Tab键也没反映。
MSDN上一个MVP给的方法
Scenario described by you is precisely where the issue is. You will notice that in your
dialog, tab keys would not work either. The root cause of the problem is that your
dialog's PreTranslateMessage is not getting called. You should be able to fix the Tooltip
problem by using the TTF_SUBCLASS flag which will subclass as needed.
If you want PreTranslateMessage/Idling in your DLL, take a look at example DLLHUSK(??) in
MSDN. There are couple of related samples which show how to pump idling and
pretranslatemessage to a MFC regular DLL.
可是我用TTF_SUBCLASS就是行不通