Why is the window always topmost?
-
I have a modeless dialog that is created and popped by an SDI application. The problem is that the dialog is always topmost. I would like the SDI app to be topmost when I click in its window, placing the popup behind it. Should a modeless dialog behave like this? Cheers,
/FredrikSonork ID: 100.11430:PhatBoy
-
I have a modeless dialog that is created and popped by an SDI application. The problem is that the dialog is always topmost. I would like the SDI app to be topmost when I click in its window, placing the popup behind it. Should a modeless dialog behave like this? Cheers,
/FredrikSonork ID: 100.11430:PhatBoy
Try setting
CWnd::GetDesktopWindow()
as the parent of your modeless dialog, instead of your main window. Joaquín M López Muñoz Telefónica, Investigación y Desarrollo -
I have a modeless dialog that is created and popped by an SDI application. The problem is that the dialog is always topmost. I would like the SDI app to be topmost when I click in its window, placing the popup behind it. Should a modeless dialog behave like this? Cheers,
/FredrikSonork ID: 100.11430:PhatBoy
What do you want? That the mainframe will be topmost, or the dialog? Best Regards... There is an old saying that if a million monkeys typed on a million keyboards for a million years, eventually all the works of Shakespeare would be produced. Now, thanks to Usenet, we know this is not true. Carlos Antollini. Sonork ID 100.10529 cantollini
-
What do you want? That the mainframe will be topmost, or the dialog? Best Regards... There is an old saying that if a million monkeys typed on a million keyboards for a million years, eventually all the works of Shakespeare would be produced. Now, thanks to Usenet, we know this is not true. Carlos Antollini. Sonork ID 100.10529 cantollini
I want the window I click in to be topmost. Using CWnd::GetDesktopWindow(), as Joaquín wrote in his post, works fine. Passing the this pointer to CDialog::Create() makes the dialog be always topmost. Cheers,
/FredrikSonork ID: 100.11430:PhatBoy