Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Manifiest & office2003 theme
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Manifiest & office2003 theme

 Post Reply Post Reply
Author
Message
Cusco View Drop Down
Newbie
Newbie


Joined: 30 June 2004
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote Cusco Quote  Post ReplyReply Direct Link To This Post Topic: Manifiest & office2003 theme
    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...

 

Back to Top
Cusco View Drop Down
Newbie
Newbie


Joined: 30 June 2004
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote Cusco Quote  Post ReplyReply Direct Link To This Post 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 ...

Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Cusco View Drop Down
Newbie
Newbie


Joined: 30 June 2004
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote Cusco Quote  Post ReplyReply Direct Link To This Post Posted: 02 December 2004 at 3:22am

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

Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Ark42 View Drop Down
Senior Member
Senior Member
Avatar

Joined: 20 October 2003
Status: Offline
Points: 291
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ark42 Quote  Post ReplyReply Direct Link To This Post 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?

Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 06 December 2004 at 7:18am

Just solid :(

 

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Ark42 View Drop Down
Senior Member
Senior Member
Avatar

Joined: 20 October 2003
Status: Offline
Points: 291
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ark42 Quote  Post ReplyReply Direct Link To This Post 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.

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.062 seconds.