Regular MFC DLL - Modaless Dialog

Discussion in 'MFC' started by rahulrastogi2, Sep 13, 2007.

  1. rahulrastogi2

    rahulrastogi2 New Member

    Joined:
    Sep 13, 2007
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Hi,

    I have created a Regular MFC DLL Statically linked.

    My application first loads a Non-MFC DLL that inturns loads the regular MFC DLL.

    In my regular MFC DLL - i have exported a function that creates a dialog and displays it.
    Now the problem is if i try to dispay the dialog as modal then dialog does get displayed but no click events on buttons etc are called to close the dialog. As the dialog is modal i cannot access my applciation backgroud window and i have to shut the application forcefully.
    If i try to display the dialog is modaless then the dialog is not displayed.

    Similary I have also tried to display the textbox on my application dialog through Regular MFC DLL by passing the appliaction dialog hwnd. The textbox does get displayed on my application dialog but I cannot edit the text. It seems no events are handled.

    I have also search on net and found somewhere written that i have to first call CWinApp::PreTranslateMessage() in case of modeless dialog because modeless dialog does not have its on message pump. I dont understand these things as i am new to MFC.

    I am looking for the exact solution.

    I am stuck at this point and cannot proceed with my application developement.

    I would really appreciate if someone can help me out.


    Regards,
    Rahul Rastogi
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice