Thread: Using a bitmap on a Dialog box

  1. #1
    Emotionally Unstable DarkViper's Avatar
    Join Date
    Oct 2002
    Posts
    343

    Using a bitmap on a Dialog box

    i dont have MSVC++ so i have to manually add the code in, and i was wondering if you WindowsProgramming gurus can help me with this.
    Code:
    IDD_MBLUR DIALOG 150, 0, 264, 150
    STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
    CAPTION "Add: Motion Blurred Text"
    FONT 8, "Comic Sans MS"
    BEGIN
        DEFPUSHBUTTON "OK",IDOK,207,7,50,14
        PUSHBUTTON "Cancel",IDCANCEL,207,24,50,14
        PUSHBUTTON "&Help", G_HELP, 207,41,50,14
        CTEXT "Adding a motion blue? Edit these properties!",IDC_STATIC,7,7,173,18
        GROUPBOX "&Properties",IDC_STATIC,13,30,166,34
        EDITTEXT M_COLOR,57,43,40,14
        LTEXT "Color:",IDC_STATIC,35,45,20,8
        EDITTEXT M_DIR,150,43,20,14
        LTEXT "Direction:",IDC_STATIC,115,45,30,8
        GROUPBOX "&Text",IDC_STATIC,13,70,215,47
        CTEXT "Text To Appear Glowing",IDC_STATIC,50,80,110,8
        EDITTEXT M_TEXT,20,90,200,14,ES_AUTOHSCROLL
    END
    right? real basic stuff, i wanna know, how do i add the bitmap
    images/warped.bmp
    to anywhere i want on the dialog box?



    god, my world for a better computer for MSVC++

    i need to know what the code is, like if i just add the word BITMAP then in double quotes type in the path, give a declaration of its handle and then the position and size. or if i need to do something a little more complicated than that?

    i need help here to turn a boring looking program into something a little more "attractive"
    ~DJ DarkViper signing out
    ----------------------------------------
    My Site:
    Black Jaguar Studios

    Languages:
    Fluent English, Starter German, HTML, Javascript, Actionscript, Intermediate PHP

    Verteran Despiser of: ASP, Java, BASIC, Pascal, Cobalt

  2. #2
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    Okay, well I'm not at my computer right this second I don't have the exact docs (or any of my source) in front of me.

    Code:
    MyBitmap BITMAP "images/warped.bmp"
    /* this may need to be images\\warped.bmp on some compilers. */
    
    // now put something like this in your dialog
    
    control "MyBitmap", IDC_WHATEVER, "static", 0, 0, 30, 30, SS_BITMAP
    I think that is correct, msdn will surely set you straight.

  3. #3
    Emotionally Unstable DarkViper's Avatar
    Join Date
    Oct 2002
    Posts
    343
    thanks master, ill definitly give that a try ^_^

    btw, i use Bloodshed Dev C++
    ~DJ DarkViper signing out
    ----------------------------------------
    My Site:
    Black Jaguar Studios

    Languages:
    Fluent English, Starter German, HTML, Javascript, Actionscript, Intermediate PHP

    Verteran Despiser of: ASP, Java, BASIC, Pascal, Cobalt

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need help with Bitmap Display
    By The Brain in forum Windows Programming
    Replies: 7
    Last Post: 03-23-2009, 05:33 AM
  2. Replies: 9
    Last Post: 02-13-2008, 02:59 PM
  3. Drawing a bitmap on a dialog box?
    By JeremyCAFE in forum Windows Programming
    Replies: 0
    Last Post: 04-12-2006, 09:55 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