Print Page | Close Window

Manifiest & office2003 theme

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=1480
Printed Date: 07 November 2025 at 1:44am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Manifiest & office2003 theme
Posted By: Cusco
Subject: Manifiest & office2003 theme
Date Posted: 01 December 2004 at 2:34am

In the CommonControls sample program, I modified the thema into office2003 theme..

but Windows common controls didn't work..

I think because using manifest....But I wanna set the office2003 theme including the windows common controls...in the toolbar...( in anything else, wanna use manifest)

How can i do?...Please, reply my question...

 




Replies:
Posted By: Cusco
Date Posted: 01 December 2004 at 6:35pm

I tested the CommonControls sample program, after remove the manifest...

SliderCtrl, CheckBox are didn't work..in office2003 theme..

I wanna set the program to office2003 theme (sliderCtrl, CheckBox)...Help me..

Please....reply ...



Posted By: Oleg
Date Posted: 02 December 2004 at 3:02am

What does it mean "are didn't work"? You can't click them?

Or its mean you want to set backcolor? Or what?



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Cusco
Date Posted: 02 December 2004 at 3:22am

its mean i wanna set backcolor to office2003 theme style...



Posted By: Oleg
Date Posted: 02 December 2004 at 4:03am

You must reflect WM_CTLCOLOR message and returns brush:


BEGIN_MESSAGE_MAP(CButtonOptions, CButton)
 //{{AFX_MSG_MAP(CButtonOptions)
 ON_CONTROL_REFLECT(BN_CLICKED, OnOptionShow)
 ON_WM_CTLCOLOR_REFLECT()
 //}}AFX_MSG_MAP
END_MESSAGE_MAP()

afx_msg HBRUSH CButtonOptions::CtlColor ( CDC* pDC, UINT nCtlColor )
{
 static CBrush brush;
 static COLORREF clr = 0;
 
 if (clr != XTPPaintManager()->GetXtremeColor(XPCOLOR_3DFACE))
 {
  clr = XTPPaintManager()->GetXtremeColor(XPCOLOR_3DFACE);
  brush.DeleteObject();
  brush.CreateSolidBrush(clr); 
 }
 pDC->SetBkColor(clr);

 return brush;
}

 

same for CSliderCtrl:


class CSliderCtrlEx : public CSliderCtrl
{
protected:
 HBRUSH CtlColor ( CDC* pDC, UINT nCtlColor );
  
protected:
 DECLARE_MESSAGE_MAP()
};

 

BEGIN_MESSAGE_MAP(CSliderCtrlEx, CSliderCtrl)
 //{{AFX_MSG_MAP(CButtonOptions)
 ON_WM_CTLCOLOR_REFLECT()
 //}}AFX_MSG_MAP
END_MESSAGE_MAP()


afx_msg HBRUSH CSliderCtrlEx::CtlColor ( CDC* pDC, UINT nCtlColor )
{
 static CBrush brush;
 static COLORREF clr = 0;
 
 if (clr != XTPPaintManager()->GetXtremeColor(XPCOLOR_3DFACE))
 {
  clr = XTPPaintManager()->GetXtremeColor(XPCOLOR_3DFACE);
  brush.DeleteObject();
  brush.CreateSolidBrush(clr); 
 }
 pDC->SetBkColor(clr);

 return brush;
}

 



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Ark42
Date Posted: 02 December 2004 at 4:48pm

Can you get the gradient to show through for the Office 2003 theme or just a solid color?



Posted By: Oleg
Date Posted: 06 December 2004 at 7:18am

Just solid :(

 



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Ark42
Date Posted: 06 December 2004 at 10:40am

Is there a way to reflect the null brush / set transparent to true like you can with a Dialog to have a bitmap or gradient background show through? I thought there was a thread here not that long ago where that was shown to be possible, but with the Command bars this will not work?
For some reason, I use a lot of CSliderCtrl's on my toolbars and they have to have grey boxes around them for now.




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