Connecting Tech Pros Worldwide Help | Site Map

popupmenu customisation

 
LinkBack Thread Tools Search this Thread
  #1  
Old June 17th, 2007, 07:35 AM
bisuvious
Guest
 
Posts: n/a
Default popupmenu customisation


hi

I have an MFC application where there are many CEdit controls in a
dialog. By default when I right click on an edit box a popup menu
appears with the menu items "Cut", "Copy", "Redo" etc.
But I do not want to show all the menu items. How can I remove some of
these menu items?

I know that somehow if I get CMenu* of this popup menu, then rest is
easier.

In brief what is the API to get application's edit menu? like
GetSystemMenu() for system menu.


thanks in advance.



bisuvius


  #2  
Old June 17th, 2007, 08:05 AM
John Harrison
Guest
 
Posts: n/a
Default Re: popupmenu customisation

bisuvious wrote:
Quote:
hi
>
I have an MFC application where there are many CEdit controls in a
dialog. By default when I right click on an edit box a popup menu
appears with the menu items "Cut", "Copy", "Redo" etc.
But I do not want to show all the menu items. How can I remove some of
these menu items?
>
I know that somehow if I get CMenu* of this popup menu, then rest is
easier.
>
In brief what is the API to get application's edit menu? like
GetSystemMenu() for system menu.
>
>
thanks in advance.
>
>
>
bisuvius
>
You need a Windows programming group (or an MFC group). This is a C++
group, and there is no C++ content in your question, just a query about
a third party library. Try comp.os.ms-windows.programmer.win32 for instance.

john
  #3  
Old June 17th, 2007, 08:15 AM
bisuvious
Guest
 
Posts: n/a
Default Re: popupmenu customisation

On Jun 17, 3:58 pm, John Harrison <john_androni...@hotmail.comwrote:
Quote:
bisuvious wrote:
Quote:
hi
>
Quote:
I have an MFC application where there are many CEdit controls in a
dialog. By default when I right click on an edit box a popupmenu
appears with themenuitems "Cut", "Copy", "Redo" etc.
But I do not want to show all themenuitems. How can I remove some of
thesemenuitems?
>
Quote:
I know that somehow if I get CMenu* of this popupmenu, then rest is
easier.
>
Quote:
In brief what is the API to get application's editmenu? like
GetSystemMenu() for systemmenu.
>
Quote:
thanks in advance.
>
Quote:
bisuvius
>
You need a Windows programming group (or an MFC group). This is a C++
group, and there is no C++ content in your question, just a query about
a third party library. Try comp.os.ms-windows.programmer.win32 for instance.
>
john

hi John

yes you are right. I already posted this message to mfc group.
thanks

bisuvius

 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.