About Multiple Monitors
-
Hello all I want to identify multiple monitors as we can do it by this way: In Display Settings, by pressing Identify button. Is there anyway to do this?? I am running on WinXP sp2 Thanks in advance.
Manish Patel. B.E. - Information Technology.
-
Hello all I want to identify multiple monitors as we can do it by this way: In Display Settings, by pressing Identify button. Is there anyway to do this?? I am running on WinXP sp2 Thanks in advance.
Manish Patel. B.E. - Information Technology.
use GetSystemMetrics(SM_CMONITORS) to detect if there is more than one monitor. You can also use: EnumDisplayMonitors() to enumarate monitors and retrieving the rect on screen. GetMonitorInfo() to get information about a special monitor. MonitorFromPoint() to get a handle to a monitor when you have a point. You can use GDI to draw on screen or display a window to identify monitors
-
use GetSystemMetrics(SM_CMONITORS) to detect if there is more than one monitor. You can also use: EnumDisplayMonitors() to enumarate monitors and retrieving the rect on screen. GetMonitorInfo() to get information about a special monitor. MonitorFromPoint() to get a handle to a monitor when you have a point. You can use GDI to draw on screen or display a window to identify monitors
karle, Thanks for your kind reply I want to Draw monitor number on top of all window and only number should be visible as system shows when we click on identify button of system settings property. Any idea? Thanks in advance.
Manish Patel. B.E. - Information Technology.
-
karle, Thanks for your kind reply I want to Draw monitor number on top of all window and only number should be visible as system shows when we click on identify button of system settings property. Any idea? Thanks in advance.
Manish Patel. B.E. - Information Technology.
you could make a separate window for each number display and show one on each monitor. make each window a "stay on top" window (see SetWindowPos, z-order argument) so it shows above all other windows. and if all you want is the number, then make the window without any border or title bar and use color key transparency (see the WS_EX_LAYERED extended style, and the SetLayeredWindowAttributes() API using the LWA_COLORKEY flag).
-
karle, Thanks for your kind reply I want to Draw monitor number on top of all window and only number should be visible as system shows when we click on identify button of system settings property. Any idea? Thanks in advance.
Manish Patel. B.E. - Information Technology.