[Win32API] Create Bitmap & Display it

I'm using AngelCode IMG lib to load TGA, which works fine, but I'm having troubles displaying it, here's my code:

it WILL load icon.tga, convert it to ARGB but when I call STM_SETIMAGE nothing hapens, I'm displaying image to static control with SS_BITMAP type, it was working with normal bmp image

-they don't have any documentation

1
2
3
4
5
6
7
8
			acImage::Image img;
			int a = acImage::LoadTga("icon.tga", img);
			if(a < 0)
				MessageBox(hWnd, "Error loading Hero Image!", NULL, MB_ICONERROR); return 0;
			acImage::Image bmpTga;
			acImage::ConvertToARGB(bmpTga, img);
			HBITMAP bmp = CreateBitmap(64, 64, 1, 32, bmpTga.data);
			SendMessage(GetDlgItem(hWnd, IDC_HEROIMAGE), STM_SETIMAGE, IMAGE_BITMAP, (LPARAM)bmp);


any suggestions?
Topic archived. No new replies allowed.