Modeless dialog RRS feed

  • Question

  • Hi,

    In our application there is a legacy code that does following:
    - Creates a modeless dialog using create dialog.
    - There is a count displayed on this dialog.
    - The count acts like a progress indicator to the user.
    - After the dialog is created the code piece below the createdialog statement executes.
    - This code piece updates the count on the dialog.

    All the above is done in the same thread. Is this correct architecture? 

    The issue I see is that while the count is being updated if I click on the parent window of the modeless dialog then both the main parent window and the modeless dialog seems to hang.

    I tried doing ShowWindow(parent_handle,SW_SHOW) but this does not work in all cases.

    Please help.

    Best Regards,

    Best Regards,
    Saturday, August 15, 2009 12:25 AM

All replies

  • are  u working with VC++ 6.0. 

    the difference between Modal and Modeless Dialog?

    Modal dialog box captures the message loop. where as model 
    less does not.

    Model dialog does not allow its parent window unless it is 
    colosed. where as modelless it allows.
    Saturday, August 15, 2009 2:23 PM