2.1.27.3 ColorsBox


Description

Open the Colors dialog

Syntax

bool ColorsBox( COLORREF * pcr )

Parameters

pcr
[modify] pointer to COLORREF

Return

return false if user cancel the dialog

Examples

EX1

void ColorsBox_ex1()
{
    // Active worksheet or matrixsheet
    Datasheet ml = Project.ActiveLayer(); 
    Grid grid;
    if( !grid.Attach(ml) )
        return;
 
    COLORREF cr;
	if( !ColorsBox(&cr) )
		return;
	
    DWORD dwBkColor = okutil_convert_RGB_to_ocolor(cr);
    grid.CellBkColor(dwBkColor, 1, 1, FALSE);
}

Remark

See Also

okutil_convert_RGB_to_ocolor
okutil_convert_ocolor_to_RGB

Header to Included

origin.h

Reference