CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 1999
    Posts
    18

    Modeless Dialog in Multiple DLL'S



    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

  2. #2
    Guest

    Re: Modeless Dialog in Multiple DLL'S

    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.


  3. #3
    Join Date
    Aug 2001
    Location
    Portland, Or.
    Posts
    2

    Re: Modeless Dialog in Multiple DLL'S

    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


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured