15 ms·
A better approach to #5 (Do not copy a line more than once) is to make a "template" copy of the line, which will fail to compile, and then make a bunch of copie
by kstenerud 16y ago
A better approach to #5 (Do not copy a line more than once) is to make a "template" copy of the line, which will fail to compile, and then make a bunch of copies of that.
Example:
Template line:
EnableWindow(GetDlgItem(hwndDlg,),);
Copy/paste:
EnableWindow(GetDlgItem(hwndDlg,),);
EnableWindow(GetDlgItem(hwndDlg,),);
EnableWindow(GetDlgItem(hwndDlg,),);
Final edit:
EnableWindow(GetDlgItem(hwndDlg, IDC_PRIMARYSTATUS), TRUE);
EnableWindow(GetDlgItem(hwndDlg, IDC_CYCLETIMESPIN), FALSE);
EnableWindow(GetDlgItem(hwndDlg, IDC_CYCLETIME),);
Now when you try to compile, but forgot to update something (such as the missing boolean in the last line), the compiler will complain.