Compartir a través de


CMFCColorPickerCtrl::SelectCellHexagon

Sets the current color to the color defined by the specified RGB color components or the specified cell hexagon.

void SelectCellHexagon(
   BYTE R,
   BYTE G,
   BYTE B 
);
BOOL SelectCellHexagon(
   int x,
   int y 
);

Parameters

  • [in] R
    The red color component.

  • [in] G
    The green color component.

  • [in] B
    The blue color component.

  • [in] x
    The x-coordinate of the cursor, which points to a cell hexagon.

  • [in] y
    The y-coordinate of the cursor, which points to a cell hexagon.

Return Value

The second overload of this method always returns FALSE.

Remarks

The first overload of this method sets the current color to the color that corresponds to the color selection control's specified red, green, and blue color components.

The second overload of this method sets the current color to the color of the cell hexagon that is pointed to by the specified cursor location.

Requirements

Header: afxcolorpickerctrl.h

See Also

Reference

CMFCColorPickerCtrl Class

Hierarchy Chart