@@ -259,13 +259,13 @@ static void PaintControl(HWND hWnd, HDC hdc, RECT* prc, bool bDrawBorder)
259259 if (bDrawBorder)
260260 InflateRect (prc, 1 , 1 );
261261
262- HPAINTBUFFER hBufferedPaint = BeginBufferedPaint (hdc, prc, BPBF_TOPDOWNDIB, nullptr , &hdcPaint);
262+ HPAINTBUFFER hBufferedPaint = _BeginBufferedPaint (hdc, prc, BPBF_TOPDOWNDIB, nullptr , &hdcPaint);
263263 if (hdcPaint && hBufferedPaint) {
264264 RECT rc;
265265 GetWindowRect (hWnd, &rc);
266266
267267 PatBlt (hdcPaint, 0 , 0 , RECTWIDTH (rc), RECTHEIGHT (rc), BLACKNESS);
268- BufferedPaintSetAlpha (hBufferedPaint, &rc, 0x00 );
268+ _BufferedPaintSetAlpha (hBufferedPaint, &rc, 0x00 );
269269
270270 // /
271271 // / first blit white so list ctrls don't look ugly:
@@ -285,8 +285,8 @@ static void PaintControl(HWND hWnd, HDC hdc, RECT* prc, bool bDrawBorder)
285285 // don't make a possible border opaque, only the inner part of the control
286286 InflateRect (prc, -2 , -2 );
287287 // Make every pixel opaque
288- BufferedPaintSetAlpha (hBufferedPaint, prc, 255 );
289- EndBufferedPaint (hBufferedPaint, TRUE );
288+ _BufferedPaintSetAlpha (hBufferedPaint, prc, 255 );
289+ _EndBufferedPaint (hBufferedPaint, TRUE );
290290 }
291291}
292292
@@ -408,7 +408,7 @@ LRESULT WINAPI TGDarkMode_ButtonSubclassProc(
408408 rcExclusion.bottom -= 2 ;
409409
410410 HDC hdcPaint = nullptr ;
411- HPAINTBUFFER hBufferedPaint = BeginBufferedPaint (hdc, &rcClient, BPBF_TOPDOWNDIB, ¶ms, &hdcPaint);
411+ HPAINTBUFFER hBufferedPaint = _BeginBufferedPaint (hdc, &rcClient, BPBF_TOPDOWNDIB, ¶ms, &hdcPaint);
412412 if (hdcPaint) {
413413 // now we again retrieve the font, but this time we select it into
414414 // the buffered DC:
@@ -419,7 +419,7 @@ LRESULT WINAPI TGDarkMode_ButtonSubclassProc(
419419 ::SetBkColor (hdcPaint, g_darkBkColor);
420420 ::ExtTextOut (hdcPaint, 0 , 0 , ETO_OPAQUE, &rcClient, nullptr , 0 , nullptr );
421421
422- BufferedPaintSetAlpha (hBufferedPaint, &ps.rcPaint , 0x00 );
422+ _BufferedPaintSetAlpha (hBufferedPaint, &ps.rcPaint , 0x00 );
423423
424424 DTTOPTS DttOpts = { sizeof (DTTOPTS) };
425425 DttOpts.dwFlags = DTT_COMPOSITED | DTT_GLOWSIZE;
@@ -471,7 +471,7 @@ LRESULT WINAPI TGDarkMode_ButtonSubclassProc(
471471 hFontOld = nullptr ;
472472 }
473473
474- EndBufferedPaint (hBufferedPaint, TRUE );
474+ _EndBufferedPaint (hBufferedPaint, TRUE );
475475 }
476476 CloseThemeData (hTheme);
477477 }
@@ -484,12 +484,12 @@ LRESULT WINAPI TGDarkMode_ButtonSubclassProc(
484484 HDC hdcPaint = nullptr ;
485485 BP_PAINTPARAMS params = { sizeof (BP_PAINTPARAMS) };
486486 params.dwFlags = BPPF_ERASE;
487- HPAINTBUFFER hBufferedPaint = BeginBufferedPaint (hdc, &rcClient, BPBF_TOPDOWNDIB, ¶ms, &hdcPaint);
487+ HPAINTBUFFER hBufferedPaint = _BeginBufferedPaint (hdc, &rcClient, BPBF_TOPDOWNDIB, ¶ms, &hdcPaint);
488488 if (hdcPaint && hBufferedPaint) {
489489 ::SetBkColor (hdcPaint, g_darkBkColor);
490490 ::ExtTextOut (hdcPaint, 0 , 0 , ETO_OPAQUE, &rcClient, nullptr , 0 , nullptr );
491491
492- BufferedPaintSetAlpha (hBufferedPaint, &ps.rcPaint , 0x00 );
492+ _BufferedPaintSetAlpha (hBufferedPaint, &ps.rcPaint , 0x00 );
493493
494494 LRESULT dwCheckState = SendMessage (hWnd, BM_GETCHECK, 0 , 0 );
495495 POINT pt;
@@ -639,7 +639,7 @@ LRESULT WINAPI TGDarkMode_ButtonSubclassProc(
639639 hFontOld = nullptr ;
640640 }
641641
642- EndBufferedPaint (hBufferedPaint, TRUE );
642+ _EndBufferedPaint (hBufferedPaint, TRUE );
643643 }
644644 CloseThemeData (hTheme);
645645 }
0 commit comments