Solved

Ctreel control Right click menu

Posted on 2003-11-19
4
334 Views
Last Modified: 2010-04-17
hi,
   has anyone example of a TreeCtrl  having functionality of right click menu, how do i do that. and also is it possilbe to inset menu on a dialogbox . all this in should be MFC.
kiran
0
Comment
Question by:kirannapit
4 Comments
 
LVL 1

Accepted Solution

by:
gabbitaravi earned 75 total points
ID: 9786400
Hi,
Place a TreeviewCntl from MFC dialog based window  and add events by using Class Wizard select the NM_RClick event handler. The wizard adds prototype. Add the required code and run the application.

It is definately possible to add a menu to dialog box.

Select insert Menu option and select Resource optioin. It opens a menu wizard, Right click on the highlited area and add menu name also check whether it is a popup / normal menu then frame your menu and save it.
Go to the dialog resource and right click and select properties option. Here give the menu name in the combobox. which binds the user created menu to the dialog resource.

With warm regards,
ravi kiran gabbita
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

837 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question