CompuServe Thread

#Modal/modeless dialogs

2 messages in this thread
#30256From: Bart van OoijenJul 8, 1994 7:27 AM
Dear Ed, I am trying to find a solution for the following problem. I want to create a modal dialog whose parent is formview. However, I do not want the dialog to be modal for the complete application, but only modal for the parent formview. I want to be able to work on any other views in my application. As I read you have been working on modal form views, I was hoping you might know the answer. Thanks Bart
#30316From: Chris BoaroJul 8, 1994 3:47 PM
Bart, it seems to me, and I could be wrong, that what you're saying is that you don't want the formview to get the focus while you have a dialog on top of it. One solution may to be simply intercept the WM_SETFOCUS messages of the formview and call SetFocus() to give the focus to the dialog, if it exists. This will essentially prevent the form from getting focus while the dialog is on top of it. Chris