CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: CMenu related

  1. #1
    Join Date
    Mar 2004
    Posts
    32

    Unhappy CMenu related

    I am created 3 dialog dynamically, with captions dialog1,dialog2,dialog3
    my request is to add these dialog to Menu,

    Here i am having IDC_MENU1 already, i want to add the three dialog boxes to this menu,

    Programmatically i want to add these dialogs to the menu

  2. #2
    Join Date
    Sep 2002
    Location
    14° 39'19.65"N / 121° 1'44.34"E
    Posts
    9,815

    Re: CMenu related

    Quote Originally Posted by ravirams
    Here i am having IDC_MENU1 already, i want to add the three dialog boxes to this menu,
    I don't see how dialog boxes could be added to a menu... Or do you mean that you want to display the dialog boxes when a command from the menu is selected? If this is the case, you must first add the menu items to the menu (using the menu resource editor), and then create command handlers for those items - the easiest way to do this is in ClassWizard. Inside these handlers, you display the dialog boxes - how you do this depends on whether you want them to behave as modal or modeless dialogs.

  3. #3
    Join Date
    Aug 2002
    Location
    Kerala
    Posts
    1,183

    Re: CMenu related

    I think he means add items to the Window menu when these dialogs are created and shown.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured