PC Review


Reply
Thread Tools Rate Thread

Dmitry ... Clipboards ..

 
 
Michael Tissington
Guest
Posts: n/a
 
      22nd Nov 2003
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.

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



 
Reply With Quote
 
 
 
 
Dmitry Streblechenko
Guest
Posts: n/a
 
      23rd Nov 2003
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


"Michael Tissington" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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.
>
> --
> Michael Tissington
> http://www.tabtag.com
> http://www.oaklodge.com
>
>
>



 
Reply With Quote
 
Michael Tissington
Guest
Posts: n/a
 
      24th Nov 2003
Thanks - I've sent you an email.

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


"Dmitry Streblechenko" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> 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
>
>
> "Michael Tissington" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > 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.
> >
> > --
> > Michael Tissington
> > http://www.tabtag.com
> > http://www.oaklodge.com
> >
> >
> >

>
>



 
Reply With Quote
 
Dmitry Streblechenko
Guest
Posts: n/a
 
      24th Nov 2003
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

"Michael Tissington" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Thanks - I've sent you an email.
>
> --
> Michael Tissington
> http://www.tabtag.com
> http://www.oaklodge.com
>
>
> "Dmitry Streblechenko" <(E-Mail Removed)> wrote in message
> news:%(E-Mail Removed)...
> > 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
> >
> >
> > "Michael Tissington" <(E-Mail Removed)> wrote in message
> > news:(E-Mail Removed)...
> > > 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.
> > >
> > > --
> > > Michael Tissington
> > > http://www.tabtag.com
> > > http://www.oaklodge.com
> > >
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
Michael Tissington
Guest
Posts: n/a
 
      26th Nov 2003
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.

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


"Dmitry Streblechenko" <(E-Mail Removed)> wrote in message
news:%23KN$(E-Mail Removed)...
> 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
>
> "Michael Tissington" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > Thanks - I've sent you an email.
> >
> > --
> > Michael Tissington
> > http://www.tabtag.com
> > http://www.oaklodge.com
> >
> >
> > "Dmitry Streblechenko" <(E-Mail Removed)> wrote in message
> > news:%(E-Mail Removed)...
> > > 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
> > >
> > >
> > > "Michael Tissington" <(E-Mail Removed)> wrote in message
> > > news:(E-Mail Removed)...
> > > > 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.
> > > >
> > > > --
> > > > Michael Tissington
> > > > http://www.tabtag.com
> > > > http://www.oaklodge.com
> > > >
> > > >
> > > >
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
Dmitry Streblechenko
Guest
Posts: n/a
 
      26th Nov 2003
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


"Michael Tissington" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> 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.
>
> --
> Michael Tissington
> http://www.tabtag.com
> http://www.oaklodge.com
>
>
> "Dmitry Streblechenko" <(E-Mail Removed)> wrote in message
> news:%23KN$(E-Mail Removed)...
> > 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
> >
> > "Michael Tissington" <(E-Mail Removed)> wrote in message
> > news:(E-Mail Removed)...
> > > Thanks - I've sent you an email.
> > >
> > > --
> > > Michael Tissington
> > > http://www.tabtag.com
> > > http://www.oaklodge.com
> > >
> > >
> > > "Dmitry Streblechenko" <(E-Mail Removed)> wrote in message
> > > news:%(E-Mail Removed)...
> > > > 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
> > > >
> > > >
> > > > "Michael Tissington" <(E-Mail Removed)> wrote in message
> > > > news:(E-Mail Removed)...
> > > > > 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.
> > > > >
> > > > > --
> > > > > Michael Tissington
> > > > > http://www.tabtag.com
> > > > > http://www.oaklodge.com
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ken, Sue, Dmitry, any ideas? (Addin Settings1.Settings) Mike Microsoft Outlook Program Addins 1 19th Dec 2007 08:28 PM
Follow-up for Dmitry: Redemption and Reg-Free COM, how-to? =?Utf-8?B?TWlrZQ==?= Microsoft Outlook Program Addins 1 4th Oct 2007 07:33 PM
Dmitry - Outlook Warning =?Utf-8?B?SlQ=?= Microsoft Outlook VBA Programming 2 8th Aug 2006 02:27 PM
Thanks Dmitry gxdata Microsoft Outlook VBA Programming 0 7th Aug 2006 10:19 AM
clipboards kstorm Microsoft Word Document Management 1 30th May 2004 02:33 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:48 PM.