Click to See Complete Forum and Search --> : Modeless Dialog in Multiple DLL'S


jeremy
March 28th, 1999, 08:30 PM
Hi All,


I know how to solve the messaging problem for a single DLL with a modeless dialog. But what about when you have multiple dll's, how do you know which FilterDllMsg() function to call??


I have tried to find the HINSTANCE of the DLL by:


1) getting the previous AFX_MODULE_STATE struct in the stack

(I cant seem to get to it)

2) using FromHandlePermanent and then (attempting) to access the

m_pModuleState member function which I found to be protected!


Someone must have come across this problem. How did you work out which DLL

the MSG is intended for??


regards,

Jeremy

Jeremy-Deleted
March 28th, 1999, 08:30 PM
Hi All,


I know how to solve the messaging problem for a single DLL with a modeless dialog. But what about when you have multiple dll's, how do you know which FilterDllMsg() function to call??


I have tried to find the HINSTANCE of the DLL by:


1) getting the previous AFX_MODULE_STATE struct in the stack

(I cant seem to get to it)

2) using FromHandlePermanent and then (attempting) to access the

m_pModuleState member function which I found to be protected!


Someone must have come across this problem. How did you work out which DLL

the MSG is intended for??


regards,

Jeremy

May 26th, 1999, 05:07 AM
I have the problem with a MFC dll (static): tab are not supported (message handling not "pumped": pretranslatemessage semms never executed...)
How do u solve this problem?
Thx a lot.

thomp
October 1st, 2001, 02:13 AM
I've got the same problem. I've written a Visual Studio Add-in that uses a modless dialog. Niether Tabbing between controls or tooltips work. The problem seems to be related to the message pump, but I don't know the solution. What's the deal?

Thom