Most applications create menus using menu-template resources. A menu template defines a menu, including the items in the menu bar and all menus. For information about creating a menu-template resource, see the documentation included with your development tools.
After you create a menu-template resource and add it to your application's executable (.EXE) file, you can use the LoadMenu function to load the resource into memory. This function returns the handle of the menu, which you can then assign to a window by using the SetMenu function.
Implementing menus as resources makes an application easier to localize for use in multiple countries. Only the resource-definition file needs to be localized for each language, not the application's source code.