I have a really weird problem here. I have made a 'splash' screen using the resource editor from Visual C++. It's nothing more than a dialog with only a bitmap on it, and this works fine. But I thought: let's add a small text label below the bitmap, with the version number. I add the label, save the file as .rc and as .res, run pbres, compile the program, and guess what? The bitmap isn't visible anymore! Only the text label I added. When I remove the label (and save the file as .rc and as .res, run pbres, compile the program), the bitmap shows up again. Adding any control to the dialog makes the bitmap disappear.
I use the following to display the splash screen:
#RESOURCE "icon.pbr" 'contains the dialog, the used bitmap
'and some icons
%IDD_DIALOG1 = 101 'id of the dialog
hSplash& = CreateDialog(CurInst, BYVAL CLNG(%IDD_DIALOG1), 0,_
CODEPTR(Splash))
ShowWindow hSplash&, %SW_SHOWNORMAL
Am I doing something wrong?
All the best,
Harmen Mesker.
I use the following to display the splash screen:
#RESOURCE "icon.pbr" 'contains the dialog, the used bitmap
'and some icons
%IDD_DIALOG1 = 101 'id of the dialog
hSplash& = CreateDialog(CurInst, BYVAL CLNG(%IDD_DIALOG1), 0,_
CODEPTR(Splash))
ShowWindow hSplash&, %SW_SHOWNORMAL
Am I doing something wrong?
All the best,
Harmen Mesker.
Comment