Thread: Bitmap in about box

  1. #1
    Registered User
    Join Date
    Jan 2002
    Location
    Vancouver
    Posts
    2,212

    Bitmap in about box

    Hi, I'm using Dev-C++ 4.9.6.7 and i wrote some windows api stuff in the resource script to show an about box:

    Code:
    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"
    BEGIN
        
        PUSHBUTTON "&Okay",IDC_AOK,100,85,51,14
    END
    I want to show a bitmap in this about box but I don't know how. Please help.

  2. #2
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,868
    You can add a BMP in the resource editor if it is included in the app's resources

    or

    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.
    "Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
    Friedrich Nietzsche

    "I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
    George Best

    "If you are going through hell....keep going."
    Winston Churchill

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 9
    Last Post: 02-13-2008, 02:59 PM
  2. How to program a "back" button with MFC
    By 99atlantic in forum Windows Programming
    Replies: 3
    Last Post: 04-26-2005, 08:34 PM
  3. OpenGL -- Bitmaps
    By HQSneaker in forum Game Programming
    Replies: 14
    Last Post: 09-06-2004, 04:04 PM
  4. New Theme
    By XSquared in forum A Brief History of Cprogramming.com
    Replies: 160
    Last Post: 04-01-2004, 08:00 PM
  5. Tab Controls - API
    By -KEN- in forum Windows Programming
    Replies: 7
    Last Post: 06-02-2002, 09:44 AM