What's this?
-
I've created an application with runs as a plugin for Microstation. My application is a DLL whose functions are called by Microstation in a specific lanaguage. if my function launch a dialog box like this definition: extern "C" __declspec(dllexport) BOOL fooSystem_showAboutBox(); implementation: BOOL fooSystem_showAboutBox() { AFX_MANAGE_STATE(AfxGetStaticModuleState()); try { theApp.showAboutBox(); } catch(...) { return FALSE; } return TRUE; } //in foo.cpp void CFooApp::showAboutBox() { CAboutDialog dlgAbout; dlgAbout.DoModal(); } then, the "about" dialog is not able to intercept any messages like WM_TIMER, and the function PreTranslateMessage is never reached. This problem is also valid for theApp. There isn't any other classes which may intercept messages before my function (maybe except one from MFC hierarchy) or implementing the virtual function PreTranslateMessage. I really don't understand this. Have you any idea about this issue ? Thanks. Firejano -- modified at 11:42 Thursday 27th October, 2005