MCPcopy Create free account
hub / github.com/DiscordMessenger/dm / DrawLoadingBox

Function DrawLoadingBox

src/windows/WinUtils.cpp:1242–1256  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1240}
1241
1242void 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
1258void DrawErrorBox(HDC hdc, RECT rect)
1259{

Callers 1

DrawImageSpecialFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected