display
Detect Multiple Monitors
The GetSystemMetrics WIN API can be used to get the number of monitors. Some other constants related to multi-monitor PC configurations are also included.
| This is sample code. Add error handling and adjust to your requirements as necessary. |
#DEFINE SM_XVIRTUALSCREEN 76 #DEFINE SM_YVIRTUALSCREEN 77 #DEFINE SM_CXVIRTUALSCREEN 78 #DEFINE SM_CYVIRTUALSCREEN 79 #DEFINE SM_CMONITORS 80 DECLARE Long GetSystemMetrics IN user32 Long nIndex lnNonitors = GetSystemMetrics(SM_CMONITORS) ? lnNonitors
Recent comments
1 week 4 days ago
1 week 4 days ago
1 week 6 days ago
2 weeks 15 hours ago
2 weeks 1 day ago
2 weeks 4 days ago
3 weeks 4 days ago
3 weeks 5 days ago
3 weeks 6 days ago
4 weeks 3 days ago