L
lucy
Hi all,
I am having two monitor displays. I want to know the current resolution
(horizontal number of pixels x vertical number of pixels) of the second
monitor? How to do that?
If it is the primary display, I can easily get its current resolution using
the following apporach.
XRes= (double)GetSystemMetrics(SM_CXSCREEN);
YRes= (double)GetSystemMetrics(SM_CYSCREEN);
But how to do that for the second monitor?
Also, how to set the second monitor to a certain resolution? For example,
how to first enumerate its resolution list and pick an supported resolution
to switch the current resolution to that target resolution?
thanks a lot
I am having two monitor displays. I want to know the current resolution
(horizontal number of pixels x vertical number of pixels) of the second
monitor? How to do that?
If it is the primary display, I can easily get its current resolution using
the following apporach.
XRes= (double)GetSystemMetrics(SM_CXSCREEN);
YRes= (double)GetSystemMetrics(SM_CYSCREEN);
But how to do that for the second monitor?
Also, how to set the second monitor to a certain resolution? For example,
how to first enumerate its resolution list and pick an supported resolution
to switch the current resolution to that target resolution?
thanks a lot