Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

GetClipBoardOwner with acrobat reader

38 views
Skip to first unread message

randy_dom

unread,
May 1, 2012, 1:27:26 AM5/1/12
to
Hi,Why GetClipBoardOwner always returns 0 ,

When using GetClipBoardOwner with any other MS office for example the
result will be the real Clipboard Owner , but when using it with
acrobat reader i don't get any result .

Please can some one explains me this ?

many thanks

David Lowndes

unread,
May 1, 2012, 4:40:22 AM5/1/12
to
>Hi,Why GetClipBoardOwner always returns 0 ,
>
>When using GetClipBoardOwner with any other MS office for example the
>result will be the real Clipboard Owner , but when using it with
>acrobat reader i don't get any result .

The GetClipboardOwner documentation does note:

"The clipboard can still contain data even if the clipboard is not
currently owned."

And the EmptyClipboard function documentation says:

"Before calling EmptyClipboard, an application must open the clipboard
by using the OpenClipboard function. If the application specifies a
NULL window handle when opening the clipboard, EmptyClipboard succeeds
but sets the clipboard owner to NULL."

Dave

randy_dom

unread,
May 1, 2012, 8:00:19 AM5/1/12
to
I called GetLastError() , but it returns 0 as a result just with
acrobat reader , not for Notepad.exe ...etc

So what's the problem with adobe acrobat reader ? do they use an other
TECH with their Clipboard or what ?

David Lowndes

unread,
May 1, 2012, 11:39:18 AM5/1/12
to
Presumably they call OpenClipboard with a NULL window handle - as the
EmptyClipboard documentation says.

Dave
0 new messages