![]() |
Getting Theme Gradiant Colors |
Post Reply ![]() |
Author | |
dedvalson ![]() Groupie ![]() Joined: 10 April 2008 Status: Offline Points: 21 |
![]() ![]() ![]() ![]() ![]() Posted: 10 April 2008 at 2:05pm |
Hi,
I am moving an existing MFC app to XTP and I have run into one issue I haven't seen addressed in the samples.
I have windows that I draw and manage myself that I wish to have the same gradient that is used on command bars on.
Thus I would like to get access to the colors used to draw the gradiants on the command bars, or better yet a function that will just draw that background for me.
I saw the various Fill methods in the CXTPPaintManager, but I need one that I can hand a basic CWnd to. Or I need to get the colors to draw it myself, but those colors need to change when the theme changes.
Any suggestions??
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
Get color using
CXTPPaintManagerColorGradient& clr = ((CXTPOffice2003Theme*)XTPPaintManager())->m_clrCommandBar;
fill with
XTPDrawHelpers()->GradientFill(pDC, rcFill, clr, TRUE);
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |