index101.htm
来自「介绍了L C ö O S 2Ê 在TM S320VC5402 」· HTM 代码 · 共 37 行
HTM
37 行
<html>
<style type="text/css"><!--
.p9 { font-family: "宋体"; font-size: 9pt}a {text-transform: none; text-decoration: none;}
a:hover {text-decoration: underline; color: #FF0000;}
--></style>
<body background="../di2001.jpg">
<h3 align="center"><font COLOR="#AOAO99"></font></h3>
<table width="100%" border="1" cellspacing="1">
<tr><td><p align="center"><font color="#FF0000">Tip of the day的bug</font></td></tr>
<tr><td><p>
</Br>
我创建了一个简单的mdi应用程序,使用.BSF(自定义的文档扩展名)作为它的文档我保存一个foo.bsf文档后,可以在资源管理器中双击该文件打开mdi应用程序同时打开foo.bsf文档.但当我给mdi应用程序加上a tip of the day组件之后,从资源管理器中双击foo.bsf后,就会给我一个警告:ASSERT(::IsWindow(m_hWnd)),然后mdi应用程序就死那了.<Br>
</Br>
当从dde启动应用程序(例如:双击相关文档)时,"Tip of the Day"是有bug的.你可以看看函数"ShowTipAtStartup",它在"InitInstance"中调用,可以看到tip of the day作为一个模式对话框显示,在处理其它消息时它一直进行消息循环你可心修改ShowTipAtStartup使其从dde启动时不出现tip of the day.<Br>
void CTipOfApp::ShowTipAtStartup(void)<Br>
{<Br>
// CG: This function added by 'Tip of the Day' component.<Br>
</Br>
CCommandLineInfo cmdInfo;<Br>
ParseCommandLine(cmdInfo);<Br>
</Br>
if (<Br>
cmdInfo.m_bShowSplash &&<Br>
cmdInfo.m_nShellCommand != CCommandLineInfo::FileDDE<Br>
)<Br>
{<Br>
CTipDlg dlg;<Br>
if (dlg.m_bStartup)<Br>
dlg.DoModal();<Br>
}<Br>
}<Br>
如果还有其它bug,你可以设定cmdInfo.m_nShellCommand的过滤.<Br>
</Br>
</p></td></tr>
</table>
</body></html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?