Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming Add-Ins / November 2003

Tip: Looking for answers? Try searching our database.

Dmitry ... Clipboards ..

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Michael Tissington - 22 Nov 2003 00:00 GMT
When pasting button faces anything in the clipboard before this operation
will be lost.

Obviously I need to save what is on the clipboard and then restore it.

With all the different formats of clipboard data how do you get around this
?

Thanks.

Signature

Michael Tissington
http://www.tabtag.com
http://www.oaklodge.com

Dmitry Streblechenko - 23 Nov 2003 08:00 GMT
In Outlook 2000 and below, you need to use the clipboard. In Outlook
2002/2003, you can use CommandBarButton.Picture and Mask properties.
I usually save text, CF_OEMTEXT, CF_HTML, CF_UNICODETEXT, CF_RTF, bitmap,
metafile, and files (CF_HDROP).

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy  - Outlook, CDO
and MAPI Developer Tool

> When pasting button faces anything in the clipboard before this operation
> will be lost.
[quoted text clipped - 5 lines]
>
> Thanks.
Michael Tissington - 24 Nov 2003 15:34 GMT
Thanks - I've sent you an email.

Signature

Michael Tissington
http://www.tabtag.com
http://www.oaklodge.com

> In Outlook 2000 and below, you need to use the clipboard. In Outlook
> 2002/2003, you can use CommandBarButton.Picture and Mask properties.
[quoted text clipped - 16 lines]
> >
> > Thanks.
Dmitry Streblechenko - 24 Nov 2003 17:14 GMT
Got it - a word of caution: do not set the clipboard data in a loop. The
order is important: if you set Unicode text, then ANSI, obviously Unicode
text will overwritten by the ANSI text.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy  - Outlook, CDO
and MAPI Developer Tool

> Thanks - I've sent you an email.
>
[quoted text clipped - 19 lines]
> > >
> > > Thanks.
Michael Tissington - 26 Nov 2003 01:59 GMT
Why would what I sent you send the data in a loop ?

After all I'm just putting back on it what I took off.

Signature

Michael Tissington
http://www.tabtag.com
http://www.oaklodge.com

> Got it - a word of caution: do not set the clipboard data in a loop. The
> order is important: if you set Unicode text, then ANSI, obviously Unicode
[quoted text clipped - 29 lines]
> > > >
> > > > Thanks.
Dmitry Streblechenko - 26 Nov 2003 07:01 GMT
I meant setting various clipboard formats in a loop - when you set the plain
text data, Unicode data is overwritten. If there was gebuine Unicode data,
all you will get is a plain text version.
This is much like setting PR_RTF_COMPRESSED, then PR_BODY property for an
RTF aware store - if you set text first, then RTF, you are fine. If you set
RTF, then text, RTF will be converted to plain text.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy  - Outlook, CDO
and MAPI Developer Tool

> Why would what I sent you send the data in a loop ?
>
[quoted text clipped - 35 lines]
> > > > >
> > > > > Thanks.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.