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. Keeping Window On Top

Keeping Window On Top

Scheduled Pinned Locked Moved C / C++ / MFC
questionhelp
6 Posts 2 Posters 0 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.
  • K Offline
    K Offline
    KingTermite
    wrote on last edited by
    #1

    I have this code snippet used to keep the window on the top. // Make this window stay on top, so it never leaves opertor's view. SetWindowPos( &wndTopMost, 0,0,0,0, SWP_NOSIZE | SWP_NOMOVE | SWP_SHOWWINDOW ); The problem is that is starts minimized...how can I ensure this window starts visible?


    There are only 10 types of people in this world....those that understand binary, and those that do not.

    D 1 Reply Last reply
    0
    • K KingTermite

      I have this code snippet used to keep the window on the top. // Make this window stay on top, so it never leaves opertor's view. SetWindowPos( &wndTopMost, 0,0,0,0, SWP_NOSIZE | SWP_NOMOVE | SWP_SHOWWINDOW ); The problem is that is starts minimized...how can I ensure this window starts visible?


      There are only 10 types of people in this world....those that understand binary, and those that do not.

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      KingTermite wrote: The problem is that is starts minimized...how can I ensure this window starts visible? So which is it, a window that starts non-minimized, one that is visible, or both?


      "When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen

      K 1 Reply Last reply
      0
      • D David Crow

        KingTermite wrote: The problem is that is starts minimized...how can I ensure this window starts visible? So which is it, a window that starts non-minimized, one that is visible, or both?


        "When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen

        K Offline
        K Offline
        KingTermite
        wrote on last edited by
        #3

        Sorry...I guess I did make that a bit unclear. I didn't mean the window wasn't visible, just minimized. I want it to start non-minimized.


        There are only 10 types of people in this world....those that understand binary, and those that do not.

        D 1 Reply Last reply
        0
        • K KingTermite

          Sorry...I guess I did make that a bit unclear. I didn't mean the window wasn't visible, just minimized. I want it to start non-minimized.


          There are only 10 types of people in this world....those that understand binary, and those that do not.

          D Offline
          D Offline
          David Crow
          wrote on last edited by
          #4

          Is it an SDI/MDI app, or a dialog-based app?


          "When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen

          K 1 Reply Last reply
          0
          • D David Crow

            Is it an SDI/MDI app, or a dialog-based app?


            "When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen

            K Offline
            K Offline
            KingTermite
            wrote on last edited by
            #5

            Dialog.


            There are only 10 types of people in this world....those that understand binary, and those that do not.

            D 1 Reply Last reply
            0
            • K KingTermite

              Dialog.


              There are only 10 types of people in this world....those that understand binary, and those that do not.

              D Offline
              D Offline
              David Crow
              wrote on last edited by
              #6

              Are you making any calls to ShowWindow(), or does the dialog template have the WS_MINIMIZE style?


              "When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen

              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