I created a simple MDI application that uses .BSF (Custom Document Extension) as its document I save a foo.bsf document, you can double-click the file in the Explorer to open the MDI application at the same time. Foo .BSF document. But after I add a TIP of the day component to the MDI application, I will give me a warning from the resource manager: assert (:: iswindow (m_hwnd)), then The MDI app is dead.
When the application is started from the DDE (for example, Double-click the related document), "Tip of the day" is bug. You can look at the function "showtipatstartup," in "InitInstance", you can see Tip of the day As a mode dialog box, it has been messaging when processing other messages You can modify the showtiPatStartUp to make TIP of the day when starting from DDE.
Void Ctipofapp :: ShowTIPATSTARTUP (VOID)
{
// cg: this function add by 'Tip of the day' component.
CCommandLineInfo cmdinfo;
Parsecommandline (CMDInfo);
IF
CMDINFO.M_BSHOWSPLASH &&
CMDINFO.M_NSHELLCOMMAND! = ccommandlineinfo :: Filedde
)
{
CTIPDLG DLG;
IF (DLG.M_BSTARTUP)
Dlg.domodal ();
}
}
If there is other bug, you can set the filtering of cmdinfo.m_nshellcommand.