Don't cast nParts to int, WPARAM is fine