Need to change color for --> ::GetSysColor(COLOR_BTNFACE)

Hi, I do have a line of code like this

pDC->FillSolidRect(rcLeftGutter, ::GetSysColor(COLOR_BTNFACE));

I need to change the GetSysColor(COLOR_BTNFACE) to &H00E7E7E6&

Is there any possible way to do so?

I am really newbiew to MFC. Sorry if this question is too stupid for you guys.

Please advice. Thanks in advance.
LVL 1
cybehAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

jkrCommented:
Are you thinking of

pDC->FillSolidRect(rcLeftGutter, RGB(E7,E7,E6));

?
Jaime OlivaresSoftware ArchitectCommented:
I guess it would be:
pDC->FillSolidRect(rcLeftGutter, RGB(0xE7,0xE7,0xE6));
Jaime OlivaresSoftware ArchitectCommented:
But I think you can use directly:
pDC->FillSolidRect(rcLeftGutter, 0x00E7E7E6);

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
CompTIA Network+

Prepare for the CompTIA Network+ exam by learning how to troubleshoot, configure, and manage both wired and wireless networks.

cybehAuthor Commented:
Thanks...That's what I need.
cybehAuthor Commented:
Sorry jaime....jkr answer the question 1st.
cybehAuthor Commented:
Ooops...

RGB(E7,E7,E6) not equal to &H00E7E7E6&

RGB need to be in 0 - 255
the euqalvalant of &H00E7E7E6& is GRB ( 231, 231, 230)
Jaime OlivaresSoftware ArchitectCommented:
So, tell me:
Does pDC->FillSolidRect(rcLeftGutter, RGB(E7,E7,E6)) works anyway?
Is pDC->FillSolidRect(rcLeftGutter, 0x00E7E7E6) what you need?
cybehAuthor Commented:
Is that still possible to split the point 50% of the points to jaime? Seems like he gave the most accurate answer.
Jaime OlivaresSoftware ArchitectCommented:
Yes, you can, I will tell Community Support
jkrCommented:
No objections against a split :o)

What a pity a PE can't do that, so I would.
cybehAuthor Commented:
Actually both method works fine.

pDC->FillSolidRect(rcLeftGutter, GRB ( 231, 231, 230))
pDC->FillSolidRect(rcLeftGutter, 0x00E7E7E6)

Just that, the 2nd method might give more accurate color (I tried few color and sometimes, there are some mismatch if using the RGB method)
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
System Programming

From novice to tech pro — start learning today.