Lines Matching full:rect
81 static bool GetWorkAreaRect(RECT *rect)
84 return BOOLToBool(::SystemParametersInfo(SPI_GETWORKAREA, 0, rect, 0));
94 RECT rect;
95 GetWorkAreaRect(&rect);
96 int wx = RECT_SIZE_X(rect);
97 int wy = RECT_SIZE_Y(rect);
107 RECT rect;
108 rect.left = 0;
109 rect.top = 0;
110 rect.right = margin;
111 rect.bottom = margin;
112 if (!MapRect(&rect))
114 x = rect.right - rect.left;
115 y = rect.bottom - rect.top;
121 RECT rect;
122 rect.left = 0;
123 rect.top = 0;
124 rect.right = units;
125 rect.bottom = units;
126 if (!MapRect(&rect))
128 return rect.right - rect.left;
133 RECT rect;
134 if (!::GetWindowRect(GetItem(id), &rect))
136 x = RECT_SIZE_X(rect);
137 y = RECT_SIZE_Y(rect);
141 void CDialog::GetClientRectOfItem(int id, RECT &rect)
143 ::GetWindowRect(GetItem(id), &rect);
144 ScreenToClient(&rect);
154 RECT workRect;
158 RECT rect;
159 GetWindowRect(&rect);
160 int xSize2 = RECT_SIZE_X(rect);
161 int ySize2 = RECT_SIZE_Y(rect);
165 rect.left = workRect.left;
166 rect.right = workRect.right;
171 rect.top = workRect.top;
172 rect.bottom = workRect.bottom;
180 Move(rect.left, rect.top, xSize2, ySize2, true);
186 RECT workRect, rect;
188 GetWindowRect(&rect);
189 if (rect.bottom > workRect.bottom && rect.top > workRect.top)
190 Move(rect.left, workRect.top, RECT_SIZE_X(rect), RECT_SIZE_Y(rect), true);