Solved

Ctreel control Right click menu

Posted on 2003-11-19
4
339 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 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

730 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