【お知らせ】この部分は英語原文のみでの提供となります。何卒ご了承ください。
2.1.27.2 ColorsBox
Contents
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
Header to Included
origin.h