【问】

Is it possible to put a menu in a dialog based application? How?

【答】

Yes, it is possible to add menu to the dialog based applications. You can create the menu as a resource and attach the same to the dialog.

If you open the properties for dialog, you can see a Menu as a property for which you can assign an existing Menu ID.

Steps:

  • Right click on Resource View and insert a new Menu. (Menu with some ID-- lets say IDR_MENU1 -- is created)
  • Configure the menu to add required items in menu and provide the ID, Caption to the menu items.
  • Right click on Dialog and open Properties...
  • From Menu Combobox, select the ID of the required menu ( here IDR_MENU1)

 

From: https://stackoverflow.com/questions/880930/cmenu-and-dialog-based-applications

相关文章:

  • 2021-11-12
  • 2021-11-22
  • 2021-10-19
  • 2021-11-04
  • 2021-09-11
  • 2022-01-04
  • 2022-12-23
猜你喜欢
  • 2021-11-16
  • 2022-12-23
  • 2021-09-05
  • 2022-02-20
  • 2022-02-12
  • 2022-02-01
  • 2021-12-30
相关资源
相似解决方案