codice:
UINT ui;
for(ui=0; ui<100; ui++)
{
    /* ... */
    SetDlgItemInt(hwnd,ID_DEL_CONTROLLO,ui,TRUE); /* ... se mi ricordo correttamente la sintassi */
    UpdateWindow(GetDlgItem(hwnd,ID_DEL_CONTROLLO),FALSE);
    /* ... */
}