Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - CXTResizeGroupBox Background Color
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTResizeGroupBox Background Color

 Post Reply Post Reply
d324 View Drop Down

Joined: 16 April 2007
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote d324 Quote  Post ReplyReply Direct Link To This Post Topic: CXTResizeGroupBox Background Color
    Posted: 09 April 2010 at 6:39am

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.

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

This page was generated in 0.055 seconds.