If you are using the CFrameWnd::Create() method to create the window, you can specify the name of the menu using which argument.
MenuCaption argument
lpszMenuName argument
MenuName argument
splzMenuName argument