Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Ctreel control Right click menu

Posted on 2003-11-19
4
Medium Priority
?
364 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 1

Accepted Solution

by:
gabbitaravi earned 300 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

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

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

In this post we will learn different types of Android Layout and some basics of an Android App.
What do responsible coders do? They don't take detrimental shortcuts. They do take reasonable security precautions, create important automation, implement sufficient logging, fix things they break, and care about users.
Simple Linear Regression
Starting up a Project

609 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