To further clarify:
If you have a panel with a constant MYPANEL and an LED with a constant MYLED:
...
panelHandle = LoadPanel (0, "MyUI.uir", MYPANEL);
...
// turn LED off
// note that the first argument is panelHandle, not MYPANEL
// and the second agrument is MYPANEL_MYLED, not just MYLED
SetCtrlVal(panelHandle, MYPANEL_MYLED, 0);
...
In this manner, you do not need to change any of your code due to any automatic changes to the .h file for the UIR.