1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2026-01-05 01:54:00 +00:00

Added code, to set the background mode for IDC_IMAGE, fixing a transparency issue for Windows Common Controls v6

This commit is contained in:
Bryan Roe
2022-12-02 11:42:16 -08:00
parent 650667126c
commit 1ac56a2aa2

View File

@@ -1168,6 +1168,12 @@ INT_PTR CALLBACK DialogHandler(HWND hDlg, UINT message, WPARAM wParam, LPARAM lP
SetTextColor((HDC)wParam, gFGCOLOR);
return (INT_PTR)GetStockObject(NULL_BRUSH);
}
if ((HWND)lParam == GetDlgItem(hDlg, IDC_IMAGE))
{
// Set the background mode to transparent for the customized bitmap
SetBkMode((HDC)wParam, TRANSPARENT);
return (INT_PTR)GetStockObject(NULL_BRUSH);
}
break;
}
case WM_PAINT: