c++windowsuser-interfacewinapicommon-dialog

What's the reason a handle for owner window required when creating an common dialog


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?


Solution

  • Thanks for all who commented! Below are the key ideas I've got from the document.

    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.