From 3950ded6a36319eb1a68a02d6f48cc89009475f8 Mon Sep 17 00:00:00 2001 From: justin1014 Date: Fri, 20 Sep 2002 17:08:34 +0000 Subject: [PATCH] using ImageList_AddMasked for checkbitmaps.. need to update all the checkbitmaps accordingy git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1070 212acab6-be3b-0410-9dea-997c60f758d6 --- Source/exehead/Ui.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/Source/exehead/Ui.c b/Source/exehead/Ui.c index 91465660..a0d968d0 100644 --- a/Source/exehead/Ui.c +++ b/Source/exehead/Ui.c @@ -1001,14 +1001,9 @@ static BOOL CALLBACK SelProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPar SetWindowLong(hwndTree1,GWL_WNDPROC,(DWORD)newTreeWndProc); if (hImageList) ImageList_Destroy(hImageList); - hImageList = ImageList_Create(16,16, ILC_COLOR32, 4, 4); - // From MSDN: - // Sets the background color for an image list. This function only works if you add an icon or use - // ImageList_AddMasked with a black and white bitmap. Without a mask, the entire image is drawn; - // hence the background color is not visible. - //ImageList_SetBkColor(hImageList, GetSysColor(COLOR_WINDOW)); - ImageList_Add(hImageList,hBMcheck1,NULL); + hImageList = ImageList_Create(16,16, ILC_COLOR32|ILC_MASK, 6, 0); + ImageList_AddMasked(hImageList,hBMcheck1,RGB(255,0,255)); TreeView_SetImageList(hwndTree1, hImageList, TVSIL_STATE);