Solved

COLORREF elements

Posted on 2001-06-27
4
234 Views
Last Modified: 2013-11-20
Hi

Is there a smart way to get the number of ellements in a COLORREF ?

0
Comment
Question by:win32
  • 3
4 Comments
 
LVL 9

Accepted Solution

by:
Pacman earned 10 total points
ID: 6230534
the number of elements ?
COLORREF holds a rgb value.
0
 
LVL 1

Expert Comment

by:iProgram
ID: 6230637
COLORREF col=0xFF12FA;
col==RGB(0xFF,0x12,0xFA)
0
 
LVL 9

Expert Comment

by:Pacman
ID: 6230710
if you want to extract the R,G,B-values:

use the macros

GetRValue()
GetGValue()
GetBValue()
0
 
LVL 9

Expert Comment

by:Pacman
ID: 6292973
win32,

is your question answered ?
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
iSeries FTP Exit Program 8 124
FizzBuzz challenge 9 76
matchUp  challenge 9 94
My project did see openJDK that I installed. What could be the problem 7 123
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now