Results 1 to 2 of 2

Thread: Urgent!!

  1. #1

    Thread Starter
    Hyperactive Member AAG's Avatar
    Join Date
    Aug 2000
    Location
    United States
    Posts
    411

    Exclamation

    Hello All,
    I need some help on creating a graphical button. preferably the way winamp goes about doing theres, i know how to bitblt. but i am unsure if your supposed to use an owner-draw button, or actually load the bitmap and handle when the mouse is over the image, and bitblt it according to what the mouse is doing at that time. i use pure api and hate to use mfc. i feel that it takes away from the fun of c++. i use borland 5.0 c++ compiler. if someone could please direct to a simple program that uses bitblt buttons or if u could instruct me on how to do this. it doesn't matter which way you would like to show. either an owner drawn button or other.., i will be gratefull for either. as long as the focus rectangle does not show. thanx

  2. #2
    Frenzied Member Technocrat's Avatar
    Join Date
    Jan 2000
    Location
    I live in the 1s and 0s of everyones data streams
    Posts
    1,024
    I answered your other BitBlt question, so you may not have this question anymore but....

    With Winamp their buttons are just bitmaps on a window, and they have a huge matrix of button X and Ys positions. So when a user clicks on the window it looks to see if it fits into the X and Y of a button. If it does then it BitBlt the button's down bitmap to that location, till the button is released. If the button is released and the mouse is still in the buttons X and Y pos it runs what ever that button does. Thats why when you look at Winamp skins there are bitmaps for the buttons up and down.

    I have made a skinable winamp copy before thats how I know.
    MSVS 6, .NET & .NET 2003 Pro
    I HATE MSDN with .NET & .NET 2003!!!

    Check out my sites:
    http://www.filthyhands.com
    http://www.techno-coding.com


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