Why is GWLP_HWNDPARENT (-8)
undocumented in SetWindowLongPtr
, and is it safe to use?
#1376
Unanswered
Zakariathr22
asked this question in
Q&A
Replies: 1 comment
-
The microsoft/win32metadata repo discussions tab may be a more appropriate forum, as that is staffed by win32 folks, whereas this one is not so much. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone,
I’m working with Win32 APIs and trying to understand how SetWindowLongPtr works with
GWLP_HWNDPARENT (-8)
. While researching, I found that some developers use:However,

GWLP_HWNDPARENT (-8)
is not documented in official Microsoft documentation, yet it seems to work for setting window ownership.My Questions:
GWLP_HWNDPARENT (-8)
officially supported?Sorry, I know this is a bit off-topic, but I’d really appreciate any insights from experienced developers. (My use case is for modal windows in WinUI.)
Thanks in advance!
Edit:
If this isn't the place to ask this question, could you please direct me to the right one?
Beta Was this translation helpful? Give feedback.
All reactions