Главная страница | назад





Article #17321: Control in another window to copy it's contents to the Windows clipboard..

 Question and Answer Database

FAQ2321C.txt   Control in another window to copy it's contents to the Windows clipboard..     
Category   :VCL
Platform    :All
Product    :C++Builder  3.x

Question:
How do I get a control in another window to copy it's contents to
the Windows clipboard?

Answer:
Send a WM_COPY message to the active window to tell it to copy its
contents to the clipboard. If the control does not support the
message, it is simply ignored, and no exception is raised.

Example:

   SendMessage(Edit1->Handle, WM_COPY, 0, 0);


7/2/98 10:32:32 AM
 

Last Modified: 01-SEP-99