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