7.3 Including a Menu in Your Application

Once you have defined a menu in the resource-definition file, you can include it in your application code. You do this by associating it with a window. Any overlapped or pop-up window can have a menu; a child window cannot (although child windows can have System menus).

This section explains two common ways to include a menu in your application:

Specify the menu as the class menu when registering a window class. All windows of that class will then include that menu.

Specify the menu when creating a window. The window will then include the menu.