` ChangeClipboardChain (Chris Thornton) - Icetips Article
Icetips - Templates, Tools & Utilities for Clarion Developers

Templates, Tools and Utilities
for Clarion Developers

Icetips Article

Back to article list   Search Articles     Add Comment     Printer friendly     Direct link  

Windows API: ChangeClipboardChain
2003-01-31 -- Chris Thornton
 
That's not enough. You need to also update your m_hWndNext if you get a wm_ChangeCBChain message from Windows. That means that the guy who you're pointing to, just left the party and now you've got a new "next guy" to keep track of. Please review my developer information, particularly the "common clipboard mistakes", and "proper implementation of clipboard viewers": http://www.thornsoft.com/developer.htm Also, if you care to test with ClipMate, I'll send you a free key. Just let me know what you found (good or bad). -- Try ClipMate free for 30 days! http://www.thornsoft.com "Michael S. Sanders" wrote in message news:b1cf4o$9ke$1@news-asp.cifnet.net... > I'm subclassing a form in order to catch clipboard fragments. > I'm using the API call "SetClipboardViewer" to do this. > When the app is unloaded I call ChangeClipboardChain. > > This appears to work flawlessly in working with other apps that > also monitor the clipboard. The only thing I'm wondering about > is removing my app from the chain (so I don't interrupt other apps) > I'm passing the return value of: > > ' on form load > m_hWndNext = SetClipboardViewer(Me.hWnd) > > to ChangeClipboardChain: > > ' on form unload > ChangeClipboardChain(Me.hWnd, m_hWndNext) > > I'm all but positive this correct can anyone with experiance in this area > confirm that this is correct? > > later on, > Mike > > -- > The challenge - Managing your software sales simply. > The solution - User Database by Vega-Tek. > www.vega-tek.com > >


Today is April 26, 2024, 1:18 am
This article has been viewed 35104 times.
Google search has resulted in 21 hits on this article since January 25, 2004.



Back to article list   Search Articles   Add Comment   Printer friendly

Login

User Name:

Password: