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.
"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.
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.