Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Skin Framework
  New Posts New Posts RSS Feed - change color
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

change color

 Post Reply Post Reply
Author
Message
zaozao View Drop Down
Groupie
Groupie


Joined: 09 February 2009
Location: Japan
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote zaozao Quote  Post ReplyReply Direct Link To This Post Topic: change color
    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.
 
Back to Top
zaozao View Drop Down
Groupie
Groupie


Joined: 09 February 2009
Location: Japan
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote zaozao Quote  Post ReplyReply Direct Link To This Post 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.
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.141 seconds.