47.1.3 Class Menus

When you register a window class, you can specify a default menu for that class. This default menu is known as the class menu. To specify a class menu, you must assign the name of the menu, as given in your application's resource-definition file, to the lpszMenuName member of the WNDCLASS structure used to register the window class. After the window class has been registered, each window of that class will have the specified class menu. You can override the class menu by specifying the handle of a different menu when you create a window of that class. For more information about window classes, see Chapter 34, “Window Classes.”