|
Тема |
Re: Copy&Paste... [re: NickBass] |
|
Автор |
NDeu (динозавър) |
|
Публикувано | 05.07.06 09:27 |
|
|
Имаше преди години тука някой, който се ровеше в този проблем. Виж дали няма да го изровиш от архива.
Но решението май е в API-то.
Вж. GetClipboardData и SetClipboardData
The GetClipboardData function retrieves data from the clipboard in a specified format. The clipboard must have been opened previously.
HANDLE GetClipboardData(
UINT uFormat // clipboard format
);
Parameters
uFormat
Specifies a clipboard format. For a description of the clipboard formats, see the SetClipboardData function.
========================
HANDLE SetClipboardData(
UINT uFormat, // clipboard format
HANDLE hMem // data handle
);
..........
Remarks
The uFormat parameter can identify a registered clipboard format, or it can be one of the following values:
Value Meaning
.......................
CF_LOCALE The data is a handle to the locale identifier associated with text in the clipboard. When you close the clipboard, if it contains CF_TEXT data but no CF_LOCALE data, the system automatically sets the CF_LOCALE format to the current input locale. You can use the CF_LOCALE format to associate a different locale with the clipboard text.An application that pastes text from the clipboard can retrieve this format to determine which character set was used to generate the text.Note that the clipboard does not support plain text in multiple character sets. To achieve this, use a fomatted text data type such as RTF instead.Windows NT: The system uses the code page associated with CF_LOCALE to implicitly convert from CF_TEXT to CF_UNICODETEXT. Therefore, the correct code page table is used for the conversion.
......
Редактирано от NDeu на 05.07.06 09:38.
|
| |
|
|
|