Hallo,
I am trying to make a splash screen for my application, but the window that the splash screen should be in is transparent for some reason. Anyone experienced the same?
The image I am loading is located at the correct place, as I am loading it later on with the exact same code, and it works then
Here is code that I think is relevant:
Code:
HWND splashScreen = CreateWindowEx( WS_EX_CLIENTEDGE,"STATIC","",
WS_POPUP|WS_DLGFRAME|SS_BITMAP,xPos,yPos,xSize,ySize,
hWnd,NULL,(HINSTANCE)GetWindowLong(hWnd, GWL_HINSTANCE),NULL);
// Load the picture for the splash screen
SendMessage( splashScreen, BM_SETIMAGE, IMAGE_BITMAP,
(LPARAM)LoadImage(NULL, TEXT("UI\\newFilmButton.bmp"), IMAGE_BITMAP,100,50,LR_LOADFROMFILE));
// Show the splash screen
ShowWindow(splashScreen,SW_SHOWNORMAL);
UpdateWindow(splashScreen);
Thanks,