Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Setting groupbox background color?

2 views
Skip to first unread message

Dexter Sinister

unread,
Nov 1, 1998, 3:00:00 AM11/1/98
to
I have a property page object with a groupbox on it. I want to be able
to set the background color of the groupbox on the fly. The point of
this is to output examples of text settings (font, foreground color,
background color) in the groupbox.

I cannot figure out how to set the background color of the entire
groupbox. Any hints would be very much appreciated.

I am using Visual C++ v5.0 w/ MFC.

-- Daniel McNulty (remove "no.spamola." to reply)
no.spamola....@lotus.com


Chris Marriott

unread,
Nov 1, 1998, 3:00:00 AM11/1/98
to

Dexter Sinister wrote in message <363C943C...@lotus.com>...

>I have a property page object with a groupbox on it. I want to be able
>to set the background color of the groupbox on the fly. The point of
>this is to output examples of text settings (font, foreground color,
>background color) in the groupbox.
>
>I cannot figure out how to set the background color of the entire
>groupbox. Any hints would be very much appreciated.

Groupbox controls don't HAVE a background colour - they are just a "frame"
with a transparent interior. One solution would be to put an empty static
text control on the dialog, then put the groupbox on top of it. Set the
colour of the static control in the usual way.

Chris
-----------------------------------------------------------------------
Chris Marriott, SkyMap Software, UK (ch...@skymap.com)
Visit our web site at http://www.skymap.com
Astronomy software written by astronomers, for astronomers


0 new messages