Dual Monitors - 1 needs to sleep
-
I am doing a project that requires two monitors, one standard display and one 3D. The video card is cloning the display from one to another (not a dual monitor situation where the display is split). This is fine but here's my problem: I need to make one monitor sleep while the 3D monitor shows something 3D Upon the mouse movement, make the 3D monitor sleep while the other monitor is powered-up to show a form, then back to the 3D monitor when the form is submitted. I have found this code: // Turn off monitor Sleep(500); // Eliminate user's interaction for 500 ms SendMessage(HWND_BROADCAST, WM_SYSCOMMAND, SC_MONITORPOWER, (LPARAM) 2); // Turn on monitor SendMessage(HWND_BROADCAST, WM_SYSCOMMAND, SC_MONITORPOWER, (LPARAM) -1); // Low power monitor Sleep(500); // Eliminate user's interaction for 500 ms SendMessage(HWND_BROADCAST, WM_SYSCOMMAND, SC_MONITORPOWER, (LPARAM) 1); But I only need to make one of the monitors sleep at a time. Can this even be done?
-
I am doing a project that requires two monitors, one standard display and one 3D. The video card is cloning the display from one to another (not a dual monitor situation where the display is split). This is fine but here's my problem: I need to make one monitor sleep while the 3D monitor shows something 3D Upon the mouse movement, make the 3D monitor sleep while the other monitor is powered-up to show a form, then back to the 3D monitor when the form is submitted. I have found this code: // Turn off monitor Sleep(500); // Eliminate user's interaction for 500 ms SendMessage(HWND_BROADCAST, WM_SYSCOMMAND, SC_MONITORPOWER, (LPARAM) 2); // Turn on monitor SendMessage(HWND_BROADCAST, WM_SYSCOMMAND, SC_MONITORPOWER, (LPARAM) -1); // Low power monitor Sleep(500); // Eliminate user's interaction for 500 ms SendMessage(HWND_BROADCAST, WM_SYSCOMMAND, SC_MONITORPOWER, (LPARAM) 1); But I only need to make one of the monitors sleep at a time. Can this even be done?
Use dual View Mode on your video card to have to separate display, and then you can create Direct3D surface on the second monitor, and to sleep it... NG