Print Page | Close Window

CXTResizeGroupBox Background Color

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=16564
Printed Date: 25 April 2024 at 4:11pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTResizeGroupBox Background Color
Posted By: d324
Subject: CXTResizeGroupBox Background Color
Date Posted: 09 April 2010 at 6:39am
Hi,

I'm trying to make a CXTResizeGroupBox control that I created dynamically either transparent or to have the same background color as the main window.
(I'm creating the control inside an OCX.)

I created the control with:
m_gbGroup1.Create(_T("Group 1"), WS_CHILD | WS_VISIBLE | BS_GROUPBOX, CRect(5, 5, 100, 60), this, IDC_GROUPBOX_1);

I tried adding WS_EX_TRANSPARENT and failed.
I also tried setting the background color in WM_CTLCOLOR handler, but only the caption's background is changed and the rest of the control is not.

Any help would be appreciated.
Thanks.

Regards,
Kuan



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net