MultiMonitorEnumerator.h 902 B

123456789101112131415161718192021222324252627282930313233
  1. #pragma once
  2. class CMultiMonitorEnumerator
  3. {
  4. public:
  5. typedef struct _tagVMonitorInfo_t
  6. {
  7. HMONITOR hMonitor; //��ʾ�����
  8. TCHAR szDevice[32]; //��ʾ����
  9. RECT rcVirtual; //������ʾ������
  10. RECT rcMonitor; //������ʾ����
  11. RECT rcWork; //������ʾ����
  12. BOOL bPrimary; //����ʾ����
  13. _tagVMonitorInfo_t()
  14. {
  15. memset(this, 0, sizeof(*this));
  16. }
  17. }VMONITORINFO, * LPVMONITORINFO;
  18. static BOOL CALLBACK MonitorEnumProc(
  19. HMONITOR hMonitor, // handle to display monitor
  20. HDC hdcMonitor, // handle to monitor-appropriate device context
  21. LPRECT lprcMonitor, // pointer to monitor intersection rectangle
  22. LPARAM dwData // data passed from EnumDisplayMonitors
  23. );
  24. public:
  25. CMultiMonitorEnumerator();
  26. public:
  27. int32_t m_iMontorNumber;
  28. VMONITORINFO m_MonitorInfoExArray[64];
  29. };