Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Xas

How developp my own GUI with Visual C++?

This topic is 6868 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Advertisement
Guest Anonymous Poster
Also, I am making a GUI, but not for a specific game. I would appreciate any input people may have. The site is www.inet.net.nz/~dmitchell .

Thanks

Share this post


Link to post
Share on other sites
I think there's two ways to do it.

The first way is what you described - basically bending the Win32 API to support cool GUI stuff. This might mean using bitmaps as window backgrounds, subclassing controls, etc. Goods: (Presumably) less code than the other method. Bads: There are some things that are practically impossible to do (alpha blts), and you have to deal with the sluggishness of GDI.

The second way is to just create a windowed DirectDraw app and then strip off its title bar. Pluses: By using DDraw, you can do anything - complex animation, nifty alpha effects, etc. Minuses: Lots of code. You've got to redo most of the GUI processing (animating the button clicks, figuring out what button the moues cursor hit, etc). If you go this way, my GUI articles should be able to help you.

It *might* be possible to use some bizarre combination of (invisible) controls and windowed DirectDraw, so as to trick Windows into sending you the correct WM_COMMANDs, but I've never done it, so I don't know how difficult it would be.

Hope it helps...

Mason McCuskey
Spin Studios
www.spin-studios.com

Share this post


Link to post
Share on other sites
I'm trying to program an application with my own user interface (like Sonique, for example) and I need some tips...
Is it only programming window with Region functions or CreateWindow with BS_BITMAP style for button ? Or are there others ways (for example, again in Sonique, how animate the 'close' button, or 'minimize' button...

Ok, i hope my english is comprehensive, and sorry for fault...

Thanks,
Xas

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!