Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Dialogs always on top

Dialogs always on top

Scheduled Pinned Locked Moved C / C++ / MFC
help
5 Posts 3 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    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

    C J 4 Replies Last reply
    0
    • L Lost User

      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

      C Offline
      C Offline
      Carlos Antollini
      wrote on last edited by
      #2

      Use the SetWindowPos using the topMost value in the pWndInsertAfte parameter... Cheers!!! Carlos Antollini.

      1 Reply Last reply
      0
      • L Lost User

        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

        C Offline
        C Offline
        Carlos Antollini
        wrote on last edited by
        #3

        Use the SetWindowPos using the topMost value in the pWndInsertAfte parameter... Cheers!!!:-D Carlos Antollini.

        1 Reply Last reply
        0
        • L Lost User

          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

          C Offline
          C Offline
          Carlos Antollini
          wrote on last edited by
          #4

          Use the SetWindowPos using the topMost value in the pWndInsertAfter parameter... Cheers!!!:-D Carlos Antollini.

          1 Reply Last reply
          0
          • L Lost User

            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

            J Offline
            J Offline
            John Uhlenbrock
            wrote on last edited by
            #5

            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

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups