Window XP buttons

This is a discussion on Window XP buttons within the Windows Programming forums, part of the Platform Specific Boards category; anyway i can make a button that look like the style in window xp ??? can teach mi the coding ...

  1. #1
    Registered User
    Join Date
    Apr 2002
    Posts
    77

    Window XP buttons

    anyway i can make a button that look like the style in window xp ???
    can teach mi the coding i need ???

  2. #2
    Pygmy Monkey ErionD's Avatar
    Join Date
    Feb 2002
    Posts
    408
    If you are using XP it will look like that automatically.
    Otherwise, you prolly need to take a screenshot of one and load it into a rect or something. I dont know.

  3. #3
    Registered User
    Join Date
    Feb 2002
    Posts
    57
    yea, it depends on the OS what the button will look like. I have only had W98 and now have XP HE. If you put the button code (ask if you need) it will appear like XP wants it too. If you want some kind of special button off of XP you will have to make a screen shot of your screen(press printscr on your keyboard). Go to MS Paint or photoshop or something and press CTRL + V. Cut out everything except the button. Then load the bitmap/jpg to your game/prrogram and check if it was clicked somehow, in thatdimensions. or maybe a CBITMAPBUTTON that everyone talks about, but i dont know how to use .

    Hope this helps
    Language: C++
    Compiler: Visual C++ 6.0
    Currently Working On: Simple OpenGL aspects

  4. #4
    Registered User
    Join Date
    Feb 2002
    Posts
    57
    yea, it depends on the OS what the button will look like. I have only had W98 and now have XP HE. If you put the button code (ask if you need) it will appear like XP wants it too. If you want some kind of special button off of XP you will have to make a screen shot of your screen(press printscr on your keyboard). Go to MS Paint or photoshop or something and press CTRL + V. Cut out everything except the button. Then load the bitmap/jpg to your game/prrogram and check if it was clicked somehow, in thatdimensions. or maybe a CBITMAPBUTTON that everyone talks about, but i dont know how to use .

    Hope this helps
    Language: C++
    Compiler: Visual C++ 6.0
    Currently Working On: Simple OpenGL aspects

  5. #5
    www.entropysink.com
    Join Date
    Feb 2002
    Posts
    605
    Wow, did anyone else hear that echo??
    Visit entropysink.com - It's what your PC is made for!

  6. #6
    www.entropysink.com
    Join Date
    Feb 2002
    Posts
    605
    Wow, did anyone else hear that echo??
    Visit entropysink.com - It's what your PC is made for!

  7. #7
    Used Registerer jdinger's Avatar
    Join Date
    Feb 2002
    Posts
    1,065
    I didn't hear anything

  8. #8
    Used Registerer jdinger's Avatar
    Join Date
    Feb 2002
    Posts
    1,065
    ...anything....







    Seriously though, MonkeyMon. Just blit an image of the button
    where you would have your button. Then use PtInRect whenever
    you get a WM_LBUTTONDOWN message and if your ptMouse is
    inside the button rect execute your code.
    Last edited by jdinger; 04-29-2002 at 10:44 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C or C++
    By AcerN30 in forum Game Programming
    Replies: 41
    Last Post: 05-30-2008, 06:57 PM
  2. Pong is completed!!!
    By Shamino in forum Game Programming
    Replies: 11
    Last Post: 05-26-2005, 10:50 AM
  3. Question..
    By pode in forum Windows Programming
    Replies: 12
    Last Post: 12-19-2004, 06:05 PM
  4. white border on XP Buttons
    By Rare177 in forum Windows Programming
    Replies: 3
    Last Post: 06-11-2004, 01:19 AM
  5. OpenGL and Windows
    By sean345 in forum Game Programming
    Replies: 5
    Last Post: 06-24-2002, 10:14 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21