🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

When is WM_DRAWCLIPBOARD sent?

#15938
From: Chris
Date: Wed, 04 Jun 2003 19:31
15 lines
1893 bytes
I have developed an application that is dependent on receiving
WM_DRAWCLIPBOARD messages.
It has to know when another program has caused a clipboard change, and when
it itself has caused a change. I'm wondering when this message is sent,
after SetClipboardData(), but before CloseClipboard() if it's called
multiple times, or after CloseClipboard() alone, or what? It has been
working fine now for some time, except when I tested it on a Windows 98 SE
machine, in this case, it seems to be sending this message more often, or at
least, at some point where on Windows XP it is not sent.

Even then, I'm not sure I like the way I'm doing it. I simply set a bool
value that says the next message was caused by my application, and in that
case the program ignores it. The problem is if this message never comes at
all, it will ignore the next message thats not from the program...
I'm using standard 'clipboard viewer' procedure.
Technical Details
Message-ID: <3ede491e$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!38.144.126.76.MISMATCH!feed2.newsreader.com!newsreader.com!newshosting.com!news-xfer1.atl.newshosting.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,c5ef94e94107b59a,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-06-04 12:40:04 PST
From: "Chris" <Chris8852@adelphia.net>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: When is WM_DRAWCLIPBOARD sent?
Date: Wed, 4 Jun 2003 15:31:40 -0400
Lines: 17
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 68.65.164.124
Message-ID: <3ede491e$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1054755102 68.65.164.124 (4 Jun 2003 12:31:42 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!38.144.126.76.MISMATCH!feed2.newsreader.com!newsreader.com!newshosting.com!news-xfer1.atl.newshosting.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail