Hello,
I have learnd alot... but there ist still a question / problem....
I want to show an image-file, perhaps a png file with transparency.
I am able to show a bitmapfile, which is include in a window
hbit = SHLoadDIBitmap(hStr);
HWND hWnd;
hWnd = CreateWindow(L"imgClass", L"Dialog", WS_VISIBLE | SS_BITMAP, 0, 0, 50, 50, NULL, NULL, hInstance, NULL);
HWND imgCtrl = CreateWindow( _T("STATIC"), NULL, SS_CENTERIMAGE | SS_BITMAP | WS_CHILD | WS_VISIBLE, 0, 0 , 50, 50, hWnd, NULL, NULL, NULL);
SendMessage(imgCtrl,STM_SETIMAGE, (WPARAM)IMAGE_BITMAP,(LPARAM)hbit);
.....
So is it possible to show a png-file on the screen with no window(form)? Cause the background of the window is grey and not transparent?
Michael