Sign in to follow this  
Megaman_22

Win32 Dialog Boxes with C++

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
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this