🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #10928

OLECMDID_COPY

#10928
From: Gintaras Kekys
Date: Fri, 05 Mar 2004 11:02
27 lines
1694 bytes
Hi.

Why this doesn't work:
CppWebBrowser->ExecWB((OLECMDID)OLECMDID_COPY,
(OLECMDEXECOPT)OLECMDEXECOPT_DODEFAULT);

while
CppWebBrowser->ExecWB((OLECMDID)OLECMDID_PASTE,
(OLECMDEXECOPT)OLECMDEXECOPT_DODEFAULT);

works ok? Specifically:

CppWebBrowser->ExecWB((OLECMDID)OLECMDID_SELECTALL,
(OLECMDEXECOPT)OLECMDEXECOPT_DODEFAULT);
CppWebBrowser->ExecWB((OLECMDID)OLECMDID_COPY,
(OLECMDEXECOPT)OLECMDEXECOPT_DODEFAULT);
CppWebBrowser->ExecWB((OLECMDID)OLECMDID_PASTE,
(OLECMDEXECOPT)OLECMDEXECOPT_DODEFAULT);

The first line works because the text in CppWebBrowser becomes selected;
the last line also works because the content of clipboard that was before I
issued second line is shown in CppWebBrowser.
What's wrong with the second line? Or with CppWebBrowser->ExecWB?

Best wishes,
Gintaras
Lithuania
Technical Details
Message-ID: <40485cef$2@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,baacddf44b56bff4,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2004-03-05 03:09:34 PST
Reply-To: "Gintaras Kekys" <gintaras-erasethis@sb.lt>
From: "Gintaras Kekys" <gintaras-erasethis@sb.lt>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: OLECMDID_COPY
Date: Fri, 5 Mar 2004 13:02:09 +0200
Lines: 30
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2720.3000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2727.1300
NNTP-Posting-Host: 213.190.40.141
Message-ID: <40485cef$2@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1078484207 213.190.40.141 (5 Mar 2004 02:56:47 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail