Page 1 of 1

How does wxDefaultPosition work

Posted: Wed Oct 30, 2019 9:06 am
by rudolfninja
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.

Re: How does wxDefaultPosition work

Posted: Wed Oct 30, 2019 10:07 am
by doublemax
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