Home > Back-end >  Delphi figure and words of how to realize the clipboard
Delphi figure and words of how to realize the clipboard

Time:10-06

QQ can put the figure and text up to the clipboard,
Delphi copy words alone, or in separate figure is easy,
But how can you figure and text together,

CodePudding user response:

The need to implement the clipboard function.
To split shear action object according to the content type, into its own clipboard

CodePudding user response:

1/+ 1,,,

CodePudding user response:

reference 1st floor simonhehe response:
need to implement the clipboard function.
To split shear action object according to the content type, into its own clipboard


These I know, I am want to specific code,
Because I custom clipboard format, and write in, but did not show right paste, use CTRL + v is not to,
Copy write memory block in flow way, also is same,
Tried many methods are not successful, so I want to ask next there is no specific code

CodePudding user response:

Because I custom clipboard format, and write in, but did not show right paste, use CTRL + v is not to,
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Right-click menu paste need yourself

CodePudding user response:

Simonhehe
reference 4 floor response:
because I custom clipboard format, and write in, but did not show right paste, use CTRL + v is not to,
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Right-click menu paste need to yourself to achieve




QQ chat window, right-click menu paste is grey,
And when it should own implementation, the system hotkey CTRL + v also can't move,
Have you ever truly useful code? Anything can be posted to see next?

CodePudding user response:

Words and images can be saved to the memory stream, and then read out flow, put the words and images come out

CodePudding user response:

First, you need to RegisterClipboardFormat registered its own format,
Then, copied to the clipboard with SetClipboardData
Paste, you must first EnumClipboardFormats, see if there are being registered format of the data, if any, GetClipboardData data, as to how to data processing, display, preservation, etc.) need you to do,
  • Related