` Comment on an Icetips Article
Icetips - Templates, Tools & Utilities for Clarion Developers

Templates, Tools and Utilities
for Clarion Developers

Add a comment to an Icetips Article

Please add your comments to this article. Please note that you must provide both a name and a valid email address in order for us to publish your comment. Comments are moderated and are not visible until they have been approved. Spam is never approved!

Your Name:  
Email:  
Header text/Subject:  

Please enter your comment in the box below:

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 November 23, 2024, 3:31 am
This article has been viewed 35206 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: