Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Labels/ID Increment the ID in Program

Status
Not open for further replies.

sweep123

Technical User
Joined
May 1, 2003
Messages
185
Location
GB
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?


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top