Jump to content
  • Advertisement
Sign in to follow this  
Megaman_22

Win32 Dialog Boxes with C++

This topic is 4449 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

Hi, I'm kind of blundering my way through a project right now, and I need to figure out how to make an input dialog box using Win32 API calls and C++. What I'd really like to be able to do is have a bitmap for the background, with all the buttons and fields drawn on, but I'm not sure how to implement a text field the user could type into, or how to create the dialog box itself. I've looked around a little bit, but the only information I've found is on using the MFC, which I don't seem to have with Borland C++ Builder, and some vague instructions on using a DialogBox macro and some kind of template resource. If somebody could give me a comprehensive explanation of how to do this, I would be grateful. [Edited by - Megaman_22 on October 6, 2006 8:03:23 AM]

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
http://winprog.org/tutorial/ has a few good tutorials on the subject. It doesn't cover bitmap backgrounds though.

Share this post


Link to post
Share on other sites
To have a bitmap background, process the WM_ERASEBKGND message in the dialog's window procedure (DLGPROC). Don't forget to return TRUE if you process the message.

Skizz

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

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

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!