How does wxDefaultPosition work

This forum can be used to talk about general design strategies, new ideas and questions in general related to wxWidgets. If you feel your questions doesn't fit anywhere, put it here.
Post Reply
rudolfninja
Earned some good credits
Earned some good credits
Posts: 104
Joined: Tue Aug 28, 2018 1:02 pm
Location: Belarus

How does wxDefaultPosition work

Post by rudolfninja » Wed Oct 30, 2019 9:06 am

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.

User avatar
doublemax
Moderator
Moderator
Posts: 14786
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: How does wxDefaultPosition work

Post by doublemax » Wed Oct 30, 2019 10:07 am

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
Use the source, Luke!

Post Reply