Post Reply

Forums -> Multiple monitors -> How to find the secondery screen left-top automatically
happygemini   2003-11-07 13:49
I detect the screen parameter with the api provided in msdn,but I only detect the visual screen lest-top, I want to get the secondary screen left-top value like (1024,0) .I test it by method like this:
for(int i=800;i<1200;++i)
{
HMONITOR hMonitor = ::MonitorFromPoint( CPoint( i,0 ), MONITOR_DEFAULTTONULL );
GetMonitorInfo( hMonitor, &lpmi );
TRACE("%d name is %s\n",i,lpmi.szDevice);
}
but the result is the same .
give me suggestion.
thank you

happygemini
Forums -> Multiple monitors -> How to find the secondery screen left-top automatically

Post Reply