visual c++ - Group box with title as Check box -


I am using Visual Studio 6.0 (VC ++ with MCC) in the Windows XP platform. I am trying to create a group box with the title of the group box as a check box. My intention is this: If the check box is enabled, the control inside the group box should be enabled; Or disable.

Is this possible? If yes, then please give me some directions.

Thank you.

a

simple way

of a normal group Use, how much you want to be true in your thoughts and how much effort you put into the effort:

box, and then the first item in it is the checkbox. It is easy to complete, but you lose the goal of keeping the checkbox as a title.

Funky drawing method 1

Use the normal group box, then place your checkbox in the place where you know the title to go,

funky drawing Method 2

Use some form on the group box or / or use any type. You can override the WM_PAINT handler to draw only the frame for the group box. Place a generic checkbox at the place where you know the title is going to go. It should work better because you will have more control over the drawing, but it can be difficult to get it right. In my experience, there is less risk to implement sub-clinging with super-clasing.


Comments

Popular posts from this blog

c++ - Linux and clipboard -

What is expire header and how to achive them in ASP.NET and PHP? -

sql server - How can I determine which of my SQL 2005 statistics are unused? -