Point me in the right direction please.

I would like to iterate through all the edit controls on a dialog. Something like this.

CEdit *pEdit

for( long lIDC_Value = 0; lIDC_Value <= Last Edit Control; LIDC_Value++)
{
pEdit = (CEdit*)GegDlgItem(lIDC_Value);
}
I know all the IDC values are defined in the
resource.h, but I do not know how to get them at run time.

Thank you.

Phil McGahan
(303) 252-8889
12100 Elizabeth St.
Thornton, Colorado 80241