Yet another attempt at fixing CW_USEDEFAULT handling.
[wine.git] / include / monitor.h
blobe7c95c5e6cb2d515117fba510880fde05302affc
1 /*
2 * Monitor definitions
4 */
6 #ifndef __WINE_MONITOR_H
7 #define __WINE_MONITOR_H
9 #include "windef.h"
11 typedef struct tagMONITOR
13 RECT rect;
14 int depth;
15 } MONITOR;
17 extern MONITOR MONITOR_PrimaryMonitor;
19 static int inline MONITOR_GetWidth(MONITOR *pMonitor)
21 return pMonitor->rect.right - pMonitor->rect.left;
24 static int inline MONITOR_GetHeight(MONITOR *pMonitor)
26 return pMonitor->rect.bottom - pMonitor->rect.top;
29 static int inline MONITOR_GetDepth(MONITOR *pMonitor)
31 return pMonitor->depth;
34 #endif /* __WINE_MONITOR_H */