Results 1 to 4 of 4

Thread: Putting a .bmp on a button and playing a MP3

  1. #1
    Guest

    Post

    How do i put a .bmp onto a button? And how do i play MP3 files?

  2. #2
    Frenzied Member Vlatko's Avatar
    Join Date
    Aug 2000
    Location
    Skopje, Macedonia
    Posts
    1,409
    To put an icon on a button check the button's bitmap check box and thn add this code
    Code:
    HBITMAP hBit = (HBITMAP)LoadImage(NULL,"C:\\windows\\bubbles.bmp",IMAGE_BITMAP,0,0,LR_LOADFROMFILE);
    butt1.SetBitmap (hBit);  //butt1 is the var for
    //This is for MFC only
    I am become death, the destroyer of worlds.
    mail:vlatkovr@hotmail.com

    • Visual Basic 6.0 & .NET
    • Visual C++ 6.0 & .NET
    • ASP
    • LISP
    • PROLOG
    • C
    • Pascal

  3. #3
    Guest
    Here is a zip file that says how to decode and play MP3 files without using any DLL's


    BTW, to make a button have a pic on it, you would have to use te GetDC API on the hWnd of a button, then BitBlt the pic onto it...

    [Edited by denniswrenn on 11-13-2000 at 02:39 PM]

  4. #4
    Guest
    Vlatko, im not using MFC.
    Dennis, thanks ill check it out.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width