CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 1999
    Posts
    20

    RButton click on Pushbutton

    I want to bring up a dialog box when I RightClick on any of a series of Pushbuttons. I am running a dialog based application. How can I do this?

    Thanks,

    Cornel


  2. #2
    Join Date
    Sep 1999
    Posts
    11

    Re: RButton click on Pushbutton

    In class wizard you create a handler for the RButton down message. I assume you used class wizard to create a dialog class. Include the dialog classes .h file then in the handler you create a instance of the dialog. Assume you named the class DialogBox. The following will bring up the dialog in the event handler.

    DlgDialogBox dlg;
    dlg.DoModal();

    I hope this helps.



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