Bitmap in about box
Hi, I'm using Dev-C++ 18.104.22.168 and i wrote some windows api stuff in the resource script to show an about box:
I want to show a bitmap in this about box but I don't know how. Please help.
IDD_ABOUT DIALOG DISCARDABLE 0, 0, 250, 100
STYLE DS_MODALFRAME | DS_CENTER | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "About This program"
FONT 8, "MS Sans Serif"
You can add a BMP in the resource editor if it is included in the app's resources
you can load it from file with LoadImage() ect and draw it to the screen.
I would start with the rescource editor as windows will then handle the WM_PAINT for the image.