Locking your Views against accidental changes

The LockViews macro allows you to easily set the LockUserChanges property of a view which is only accessible via code. Setting this property will protect your custom view against accidental changes or the need for you to recreate it when you want to make a one-time change.