I'm working with common dialog recently and I've found that a hWndOwner
is required in the structure that passed to functions like ChooseColor
.
It seems of no difference when I used different hWndOwner
. What does different hWndOwner
choosing affects? Are there anything to take care when choosing the owner window?
Thanks for all who commented! Below are the key ideas I've got from the document.
There are a few things that relates to ownership, as taken from the document:
Setting owner to a child window (a window that is not a overlapped window or popup window) is equivalent to setting it to the top-level parent window.
The ownership could not be transferred after the window is created.
That's what I've learnt by reading the document. It would be much better if someone can give some extra information that is not included in the document.