Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Get window position relative to current monitor
#1
In a multi monitor setup (2 monitors)
Left secondary, right primary
Is it possible to get the position of an window relative to it's current monitor it is on?
Currently when I place notepad on the left monitor I get negative values for x (GetWinXY).

I am assuming because the right monitor has it's monitor -X coord at 0, so the left monitor becomes negative?

Is there an easier/effective way to get the position of an window relative to it's current monitor it is on.
Preferably a method that also works in in 3 or even 4 monitor setups where the primary monitor can be any of them.
#2
check out these functions in qm system folder
XyNormalToMonitor

XyMonitorToNormal
#3
oh I forgot about those in the system folder!!!
Thanks!!!


Forum Jump:


Users browsing this thread: 1 Guest(s)