Quote Originally Posted by DEXWERX View Post
MonitorFromWindow with MONITOR_DEFAULTTONEAREST gets a handle to closest monitor
and then use GetMonitorInfo to get the working rect of that particular monitor (rcWork).
then you can use those coordinates for centering/clipping and calculating percentages.
Quote Originally Posted by DEXWERK
disappearing monitors is an everyday occurrence.

luckily all the apps i use respond to WM_DISPLAYCHANGE
Do you have a sample for this?