I am trying to add a menubar I created in my resource to a dialog from my resource, but I can't quite figure out how to.
I searched a lot of guides on that, but they all seem to be working only with
_Module
which seems to be a very old relic according to Does ATL/WTL still require the use of a global _Module variable?
Most of these guides want to tackle the problem using this method:
CMenu menu;
menu.Attach( LoadMenu( _Module.GetResourceInstance(),MAKEINTRESOURCE(<Menubar ID>)));
SetMenu( menu );
However, I would like to know what the "modern" way would be then, considering the _Module
-way is outdated.
Can anyone point me to a solution?