Hi all,
I'd like to know how does wxDefaultPosition for dialogs work? How the position of the dialog is chosen in this case?
Why I'm asking: I've got virtual display (implemented as driver for Windows) and wxWidgets based dialogs are drawn in negative coordinates on it (like -700, -639) if wxDefaultPosition is used (everything ok with hardcoded values). It's obvious that the problem somewhere in my driver, but I'd like to know how the position of the dialog is chosen in this case to understand what wrong in my case.
Thanks.
How does wxDefaultPosition work
-
- Earned some good credits
- Posts: 107
- Joined: Tue Aug 28, 2018 1:02 pm
- Location: Belarus
Re: How does wxDefaultPosition work
At least under Windows the position is determined by the OS. (CW_USEDEFAULT is passed as value).
https://docs.microsoft.com/en-us/window ... atewindowa
https://docs.microsoft.com/en-us/window ... atewindowa
Use the source, Luke!