Cut, Copy and Paste the easy way

This is the EASY way to add CUT / COPY / PASTE capabilities to your app.

This solution for cut, copy and paste will work with ANY component. And, I'm

sure you will agree, is very simple. There are 4 messages regarding these

functions :

  WM_CUT

  WM_COPY

  WM_PASTE

  WM_UNDO



And this is how how implement them

  PostMessage(GetFocus,WM_CUT,0,0);

  PostMessage(GetFocus,WM_COPY,0,0);

  PostMessage(GetFocus,WM_PASTE,0,0);

  PostMessage(GetFocus,WM_UNDO,0,0);

 

 

Share this article!

Follow us!

Find more helpful articles: