How to disable menuitem for textbox control built-in contextmenu.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Menu "Paste" in textbox control's built-in contextmenu will be automaticaly
enabled while having text in clipboard. I want to disable the menu when text
in clipboard didn't meet my format.

I knew how to filter paste message in WndProc. But I think disable menu is
more sense.

Thanks for any response.
 
One way I can think of is to create your own ContextMenu
for your textboxes then you can modify it at will.

-Lee
 
Back
Top