equal
deleted
inserted
replaced
74 RECT rcWork; |
74 RECT rcWork; |
75 DWORD dwFlags; |
75 DWORD dwFlags; |
76 }; |
76 }; |
77 |
77 |
78 typedef BOOL (WINAPI *InfoFunc)(HMONITOR, MONITORINFO*); |
78 typedef BOOL (WINAPI *InfoFunc)(HMONITOR, MONITORINFO*); |
79 typedef BOOL (CALLBACK *EnumProc)(HMONITOR, HDC, LPRECT, LPARAM); |
79 typedef BOOL (QT_WIN_CALLBACK *EnumProc)(HMONITOR, HDC, LPRECT, LPARAM); |
80 typedef BOOL (WINAPI *EnumFunc)(HDC, LPCRECT, EnumProc, LPARAM); |
80 typedef BOOL (WINAPI *EnumFunc)(HDC, LPCRECT, EnumProc, LPARAM); |
81 |
81 |
82 static EnumFunc enumDisplayMonitors; |
82 static EnumFunc enumDisplayMonitors; |
83 static InfoFunc getMonitorInfo; |
83 static InfoFunc getMonitorInfo; |
84 static int refcount; |
84 static int refcount; |
105 QPoint(sip.rcVisibleDesktop.right - 1, sip.rcVisibleDesktop.bottom - 1)); |
105 QPoint(sip.rcVisibleDesktop.right - 1, sip.rcVisibleDesktop.bottom - 1)); |
106 } |
106 } |
107 #endif |
107 #endif |
108 |
108 |
109 |
109 |
110 BOOL CALLBACK enumCallback(HMONITOR hMonitor, HDC, LPRECT, LPARAM) |
110 BOOL QT_WIN_CALLBACK enumCallback(HMONITOR hMonitor, HDC, LPRECT, LPARAM) |
111 { |
111 { |
112 QDesktopWidgetPrivate::screenCount++; |
112 QDesktopWidgetPrivate::screenCount++; |
113 QDesktopWidgetPrivate::rects->resize(QDesktopWidgetPrivate::screenCount); |
113 QDesktopWidgetPrivate::rects->resize(QDesktopWidgetPrivate::screenCount); |
114 QDesktopWidgetPrivate::workrects->resize(QDesktopWidgetPrivate::screenCount); |
114 QDesktopWidgetPrivate::workrects->resize(QDesktopWidgetPrivate::screenCount); |
115 // Get the MONITORINFO block |
115 // Get the MONITORINFO block |