Dialogs always on top
-
I am using several modeless dialog boxes which exist for the life of the (SDI) application, These dialogs need to be visible in front of the application window while still allowing interaction with the application. I have used the system model attribute on the dialogs, however this means that the dialogs obscure any other dialogs such as the file dialog. I need to keep the dialogs on top of the main application without obscuring any other windows... Can anyne help.. Thanks in advance.. :) Steve
-
I am using several modeless dialog boxes which exist for the life of the (SDI) application, These dialogs need to be visible in front of the application window while still allowing interaction with the application. I have used the system model attribute on the dialogs, however this means that the dialogs obscure any other dialogs such as the file dialog. I need to keep the dialogs on top of the main application without obscuring any other windows... Can anyne help.. Thanks in advance.. :) Steve
Use the SetWindowPos using the topMost value in the pWndInsertAfte parameter... Cheers!!! Carlos Antollini.
-
I am using several modeless dialog boxes which exist for the life of the (SDI) application, These dialogs need to be visible in front of the application window while still allowing interaction with the application. I have used the system model attribute on the dialogs, however this means that the dialogs obscure any other dialogs such as the file dialog. I need to keep the dialogs on top of the main application without obscuring any other windows... Can anyne help.. Thanks in advance.. :) Steve
Use the SetWindowPos using the topMost value in the pWndInsertAfte parameter... Cheers!!!:-D Carlos Antollini.
-
I am using several modeless dialog boxes which exist for the life of the (SDI) application, These dialogs need to be visible in front of the application window while still allowing interaction with the application. I have used the system model attribute on the dialogs, however this means that the dialogs obscure any other dialogs such as the file dialog. I need to keep the dialogs on top of the main application without obscuring any other windows... Can anyne help.. Thanks in advance.. :) Steve
Use the SetWindowPos using the topMost value in the pWndInsertAfter parameter... Cheers!!!:-D Carlos Antollini.
-
I am using several modeless dialog boxes which exist for the life of the (SDI) application, These dialogs need to be visible in front of the application window while still allowing interaction with the application. I have used the system model attribute on the dialogs, however this means that the dialogs obscure any other dialogs such as the file dialog. I need to keep the dialogs on top of the main application without obscuring any other windows... Can anyne help.. Thanks in advance.. :) Steve
You mean like the "always on top" effect? Just create the modeless dialog box normally (ie "CDialog::Create(IDD_MY_DLG);" and you are done. It doesn't need extra flags, and can't have the system modal flag set. - John