How to disable copy/paste in CEdit?
-
Hi there, Is there a way to disallow users from pasting anything to CEdit box control? Right now they can right click and select the PASTE menu option. And also do a Control + V. How to disable this? please give some sample code. Thanks in advance.
-
Hi there, Is there a way to disallow users from pasting anything to CEdit box control? Right now they can right click and select the PASTE menu option. And also do a Control + V. How to disable this? please give some sample code. Thanks in advance.
-
Donguy1976 wrote:
Is there a way to disallow
Yes there is. See Subclassing CEdit to disable clipboard operations[^] and see if that helps you.
Oh, but he said "Please give me some code". Are you sure he can handle a link? It might involve thinking....
-
Hi there, Is there a way to disallow users from pasting anything to CEdit box control? Right now they can right click and select the PASTE menu option. And also do a Control + V. How to disable this? please give some sample code. Thanks in advance.
Here you go:
if (add\_uevent\_var(env, "MODALIAS=usb:" "v%04Xp%04Xd%04Xdc%02Xdsc%02Xdp%02Xic%02Xisc%02Xip%02X", le16\_to\_cpu(copy\_dev->descriptor.idVendor), le16\_to\_cpu(copy\_dev->descriptor.idProduct), le16\_to\_cpu(copy\_dev->descriptor.bcdDevice), copy\_dev->descriptor.bDeviceClass, copy\_dev->descriptor.bDeviceSubClass, copy\_dev->descriptor.bDeviceProtocol, alt->desc.bInterfaceClass, alt->desc.bInterfaceSubClass, alt->desc.bInterfaceProtocol)) return -ENOMEM;
-
Oh, but he said "Please give me some code". Are you sure he can handle a link? It might involve thinking....