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. Owner of a Window

Owner of a Window

Scheduled Pinned Locked Moved C / C++ / MFC
questionoraclesecurityjsonhelp
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.
  • H Offline
    H Offline
    HakunaMatada
    wrote on last edited by
    #1

    How do I change the owner of a Popup window?

    --- :beer: Hakuna-Matada :beer: It means no worries for the rest of your days... It's our problem free, Philosophy :jig: "I think my response was 'What idiot dreamed this up?'" -- Mary Ann Davidson, Oracle's chief security officer, in typical blunt manner, remembering her reaction to the company's scheme to brand its databases as "unbreakable."

    G 1 Reply Last reply
    0
    • H HakunaMatada

      How do I change the owner of a Popup window?

      --- :beer: Hakuna-Matada :beer: It means no worries for the rest of your days... It's our problem free, Philosophy :jig: "I think my response was 'What idiot dreamed this up?'" -- Mary Ann Davidson, Oracle's chief security officer, in typical blunt manner, remembering her reaction to the company's scheme to brand its databases as "unbreakable."

      G Offline
      G Offline
      GuyM
      wrote on last edited by
      #2

      Have you tried SetOwner() or SetParent() ? ;)

      H 1 Reply Last reply
      0
      • G GuyM

        Have you tried SetOwner() or SetParent() ? ;)

        H Offline
        H Offline
        HakunaMatada
        wrote on last edited by
        #3

        Thanks for your reply. But the thing is that I am not using MFC. I have to find a way to change the Owner of a Popup Window using Win32 APIs. Oh and SetParent() doesn't work. :(

        --- :beer: Hakuna-Matada :beer: It means no worries for the rest of your days... It's our problem free, Philosophy :jig: "I think my response was 'What idiot dreamed this up?'" -- Mary Ann Davidson, Oracle's chief security officer, in typical blunt manner, remembering her reaction to the company's scheme to brand its databases as "unbreakable."

        M 1 Reply Last reply
        0
        • H HakunaMatada

          Thanks for your reply. But the thing is that I am not using MFC. I have to find a way to change the Owner of a Popup Window using Win32 APIs. Oh and SetParent() doesn't work. :(

          --- :beer: Hakuna-Matada :beer: It means no worries for the rest of your days... It's our problem free, Philosophy :jig: "I think my response was 'What idiot dreamed this up?'" -- Mary Ann Davidson, Oracle's chief security officer, in typical blunt manner, remembering her reaction to the company's scheme to brand its databases as "unbreakable."

          M Offline
          M Offline
          Mark Salsbery
          wrote on last edited by
          #4

          HakunaMatada wrote:

          Oh and SetParent() doesn't work.

          Why not? It's not a modal dialog popup window is it?

          "Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder

          H 1 Reply Last reply
          0
          • M Mark Salsbery

            HakunaMatada wrote:

            Oh and SetParent() doesn't work.

            Why not? It's not a modal dialog popup window is it?

            "Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder

            H Offline
            H Offline
            HakunaMatada
            wrote on last edited by
            #5

            Mark Salsbery wrote:

            Why not?

            Well, from what I have read, SetParent() just sets the Parent of a Window and the Owner of a Window cannot be changed once it is assigned during creation. I was just hoping that maybe someone had a hack through which he/she could change the owner of a Window.

            Mark Salsbery wrote:

            It's not a modal dialog popup window is it?

            No. It is just a plain Popup Window.

            --- :beer: Hakuna-Matada :beer: It means no worries for the rest of your days... It's our problem free, Philosophy :jig: "I think my response was 'What idiot dreamed this up?'" -- Mary Ann Davidson, Oracle's chief security officer, in typical blunt manner, remembering her reaction to the company's scheme to brand its databases as "unbreakable."

            M 1 Reply Last reply
            0
            • H HakunaMatada

              Mark Salsbery wrote:

              Why not?

              Well, from what I have read, SetParent() just sets the Parent of a Window and the Owner of a Window cannot be changed once it is assigned during creation. I was just hoping that maybe someone had a hack through which he/she could change the owner of a Window.

              Mark Salsbery wrote:

              It's not a modal dialog popup window is it?

              No. It is just a plain Popup Window.

              --- :beer: Hakuna-Matada :beer: It means no worries for the rest of your days... It's our problem free, Philosophy :jig: "I think my response was 'What idiot dreamed this up?'" -- Mary Ann Davidson, Oracle's chief security officer, in typical blunt manner, remembering her reaction to the company's scheme to brand its databases as "unbreakable."

              M Offline
              M Offline
              Mark Salsbery
              wrote on last edited by
              #6

              You haven't mentioned MFC but that's the only place I know of where the concept of an owner window applies. The CWnd::GetOwner() and CWnd::SetOwner() methods are available for working with window ownership. Sorry it took so long to reply! Mark

              "Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder

              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