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. What's the real difference between POPUP window and OVERLAPPED window

What's the real difference between POPUP window and OVERLAPPED window

Scheduled Pinned Locked Moved C / C++ / MFC
question
6 Posts 3 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.
  • C Offline
    C Offline
    Cold_Fearing_Bird
    wrote on last edited by
    #1

    WS_OVERLLAPED 0x0L WS_POPUP 0x80000000L I don't really understand the differences between them. They both can have border, min/max button, or sysmenu. The only different feature I can read from msdn is popup cannot be a child window. so is that all these two are different? Can I take the popup window this way? popup window is overlapped too, coz all window is overlapped(WS_OVERLAPPED = 0x0L),the 31th bit of the window style is set to 1 to indicate that it mustn't be a child window, but it can be an owned window.so they are different only when they are being owned?(I don't know child window can be said " being owned" either, coz being owned and being a child are totally different. )

    L 1 Reply Last reply
    0
    • C Cold_Fearing_Bird

      WS_OVERLLAPED 0x0L WS_POPUP 0x80000000L I don't really understand the differences between them. They both can have border, min/max button, or sysmenu. The only different feature I can read from msdn is popup cannot be a child window. so is that all these two are different? Can I take the popup window this way? popup window is overlapped too, coz all window is overlapped(WS_OVERLAPPED = 0x0L),the 31th bit of the window style is set to 1 to indicate that it mustn't be a child window, but it can be an owned window.so they are different only when they are being owned?(I don't know child window can be said " being owned" either, coz being owned and being a child are totally different. )

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      WS_OVERLAPPED creates a window with a frame border, WS_POPUP creates a similar window but without the frame border. You can test this by creating a very simple Win32 application and try the various styles to see the different effects.

      Unrequited desire is character building.

      A 1 Reply Last reply
      0
      • L Lost User

        WS_OVERLAPPED creates a window with a frame border, WS_POPUP creates a similar window but without the frame border. You can test this by creating a very simple Win32 application and try the various styles to see the different effects.

        Unrequited desire is character building.

        A Offline
        A Offline
        Albert Holguin
        wrote on last edited by
        #3

        That's what I would've done (test it)... but I had no idea as to the difference... :thumbsup:

        C L 2 Replies Last reply
        0
        • A Albert Holguin

          That's what I would've done (test it)... but I had no idea as to the difference... :thumbsup:

          C Offline
          C Offline
          Cold_Fearing_Bird
          wrote on last edited by
          #4

          I have tested a lot. Turns out having the WS_POPUP(0x80000000) bit on doesn't mean adding a feature to a window,but means eliminating a feature from a window. That feature is the title bar. If missing WS_POPUP we normally have no way to create a window without caption bar,however POPUP window still can be forced to have title bar if combined with WS_CAPTION,that's it changes back to a OVERLAPPED window again.Popup window cannot be a child window too.I think overlapped window, popup window and child window are mutually exclusive, only because overlapped window is the value 0x0, so if we use WS_OVERLAPPED | WS_CHILD doesn't affect the success to creating the window.But the msdn says WS_OVERAPPED is a top-level window which means WS_OVERALPPED conceptually cannot be a child window too.

          1 Reply Last reply
          0
          • A Albert Holguin

            That's what I would've done (test it)... but I had no idea as to the difference... :thumbsup:

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            Albert Holguin wrote:

            I had no idea as to the difference

            Nor me; I just ran a quick test to see it. I have to admit that the description in MSDN is very poor for anyone trying to learn about the differences.

            Unrequited desire is character building.

            A 1 Reply Last reply
            0
            • L Lost User

              Albert Holguin wrote:

              I had no idea as to the difference

              Nor me; I just ran a quick test to see it. I have to admit that the description in MSDN is very poor for anyone trying to learn about the differences.

              Unrequited desire is character building.

              A Offline
              A Offline
              Albert Holguin
              wrote on last edited by
              #6

              Richard MacCutchan wrote:

              the description in MSDN is very poor

              ...that happens a lot...

              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