为何dll的对话框的tab不起作用?
如题! 问题点数:100、回复次数:5Top
1 楼yjgx007(还不结帖?!听妈妈的话! http://www.geekclaw.com)回复于 2006-12-02 23:07:02 得分 0
By default, MFC uses the resource handle of the main application to load the resource template. If you have an exported function in a DLL, such as one that launches a dialog box in the DLL, this template is actually stored in the DLL module. You need to switch the module state for the correct handle to be used. You can do this by adding the following code to the beginning of the function:
AFX_MANAGE_STATE(AfxGetStaticModuleState( ));
Top
2 楼answermyquestion(昨晚我做梦了)回复于 2006-12-03 19:10:03 得分 0
问题没型懂,倒底是在对话框中按tab键无法将焦点移到其它控件上还是怎么着,若是那样的话检查对话框控件的Tab order或者Tab stop属性,使用Ctrl+D应该可以看各控件顺序Top
3 楼LiChenYue(卐)(李忱悦)(怎堪蔑拒?鳄泪横流㊣暗恋未遂!独孤求偶)(卐)回复于 2007-01-26 20:21:33 得分 0
很久没蹭分了,蹭一下。Top
4 楼DentistryDoctor(不在无聊中无奈,就在沉默中变态)回复于 2007-01-26 21:11:14 得分 0
什么叫不起作用?Top
5 楼Juchiyufei(三更半夜我送你回家.总统也许我做不到.今生难得的遇见你,我们就应该在一起.....)回复于 2007-02-12 19:56:09 得分 0
你直接建MFC扩展DLL,再加进去就可以了.
什么叫不起作用?
Top




