🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Frontpage not recognizing HTML clipboard content (while outlook does)

#13088
From: Kris
Date: Sun, 26 Oct 2003 12:17
40 lines
2238 bytes
Hi,

I've have put some HTML content on the clipboard using following code
:
String HTML_ClipboardData
   =FormatClipboardString(MyRichEdit,HTML_TEXT_FORMAT,Content);
HTML_ClipboardData
   ="<HTML><BODY><PRE>MY HTML <B>TEST</B> SAMPLE</PRE></BODY></HTML>
";

HTML_hglbCopy= GlobalAlloc(GMEM_MOVEABLE,HTML_ClipboardData.Length());
if (HTML_hglbCopy!=NULL)
{
   HTML_lptstrCopy=(char*)GlobalLock(HTML_hglbCopy);

memcpy(HTML_lptstrCopy,HTML_ClipboardData.c_str(),HTML_ClipboardData.Length());
   // First Let's see how 'HTML Format' is registered
   HTML_ClipboardID=RegisterClipboardFormat("HTML Format");
   SetClipboardData(HTML_ClipboardID,HTML_hglbCopy);
   GlobalUnlock(HTML_hglbCopy);
}

Actually this worked pretty good. Both Outlook and Outlook express
pick the HTML-content from the clipboard (I've also put Text and Rich
Text content also on the clipboard).

But I recently noticed that Frontpage (2003) does not pick the HTML
content. In fact it always chooses the RichEdit content (and if that's
not available it picks the plain text content), but it never picks my
HTML content.

That's pretty strange since I clearly put HTML content on the
clipboard :
   HTML_ClipboardID=RegisterClipboardFormat("HTML Format");

Any ideas why Frontpage is rejecting/ignoring my HTML content ?

Thanks,

Kris
Technical Details
Message-ID: <8genpv8c6stmgjkipugr5s8kbc0j82qfmq@4ax.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.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,177767db8f4762b4,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-10-26 04:39:03 PST
From: Kris <myEmail@email.com>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Frontpage not recognizing HTML clipboard content (while outlook does)
Date: Sun, 26 Oct 2003 13:17:41 +0100
Message-ID: <8genpv8c6stmgjkipugr5s8kbc0j82qfmq@4ax.com>
X-Newsreader: Forte Agent 1.93/32.576 English (American)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 212.239.132.177
X-Trace: newsgroups.borland.com 1067170651 212.239.132.177 (26 Oct 2003 04:17:31 -0700)
Lines: 46
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail