ShowColorDlg example for C++ Builder

void __fastcall TForm1::ShowColorDlg1Click(TObject *Sender) 
{
   L_INT nRet; 
   LEADDlgColor1->DlgFlags = DLG_COLOR_SHOW_OLDCOLOR              |
                           DLG_COLOR_SHOW_NEWCOLOR              |
                           DLG_COLOR_SHOW_NAME                  |
                           DLG_COLOR_COLORSPACE_SHOW_HUE        |
                           DLG_COLOR_COLORSPACE_SHOW_BRIGHTNESS |
                           DLG_COLOR_COLORSPACE_SHOW_WHEEL      |
                           DLG_COLOR_COLORSPACE_SHOW_RGB        |
                           DLG_COLOR_COLORSPACE_SHOW_CMY        |
                           DLG_COLOR_COLORSPACE_SHOW_CMYK       |
                           DLG_COLOR_COLORSPACE_SHOW_LAB        |
                           DLG_COLOR_COLORMODEL_SHOW_RGB        |
                           DLG_COLOR_COLORMODEL_SHOW_HSB        |
                           DLG_COLOR_COLORMODEL_SHOW_HLS        |
                           DLG_COLOR_COLORMODEL_SHOW_CMY        |
                           DLG_COLOR_COLORMODEL_SHOW_CMYK       |
                           DLG_COLOR_COLORMODEL_SHOW_LAB; 

   LEADDlgColor1->SelectedColor = RGB ( 255, 255, 255 ); 
   LEADDlgColor1->LEADImage = LEADImage1; 
   LEADDlgColor1->LEADDlgService = LEADDlgService1; 
   nRet= LEADDlgColor1->ShowColorDlg ( this ); 
   if ( nRet == SUCCESS_DLG_OK ) 
   {
      LEADImage1->Fill ( LEADDlgColor1->SelectedColor ); 
   }
}