I am using a dialog with labels to display some tabular data. The processing is suited to a for -loop but the problem is the numbers the ID's take for each label.
I did try and create one vertical list, hoping the the resource numbers would be in sequence, but no.
Is it safe to modify the resource.h file to get the numbers I require.
for( i = 0; i < 10; i++)
{
IDC_LIST1 = IDC_LIST1 + i;
SetDlgItemText(IDC_LIST1,Data);
}
Any comments?
I did try and create one vertical list, hoping the the resource numbers would be in sequence, but no.
Is it safe to modify the resource.h file to get the numbers I require.
for( i = 0; i < 10; i++)
{
IDC_LIST1 = IDC_LIST1 + i;
SetDlgItemText(IDC_LIST1,Data);
}
Any comments?