Open the Colors dialog
bool ColorsBox( COLORREF * pcr )
return false if user cancel the dialog
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); }
origin.h