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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user