How would I set a menu's shortcut key at run-time to jump to a procedure in an external object?
Here's my problem:
I'm currently in the process of breaking a rather large application (30+ megs compiled .exe) in vb6 to smaller, more manageable chunks (dll's and ocx's). Now, I have a small routine which allows for existing menu steps to be subclassed to call an external object, essentially "overwritting" the "click" event on the menu to not call the old code, but jump into the external. Now, this all works fine and dandy, except when the menu step originally has a shortcut key (ctrl-e, for example) associated with it. Even after my subclassing stuff, the shortcut key combination calls the old code.
So i need to re-assign what a shortcut key combination calls. Anybody know how this is done?
Here's my problem:
I'm currently in the process of breaking a rather large application (30+ megs compiled .exe) in vb6 to smaller, more manageable chunks (dll's and ocx's). Now, I have a small routine which allows for existing menu steps to be subclassed to call an external object, essentially "overwritting" the "click" event on the menu to not call the old code, but jump into the external. Now, this all works fine and dandy, except when the menu step originally has a shortcut key (ctrl-e, for example) associated with it. Even after my subclassing stuff, the shortcut key combination calls the old code.
So i need to re-assign what a shortcut key combination calls. Anybody know how this is done?