Print Page | Close Window

change color

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Skin Framework
Forum Description: Topics Related to Codejock Skin Framework
URL: http://forum.codejock.com/forum_posts.asp?TID=14739
Printed Date: 22 November 2024 at 7:27pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: change color
Posted By: zaozao
Subject: change color
Date Posted: 14 July 2009 at 4:30am
Hi.
 
I make ribbon MDI app with Skin Framework.
I include "SkinFramework\Styles\Office2007\Office2007.rc" in my ***.rc2 file.
 
And I make control to change GUI color on RibbonBar.
 
 
When I changed GUI color, Only one ListCtrl's header in a modal Daialog changed
like XP Style, and its color didn't change.
Other controls changed rightly.
 



Replies:
Posted By: zaozao
Date Posted: 17 July 2009 at 4:46am
 
Today I tryed to delete  this code.
------------------------------
CXTHeaderCtrl m_header;
 
HWND hWndHeader = (MyListCtrl).GetDlgItem(0)->GetSafeHwnd();
m_header.SubclassWindow(hWndHeader);
CXTHeaderCtrlTheme* pTheme = m_header.GetTheme();
if(pTheme)
{
      DWORD dwStyle = pTheme->GetDrawStyle() & ~XTTHEME_SORTARROW;
      dwStyle |= XTTHEME_SORTARROW;
 
      pTheme->SetDrawStyle(dwStyle, &m_header);
      m_header.RedrawWindow();
}
------------------------------
So, the header changed rightly.
 
But I want to display the sort arrow.
So I can't delete it.
 
 
Please tell me any antidote.



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