mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-02 20:18:28 +00:00
ole32: Register DataObject clipboard format.
This commit is contained in:
parent
c0fbbe7d91
commit
e77ab142e4
1 changed files with 12 additions and 3 deletions
|
@ -150,6 +150,8 @@ static ole_clipbrd* theOleClipboard;
|
|||
*/
|
||||
static const CHAR OLEClipbrd_WNDCLASS[] = "CLIPBRDWNDCLASS";
|
||||
|
||||
static UINT dataobject_clipboard_format;
|
||||
|
||||
/*
|
||||
* If we need to store state info we can store it here.
|
||||
* For now we don't need this functionality.
|
||||
|
@ -1175,15 +1177,22 @@ static ole_clipbrd* OLEClipbrd_Construct(void)
|
|||
return This;
|
||||
}
|
||||
|
||||
static void register_clipboard_formats(void)
|
||||
{
|
||||
static const WCHAR DataObjectW[] = { 'D','a','t','a','O','b','j','e','c','t',0 };
|
||||
|
||||
if(!dataobject_clipboard_format)
|
||||
dataobject_clipboard_format = RegisterClipboardFormatW(DataObjectW);
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
* OLEClipbrd_Initialize()
|
||||
* Initializes the OLE clipboard.
|
||||
*/
|
||||
void OLEClipbrd_Initialize(void)
|
||||
{
|
||||
/*
|
||||
* Create the clipboard if necessary
|
||||
*/
|
||||
register_clipboard_formats();
|
||||
|
||||
if ( !theOleClipboard )
|
||||
{
|
||||
TRACE("()\n");
|
||||
|
|
Loading…
Reference in a new issue