Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Windos
win32.3rdparty
win32.directx.audio
win32.directx.ddk
win32.directx.graphics
win32.directx.input
win32.directx.managed
win32.directx.misc
win32.directx.networking
win32.directx.sdk
win32.directx.video
win32.dirx.grap.shaders
win32.gdi
win32.international
win32.kernel
win32.messaging
win32.mmedia
win32.networks
win32.ole
win32.rtc
win32.tapi
win32.tapi.beta
win32.tools
win32.ui
win32.wince
win32.wmi
windows.mediacenter
winfx.aero
winfx.announcements
winfx.avalon
winfx.collaboration
winfx.fundamentals
winfx.general
winfx.indigo
winfx.sdk
winfx.winfs
  
 
date: Sun, 6 Apr 2008 11:49:43 -0700 (PDT),    group: microsoft.public.win32.programmer.gdi        back       


How to change the state of menu items in context menu of Edit control?   
Hello,

    I am developing a customized edit control in Win32 and have
subclassed the window procedure for the Edit control. I want to change
the state of menu items (such as Cut, Copy, Paste etc) in the context
menu of the Edit control. How can I get the handle of the Edit
control's context menu and the command IDs of its menu items?

   Please reply if possible.

Thanks and regards,
   Dhiren Sarup.
date: Sun, 6 Apr 2008 11:49:43 -0700 (PDT)   author:   Dhiren

Re: How to change the state of menu items in context menu of Edit control?   
"Dhiren"  wrote in message 
news:754a9ea2-4153-45fd-a374-b84ac58774a8@m1g2000pre.googlegroups.com...
> Hello,
>
>    I am developing a customized edit control in Win32 and have
> subclassed the window procedure for the Edit control. I want to change
> the state of menu items (such as Cut, Copy, Paste etc) in the context
> menu of the Edit control. How can I get the handle of the Edit
> control's context menu and the command IDs of its menu items?


I don't believe you can.

Here's a couple articles with alternative solutions:

http://www.codeproject.com/KB/edit/cmenuedit.aspx
http://msdn2.microsoft.com/en-us/magazine/cc301425.aspx

Hope that helps a bit.

Mark

-- 
Mark Salsbery
Microsoft MVP - Visual C++


>
>   Please reply if possible.
>
> Thanks and regards,
>   Dhiren Sarup.
date: Sun, 6 Apr 2008 12:50:38 -0700   author:   Mark Salsbery [MVP] MarkSalsbery[MVP]@newsgroup.nospam

Re: How to change the state of menu items in context menu of Edit control?   
On Apr 6, 9:50 pm, "Mark Salsbery [MVP]"
<MarkSalsbery[MVP]@newsgroup.nospam> wrote:
> "Dhiren"  wrote in message
>
> news:754a9ea2-4153-45fd-a374-b84ac58774a8@m1g2000pre.googlegroups.com...
>
> > Hello,
>
> >    I am developing a customized edit control in Win32 and have
> > subclassed the window procedure for the Edit control. I want to change
> > the state of menu items (such as Cut, Copy, Paste etc) in the context
> > menu of the Edit control. How can I get the handle of the Edit
> > control's context menu and the command IDs of its menu items?
>
> I don't believe you can.
>
> Here's a couple articles with alternative solutions:
>
> http://www.codeproject.com/KB/edit/cmenuedit.aspxhttp://msdn2.microsoft.com/en-us/magazine/cc301425.aspx
>
> Hope that helps a bit.
>
> Mark
>
> --
> Mark Salsbery
> Microsoft MVP - Visual C++
>
>
>
> >   Please reply if possible.
>
> > Thanks and regards,
> >   Dhiren Sarup.

Hello Mark,

   Thanks for the help.

Regards,
   Dhiren Sarup.
date: Thu, 10 Apr 2008 05:50:16 -0700 (PDT)   author:   Dhiren

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us