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); /* ... */ }
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); /* ... */ }
Amaro C++, il gusto pieno dell'undefined behavior.