473,388 Members | 1,574 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

MFC group box question

Hi,

i am working on a small MFC dialog based application.
a number of controls belongs together and i want to enable / disable them
together.

i thought i'd use a group box, just as you'd do in a C# application, but i
just can't find any way
to use the group box as anything other than a decoration.

do i have to do everything manually? i have tried selecting everything and
then setting the group property to true, but that didn't seem to do
anything.

kind regards,
Bruno.
Dec 20 '05 #1
2 2467
>i am working on a small MFC dialog based application.
a number of controls belongs together and i want to enable / disable them
together.

i thought i'd use a group box, just as you'd do in a C# application, but i
just can't find any way
to use the group box as anything other than a decoration.


Bruno,

That's normal in an MFC/SDK application. You can do it by re-parenting
each control (use SetParent) to have the group box as its parent, but
doing so can give rise to some quirks (I can't remember exactly what
they were, other than there were some), so I wouldn't recommend doing
it. Where I have such situations, I usually write code to
enable/disable a set of control IDs in an array.

Dave
Dec 21 '05 #2
This article may be interesting to you. It's a different approach, but...

http://www.codeguru.com/Cpp/Cpp/cpp_...int.php/c4149/

Tom

"Bruno van Dooren" <br**********************@hotmail.com> wrote in message
news:uP*************@TK2MSFTNGP09.phx.gbl...
Hi,

i am working on a small MFC dialog based application.
a number of controls belongs together and i want to enable / disable them
together.

i thought i'd use a group box, just as you'd do in a C# application, but i
just can't find any way
to use the group box as anything other than a decoration.

do i have to do everything manually? i have tried selecting everything and
then setting the group property to true, but that didn't seem to do
anything.

kind regards,
Bruno.

Dec 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: David Jackson | last post by:
Howdy -- <Rant> It's a common problem when trying to install apps like this on hosted (virtual host) sites, that the app wants to run as the Apache user/group. Inlcuding wrx permissions on...
1
by: Angela | last post by:
This question is in reference to another question I posted titled, "This advertised application will not be installed because it might be unsafe". The error I am getting says I need to change...
2
by: Tom Loach | last post by:
Our system administrator set up an NT server group in order to allow our users to login to our application via https to our sql server. The group appears as a User in SQL Server when you look at...
10
by: Randy | last post by:
I have asked a number of questions as a newbie trying to learn Access. Some folks have been very helpful with very direct and simple answers that help alot. Others give me answers with extensive...
1
by: David Horowitz | last post by:
Hi folks. I need to create a report that has a Group Header that pulls certain data from the Detail section. It's something like this: +--Report---------------------------------------- |...
17
by: Balaji K | last post by:
Hi Y'all, There is a new community for C# developers@ http://groups.msn.com/IndiaCSharpDevelopersGroup This is a forum for C# Developers and those who wish to become C# Developers. Just about...
17
by: TC | last post by:
In the past I always regarded user/group security as fairly tight. It is tricky to implement, but once implemented properly, it can't be cracked except through a dedicated effort. Recently,...
6
by: MM | last post by:
Hello users. I have a query that I can run and see the result on the grid on design time, but when i run the program i get the folowing message:ORA-00979: not a GROUP BY expression. When I run the...
3
by: Duncan A. McRae | last post by:
I am trying to find a simple answer to, "if I use LINQ against tables, must I give the webuser datareader/datawriter permissions in SQL Server?". I see the question asked repeatedly, but instead...
4
by: SjaakBanaan | last post by:
Hey all, I have a question that ought to be simple but has given me headaches for a while. I have a table with contact email addresses, say. T ID ContID Priority Emailaddress...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.