CMenu and Dialog based applications

Is it possible to place a menu in an application based on a dialogue? How?

+3
source share
3 answers

Yes, you can add menus to dialog-based applications. You can create a menu as a resource and attach it to the dialog box.

If you open the properties dialog box, you will see the menu as a property for which you can assign an existing menu identifier.

Steps:

  • Right-click View Resources and insert a new one Menu. (Menu with some identifier - allows you to create IDR_MENU1 -)
  • Set up a menu to add the necessary items to the menu and provide an identifier, Signature to menu items.
  • ...
  • Combobox ( IDR_MENU1)
+8

, , Visual Studio , . , CDialog CFrameWnd, - .

, Visual Studio post-VC6, , , , - " " .

+1
0

Source: https://habr.com/ru/post/1708619/


All Articles