Solved

COLORREF elements

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
repeatEnd java challenge 42 83
dog bark java program 15 81
Window placement 17 64
noX challenge 17 76
In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
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.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

707 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

21 Experts available now in Live!

Get 1:1 Help Now