Article View: borland.public.cppbuilder.nativeapi
Article #1165Re: How to paste the text in the clip board in to other application?
From: Vladimir Stefanovic
Date: Thu, 18 Oct 2007 17:50
Date: Thu, 18 Oct 2007 17:50
20 lines
1376 bytes
1376 bytes
> Fail
Works fine for me, and I've tested it right now again.
However, one modification could be of useful.
Instead of:
BringWindowToTop( notepad );
...it's better:
if ( IsIconic( notepad ) )
{
ShowWindow( notepad, SW_RESTORE );
}
SetForegroundWindow( notepad );
Because of potential minimized state of Notepad.
--
Best Regards,
Vladimir Stefanovic
Technical Details
Message-ID:
<47179ce3@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<470aff65@newsgroups.borland.com> <470b5fa8@newsgroups.borland.com> <47179a22@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,a7950ca98ad5a21f X-Google-Attributes: gid10cc67,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "Vladimir Stefanovic" <antivari@sbb.co.yu> Newsgroups: borland.public.cppbuilder.nativeapi References: <470aff65@newsgroups.borland.com> <470b5fa8@newsgroups.borland.com> <47179a22@newsgroups.borland.com> Subject: Re: How to paste the text in the clip board in to other application? Date: Thu, 18 Oct 2007 19:50:27 +0200 Lines: 22 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 87.116.181.111 Message-ID: <47179ce3@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1192729827 87.116.181.111 (18 Oct 2007 10:50:27 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail