![]() |
GetXtremeColor() never gets initialized |
Post Reply ![]() |
Author | |
TheFlashback ![]() Newbie ![]() Joined: 15 October 2005 Location: United States Status: Offline Points: 4 |
![]() ![]() ![]() ![]() ![]() Posted: 15 October 2005 at 3:33am |
Hi there.. I am trying your DialogSample project, where in CDialogSampleDlg::OnPaint() call I do the following: CPaintDC dc(this); CRect rectClient(0, 0, 0, 0); dc.FillSolidRect(rectC, GetXtremeColor(XPCOLOR_SPLITTER_FACE)); GetXtremeColor() won't work because it does not get initialized. Well, it does in the constructor with the COLORREF_NULL value. Why do i have to do extra steps to initialize the color manager and how I do it at all... I want the dialog to be light blue. Cheers, Serge
Edited by TheFlashback |
|
![]() |
|
Oleg ![]() Senior Member ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
As you can see constructor, it call RefreshColors(); if selected theme is Office 2003 you can use XTPPaintManager()->GetXtremeColor(XPCOLOR_SPLITTER_FACE) to get Office 2003 variant of XPCOLOR_SPLITTER_FACE. |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
TheFlashback ![]() Newbie ![]() Joined: 15 October 2005 Location: United States Status: Offline Points: 4 |
![]() ![]() ![]() ![]() ![]() |
Oh... thanks a bunch.... I did not realize that both PaintManager and ColorManager had two different sets of colors... Is there any reason for having both? Sorry for asking a lot of questions - we've just purchased the tool kit Pro - so I need to get up to speed quickly... Spasibo. |
|
![]() |
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 |