anyway i can make a button that look like the style in window xp ???
can teach mi the coding i need ???
anyway i can make a button that look like the style in window xp ???
can teach mi the coding i need ???
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.
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
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
Wow, did anyone else hear that echo??
Visit entropysink.com - It's what your PC is made for!
Wow, did anyone else hear that echo??
Visit entropysink.com - It's what your PC is made for!
...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.