I know how to load a bitmap from the resource and display it, but how can I display a bitmap with a transparent color?
And one more thing, do I need to keep the loaded object till the end of the program, or can I delete it once the STM_SETIMAGE is sent?Code:static HBITMAP hBmp_Background; HWND hBmpStat; hBmp_Background = LoadBitmap(ghInstance, MAKEINTRESOURCE(ID_BMPBG)); hBmpStat = CreateWindowEx(NULL, "Static", "", WS_VISIBLE | WS_CHILD | SS_BITMAP, 0, 0, 0, 0, hwnd, NULL, ghInstance, NULL); SendMessage(hBmpStat, STM_SETIMAGE, IMAGE_BITMAP, (LPARAM) hBmp_Background);
Thank you.



LinkBack URL
About LinkBacks


