I have a need to dynamically change the menu associated with a dialog.
Ideally, I would like to be able to programtically switch between
multiple menus.

It's easy enough to associate a single menu with a dialog through the
IDE, but how do I change menus on the fly?

Maybe the easiest way to do this is to avoid associating a menu with
the dialog through the IDE and create the association before the
dialog is displayed. However, I'm not sure how to do this.

Any advice is appreciated.

Thanks.