Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

CreateIconIndirect and mask

ChirieacChirieac Member Posts: 1
Hello! I've tried to create an icon from two gdi+ bitmaps and I can't make the icon transparent.
Here's my code:
[code]ICONINFO iconInfo = {0}; iconInfo.fIcon = TRUE;
bmp.GetHBITMAP(Color(255,0,0), &iconInfo.hbmColor);
bmp2.GetHBITMAP(Color(255,0,0), &iconInfo.hbmMask);
HICON hIcon = CreateIconIndirect(&iconInfo);[/code]
It seems that hbmMask is not set. Why?

Bye!
Sign In or Register to comment.