Go to the source code of this file.
static BOOL CALLBACK __MonitorEnumProc |
( |
HMONITOR |
hMonitor, |
|
|
HDC |
hdcMonitor, |
|
|
LPRECT |
lprcMonitor, |
|
|
LPARAM |
dwData |
|
) |
| |
|
static |
static bool g_is_enabled |
( |
| ) |
|
|
static |
static BOOL SetWindowSize |
( |
HWND |
p_wnd, |
|
|
unsigned |
p_x, |
|
|
unsigned |
p_y |
|
) |
| |
|
static |
Definition at line 133 of file window_placement_helper.cpp.
135 if (p_x != ~0 && p_y != ~0)
136 return SetWindowPos(p_wnd,0,0,0,p_x,p_y,SWP_NOACTIVATE|SWP_NOMOVE|SWP_NOZORDER);
static bool test_rect |
( |
const RECT * |
rc | ) |
|
|
static |
Definition at line 24 of file window_placement_helper.cpp.
27 const LONG sanitycheck = 4;
28 const LONG cwidth = clip.right - clip.left;
29 const LONG cheight = clip.bottom - clip.top;
31 const LONG width = rc->right - rc->left;
32 const LONG height = rc->bottom - rc->top;
34 if (width > cwidth * sanitycheck || height > cheight * sanitycheck)
return false;
37 return MonitorFromRect(rc,MONITOR_DEFAULTTONULL) != NULL;
static BOOL CALLBACK __MonitorEnumProc(HMONITOR hMonitor, HDC hdcMonitor, LPRECT lprcMonitor, LPARAM dwData)