Discussion:
GetClipBoardOwner with acrobat reader
(too old to reply)
randy_dom
2012-05-01 05:27:26 UTC
Permalink
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
2012-05-01 08:40:22 UTC
Permalink
Post by randy_dom
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
2012-05-01 12:00:19 UTC
Permalink
Post by David Lowndes
Post by randy_dom
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 clipboard can still contain data even if the clipboard is not
currently owned."
"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
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
2012-05-01 15:39:18 UTC
Permalink
Post by randy_dom
Post by David Lowndes
Post by randy_dom
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 clipboard can still contain data even if the clipboard is not
currently owned."
"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
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 ?
Presumably they call OpenClipboard with a NULL window handle - as the
EmptyClipboard documentation says.

Dave

Loading...