Lines Matching refs:rect
82 static bool GetWorkAreaRect(RECT *rect) in GetWorkAreaRect() argument
85 return BOOLToBool(::SystemParametersInfo(SPI_GETWORKAREA, 0, rect, 0)); in GetWorkAreaRect()
95 RECT rect; in IsDialogSizeOK() local
96 GetWorkAreaRect(&rect); in IsDialogSizeOK()
97 int wx = RECT_SIZE_X(rect); in IsDialogSizeOK()
98 int wy = RECT_SIZE_Y(rect); in IsDialogSizeOK()
108 RECT rect; in GetMargins() local
109 rect.left = 0; in GetMargins()
110 rect.top = 0; in GetMargins()
111 rect.right = margin; in GetMargins()
112 rect.bottom = margin; in GetMargins()
113 if (!MapRect(&rect)) in GetMargins()
115 x = rect.right - rect.left; in GetMargins()
116 y = rect.bottom - rect.top; in GetMargins()
122 RECT rect; in Units_To_Pixels_X() local
123 rect.left = 0; in Units_To_Pixels_X()
124 rect.top = 0; in Units_To_Pixels_X()
125 rect.right = units; in Units_To_Pixels_X()
126 rect.bottom = units; in Units_To_Pixels_X()
127 if (!MapRect(&rect)) in Units_To_Pixels_X()
129 return rect.right - rect.left; in Units_To_Pixels_X()
134 RECT rect; in GetItemSizes() local
135 if (!::GetWindowRect(GetItem(id), &rect)) in GetItemSizes()
137 x = RECT_SIZE_X(rect); in GetItemSizes()
138 y = RECT_SIZE_Y(rect); in GetItemSizes()
142 void CDialog::GetClientRectOfItem(int id, RECT &rect) in GetClientRectOfItem() argument
144 ::GetWindowRect(GetItem(id), &rect); in GetClientRectOfItem()
145 ScreenToClient(&rect); in GetClientRectOfItem()
159 RECT rect; in NormalizeSize() local
160 GetWindowRect(&rect); in NormalizeSize()
161 int xSize2 = RECT_SIZE_X(rect); in NormalizeSize()
162 int ySize2 = RECT_SIZE_Y(rect); in NormalizeSize()
166 rect.left = workRect.left; in NormalizeSize()
167 rect.right = workRect.right; in NormalizeSize()
172 rect.top = workRect.top; in NormalizeSize()
173 rect.bottom = workRect.bottom; in NormalizeSize()
181 Move(rect.left, rect.top, xSize2, ySize2, true); in NormalizeSize()
187 RECT workRect, rect; in NormalizePosition() local
189 GetWindowRect(&rect); in NormalizePosition()
190 if (rect.bottom > workRect.bottom && rect.top > workRect.top) in NormalizePosition()
191 Move(rect.left, workRect.top, RECT_SIZE_X(rect), RECT_SIZE_Y(rect), true); in NormalizePosition()