The toolbar is managed by a handler (TOOLBAR_Handler()). As for the other handlers (that are all defined in a 'virtual table), you can redefine it by calling the functions UTIL_SetSchHandler/UTIL_GetSchHandler. If you save the original handler (to restore it), replace it by your own toolbar handler (that does do anything), it should work.