Lines Matching refs:rect

125 static bool GetWorkAreaRect(RECT *rect, HWND hwnd)

146 *rect = mi.rcWork;
158 return BOOLToBool(::SystemParametersInfo(SPI_GETWORKAREA, 0, rect, 0));
169 RECT rect;
170 GetWorkAreaRect(&rect, hwnd);
171 const int wx = RECT_SIZE_X(rect);
172 const int wy = RECT_SIZE_Y(rect);
182 RECT rect;
183 rect.left = 0;
184 rect.top = 0;
185 rect.right = margin;
186 rect.bottom = margin;
187 if (!MapRect(&rect))
189 x = rect.right - rect.left;
190 y = rect.bottom - rect.top;
196 RECT rect;
197 rect.left = 0;
198 rect.top = 0;
199 rect.right = units;
200 rect.bottom = units;
201 if (!MapRect(&rect))
203 return rect.right - rect.left;
208 RECT rect;
209 if (!::GetWindowRect(GetItem(id), &rect))
211 x = RECT_SIZE_X(rect);
212 y = RECT_SIZE_Y(rect);
216 void CDialog::GetClientRectOfItem(unsigned id, RECT &rect)
218 ::GetWindowRect(GetItem(id), &rect);
219 ScreenToClient(&rect);
232 static bool GetWindowsRect_DWM(HWND hwnd, RECT *rect)
246 *rect = r;
287 RECT rect;
288 if (!GetWindowRect(&rect))
290 int xs = RECT_SIZE_X(rect);
291 int ys = RECT_SIZE_Y(rect);
294 if (!AreRectsOverlapped(rect, workRect))
297 /* here rect and workRect are overlapped, but it can be false
341 // it's same monitor. So we try to use parentHWND rect.
343 In Win10 : parent window rect is 8 pixels larger for each corner than window size for shadow.
352 RECT rect;
353 if (!GetWindowRect(&rect))
359 if (IsRect_Small_Inside_Big(rect, workRect))
362 if (!AreRectsOverlapped(rect, workRect))
368 const int xs = RECT_SIZE_X(rect);
369 const int ys = RECT_SIZE_Y(rect);
378 if (x != rect.left || y != rect.top)