I made a copy-paste typo in the ToolProc() function, line 219, ToolWindow.h:
........
case IDT_CHECK02:
if (HIWORD(wParam) == BN_CLICKED) {
if (gP.bTexVertNorms) {
gP.bShowNorms[1] = (BOOL)SendMessage(GetDlgItem(gP.hTool, IDT_CHECK02), BM_GETCHECK, 0, 0);
} else if (gP.bAnimateLights) {
gP.bRotateLight[2] = (BOOL)SendMessage(GetDlgItem(gP.hTool, IDT_CHECK02), BM_GETCHECK, 0, 0);
}
gP.redraw = -1; // request redraw
}
break;
case IDT_CHECK03:
if (HIWORD(wParam) == BN_CLICKED) {
if (gP.bTexVertNorms) {
gP.bShowNorms[2] = (BOOL)SendMessage(GetDlgItem(gP.hTool, IDT_CHECK03), BM_GETCHECK, 0, 0);
} else if (gP.bAnimateLights) {
gP.bRotateLight[3] = (BOOL)SendMessage(GetDlgItem(gP.hTool, IDT_CHECK03), BM_GETCHECK, 0, 0);
}
gP.redraw = -1; // request redraw
}
break;
}
break;
........
Please correct it.