RichEditCtrl RTF paste disable

This is a discussion on RichEditCtrl RTF paste disable within the Windows Programming forums, part of the Platform Specific Boards category; does anybody know how to disable or ignore the RTF paste in a rich edit control ? it really messes ...

  1. #1
    Registered User
    Join Date
    Dec 2004
    Posts
    103

    RichEditCtrl RTF paste disable

    does anybody know how to disable or ignore the RTF paste in a rich edit control ? it really messes up my rich edit control, for example.. i got a rich edit set to center align and single line and when i paste something from a site.. the center align turns to left and all characters look weird when i type something, and anyway i want my default char format to remain just like i paste something from a normal textbox to my rich edit
    btw im using MFC, thanks

  2. #2
    Registered User
    Join Date
    Mar 2005
    Location
    Mountaintop, Pa
    Posts
    1,059
    Have you considered subclassing your edit control? This will allow you to modify the behavior of the control. Thus, you can ignore any type of paste operation such as ctrl V etc.

  3. #3
    Registered User
    Join Date
    Dec 2004
    Posts
    103
    i am subclassing it, oh and the paste thing can be controlled easily but what i really cant control is the drag and drop method on some text i cant know when drag and drop is about to be done with some text.. i will have to cancel it and just set the text myself but i never found a message for that

  4. #4
    Registered User
    Join Date
    Dec 2004
    Posts
    103
    well i dont mind disabling drag and drop for text for the rich edit is there any option to do that ? like the way drag and drop for files is disabled.. it wont accept any file in, or just totally disable it.. please anybody know ?
    thanks and sorry for double posting..

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Disable specific warning?
    By DrSnuggles in forum C++ Programming
    Replies: 8
    Last Post: 05-07-2009, 11:45 PM
  2. Copy and Paste function in console apps.
    By Hakins90 in forum C Programming
    Replies: 5
    Last Post: 12-27-2007, 05:07 AM
  3. disable windows shortcut keys
    By Micko in forum Tech Board
    Replies: 2
    Last Post: 12-07-2005, 08:07 AM
  4. Disable ALT key commands
    By Lionmane in forum Windows Programming
    Replies: 9
    Last Post: 09-23-2005, 11:41 AM
  5. Disable menu items.
    By Bajanine in forum Windows Programming
    Replies: 4
    Last Post: 05-14-2004, 10:48 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21