You must carefully implement the
OnNewFile command handler. Renumbering or renaming the IDs is a common trap for messing up the message handling.
Check that you create a
new child window object and not only re-run the commands with the actual object.