Connecting Tech Pros Worldwide Help | Site Map

popupmenu customisation

  #1  
Old June 17th, 2007, 08:35 AM
bisuvious
Guest
 
Posts: n/a

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, 09:05 AM
John Harrison
Guest
 
Posts: n/a

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, 09:15 AM
bisuvious
Guest
 
Posts: n/a

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

Closed Thread