EditCopy handler not executing

My window has a menu that is working fine for items such as FilePrint, FileSave, etc., except for EditCopy or EditPaste. The window’s EditCopy and EditPaste event handlers are not getting called. How can I get them working?

Do you have a listbox in the window?


I’ve seen the listbox handle the copy and paste menus if a row is selected and there’s no way to intercept it. The workaround I know is to create a listbox subclass and add a menuhandler to that along with an event definition. Then when the handler is called, raise the event. Then in the window you can handle the new event on the listbox in place of the menuhandler.

Thank you for the clues, they were very helpful. My listbox is now responding to the EditCopy event.