• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 243
  • Last Modified:

COLORREF elements

Hi

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

0
win32
Asked:
win32
  • 3
1 Solution
 
PacmanCommented:
the number of elements ?
COLORREF holds a rgb value.
0
 
iProgramCommented:
COLORREF col=0xFF12FA;
col==RGB(0xFF,0x12,0xFA)
0
 
PacmanCommented:
if you want to extract the R,G,B-values:

use the macros

GetRValue()
GetGValue()
GetBValue()
0
 
PacmanCommented:
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.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now