Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - Sort Column Arrow Color
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Sort Column Arrow Color

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


Joined: 28 February 2007
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote Kurisu Quote  Post ReplyReply Direct Link To This Post Topic: Sort Column Arrow Color
    Posted: 08 March 2007 at 12:38pm
Hello, just wondering if there was an easy/semi-easy way to draw the arrow in the sort column as a different color..

I noticed the CXTPPaintManager has a Triangle() method..

If this is what I need where would I get the Point coordinates from?

If there is some simple function call or variable somewhere that allows me to change the arrow color that I overlooked.. please tell me

Thanks.

(Just started using XTP... very very nice )
Back to Top
Kurisu View Drop Down
Newbie
Newbie


Joined: 28 February 2007
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote Kurisu Quote  Post ReplyReply Direct Link To This Post Posted: 21 March 2007 at 6:33pm
 
Back to Top
sserge View Drop Down
Moderator Group
Moderator Group


Joined: 01 December 2004
Status: Offline
Points: 1297
Post Options Post Options   Thanks (0) Thanks(0)   Quote sserge Quote  Post ReplyReply Direct Link To This Post Posted: 22 March 2007 at 5:30pm
Hi,

Sorry, missed your question.

Yes, this arrow is drawn with this method. If you look inside, you'll see that the triangle is drawn using regular user's Windows colors: color variables are initialized from COLOR_3DHIGHLIGHT and COLOR_3DSHADOW. (details there: http://msdn2.microsoft.com/en-us/library/ms724371.aspx)

However, same colors are used to draw background and a foreground of the column header. So far, to change only triangle's color, you have to set another color values inside the method:

// Set up pens to use for drawing the triangle
CPen penLight(PS_SOLID, 1, m_clrControlLightLight);
CPen penShadow(PS_SOLID, 1, m_clrControlDark);


Then rebuild the library and your application.

--
WBR,
Serge
Back to Top
Kurisu View Drop Down
Newbie
Newbie


Joined: 28 February 2007
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote Kurisu Quote  Post ReplyReply Direct Link To This Post Posted: 24 March 2007 at 9:23pm
Thanx... much appreciated. 
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.