2nd Imagelist fpr GRID
Posted: Sun Jan 22, 2023 10:44 pm
hi,
i try to enhance GRID with 2nd Imagelist "hImageBig" but have Problem
File c:\hmg.3.4.4\SOURCE\C_GRID.C
i got Error
who can help me please
i try to enhance GRID with 2nd Imagelist "hImageBig" but have Problem
File c:\hmg.3.4.4\SOURCE\C_GRID.C
Code: Select all
HB_FUNC (ADDLISTVIEWBITMAP)
{
HWND hGrid = (HWND) HMG_parnl (1);
HIMAGELIST hImageList = NULL;
HIMAGELIST hImageBig = NULL;
TCHAR *FileName;
int nCount, i;
int nWidth = 0;
nCount = hb_parinfa (2, 0);
if ( nCount > 0 )
{
int Transparent = hb_parl(3) ? 0 : 1;
for (i=1; i <= nCount; i++)
{
FileName = (TCHAR*) HMG_parvc (2, i);
if ( hImageList == NULL )
hImageList = HMG_ImageListLoadFirst (FileName, nCount, Transparent, &nWidth, NULL);
else
HMG_ImageListAdd (hImageList, FileName, Transparent);
}
{
if ( hImageBig == NULL )
hImageBig = HMG_ImageListLoadFirst (FileName, nCount, Transparent, &nWidth, NULL);
else
HMG_ImageListAdd (hImageBig, FileName, Transparent);
}
if ( hImageList != NULL )
SendMessage (hGrid, LVM_SETIMAGELIST, (WPARAM) LVSIL_SMALL, (LPARAM) hImageList);
if ( hImageBig != NULL )
SendMessage (hGrid, LVM_SETIMAGELIST, (WPARAM) LVSIL_NORMAL, (LPARAM) hImageBig);
}
hb_retni ((INT) nWidth );
}but that line is behind EOF of Filec:/hmg.3.4.4/source/c_grid.c:813:1: error: stray '\32' in program
who can help me please