• Advertisement
Sign in to follow this  

dialog boxes and windows c++ win32

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

I am trying to create an application that has a window on the left, which has graphics in it that can be modified by selecting options on the right side. Is there either a way to put buttons in a normal window or to draw in a dialog box?

Share this post


Link to post
Share on other sites
Advertisement
http://www.winprog.net/tutorial/

Depending upon the API. 99% chance that you can put buttons in a normal window or draw in a dialog box.

A dialog after all is really just a window. It has a windows handle (HWND). As for the buttons, you'll just have to manually create them. A button too is just a window. In this case, it's parent windows handle would be the window you want to put the buttons in. The only drawback is that you won't be able to create it via the dialog resource editor.

Share this post


Link to post
Share on other sites
Add a Picture Control to your dialog then grab the HWND of that control via GetDlgItem() and use it for drawing.

Share this post


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

  • Advertisement