Solved

COLORREF elements

Posted on 2001-06-27
4
236 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
not able to insert into temp table 68 169
maxBlock challenge 30 142
isEverywhere  challenge 19 82
haveThree challenge 22 121
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.

856 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