Solved

VC++ Group Box

Posted on 2006-11-17
1
295 Views
Last Modified: 2013-11-20
Hi,

Can add a group box having more than five sides to a dialog.  The group box will look like this:

|-------------------------------------
|                                             |
|                                             |
|                         |----------------
|                         |
|                         |
|---------------------

Thanks
0
Comment
Question by:pbsmbc
1 Comment
 
LVL 19

Accepted Solution

by:
mrwad99 earned 125 total points
ID: 17967246
Not using the standard resource editor group box control you cant.

However, if you want to take the time, you can develop a shape similar to the above by doing the following:

1) Add a picture control to your dialog, and change the edge to be "etched" in the properties window.

2) To get a vertical edge, resize the picture control so it appears as a vertical edge by moving either the left or right side to the opposite side.

3) Add another picture control, again with an etched edge.  To get a horizontal edge, drag the top or the bottom of the picture control down or up respectively so that you end up with a horizontal edge.

Create more horizontal and vertical edges as required, then position them to make the shape required.

Please see http://img455.imageshack.us/img455/409/egdw3.jpg for a horizontal and vertical edge created in this manner.

HTH
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question