I have developed an application using single document interface with
several modal dialog box , which pop up on selecting menus. I also have a
modeless dialog box with a progress bar to display some background
processing.It takes some time to show up(due to some internal processing to
be done before it is shown) .
Now, the problem is if i open any modal dialog box ,before the modeless
dialog shows up the application crashes at PreTranslateMessage() funtion.
Though i know that modal dialog box prevents calls to
PreTranslateMessage(),i cannot figure out how to solve this problem.