| 1240 | } |
| 1241 | |
| 1242 | void DrawLoadingBox(HDC hdc, RECT rect) |
| 1243 | { |
| 1244 | ri::DrawEdge(hdc, &rect, BDR_SUNKEN, BF_RECT); |
| 1245 | |
| 1246 | HRGN rgn = CreateRectRgnIndirect(&rect); |
| 1247 | SelectClipRgn(hdc, rgn); |
| 1248 | |
| 1249 | int smcxicon = GetSystemMetrics(SM_CXICON); |
| 1250 | int x = rect.left + (rect.right - rect.left - smcxicon) / 2; |
| 1251 | int y = rect.top + (rect.bottom - rect.top - smcxicon) / 2; |
| 1252 | ri::DrawIconEx(hdc, x, y, g_WaitIcon, smcxicon, smcxicon, 0, NULL, DI_COMPAT | DI_NORMAL); |
| 1253 | |
| 1254 | SelectClipRgn(hdc, NULL); |
| 1255 | DeleteRgn(rgn); |
| 1256 | } |
| 1257 | |
| 1258 | void DrawErrorBox(HDC hdc, RECT rect) |
| 1259 | { |