MIDI messages are configured by patch, not global. You can create a patch template that has the MIDI configurations you want, and then copy that template to create new presets.
Activating and deactivating with MIDI can be tricky. How it works depends on what the H9 is expecting, or can be configured to expect. Sometimes The block will be activated/deactivated with CC absolute, i.e. you send 127 to turn it on and 0 to turn it off. Sometimes it’s it will CC toggle the state on each CC with a value of 127.
MorningStar MC8 is a comprehensive, fully configurable MIDI solution for almost anything. I highly recommend it as a companion to QC.