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
This commit is contained in:
parent
0e88315840
commit
3950ded6a3
1 changed files with 2 additions and 7 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue