Need help with drag-and-drop visual representation (beyond cursor change)

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



I would like to be able to have a drag-and-drop operation from one
window to another give the visual appearance of a simple image being
dragged, with the image being visible and unchanged throughout its
journey, including over the desktop or whatever else is visible in the
background between the two windows.

This turned out to be pretty easy to do in the Mac version I
programmed first, so I'm hoping there is a similarly easy way with
MFC.

The image I want to show being dragged is actually just text with a
transparent background. It should appear along with the cursor.

Can anyone point me to some example code or outline the way to
proceed?

Thanks.

Bob Estes

.



Relevant Pages

  • RE: Masked Windows
    ... only with a completely transparent background (no title bar or anything, ... I'd like for a semi-transparent window to ... > sounds like you do need to use a memory DC and a bitmap, ... But how do I apply the mask? ...
    (microsoft.public.win32.programmer.ui)
  • RE: Masked Windows
    ... only with a completely transparent background (no title bar or anything, ... I'd like for a semi-transparent window to ... > sounds like you do need to use a memory DC and a bitmap, ... But how do I apply the mask? ...
    (microsoft.public.win32.programmer.gdi)
  • Re: Transparent Form with Opaque Text
    ... I've also tried writing directly to the form in FormPaint instead of a Label and both give same result. ... If another window goes on top of your non-painting window, then its image will remain even after it goes away. ... moved while maintaining a transparent background? ... As of Windows 2000, you can make what's called a "layered" window, and then you can use the SetLayeredWindowAttributes API function and some other related functions to control the opacity of various parts of your window. ...
    (alt.comp.lang.borland-delphi)
  • Re: Flash Player in my app
    ... The Flash player is installed as a browser plug-in. ... WebView object in your window, and load your swf file in there. ... even a non-rectangular shape, what Carbon/Cocoa API mechanisms could I ... Windows are rectangular, but they can have a transparent background, so ...
    (comp.sys.mac.programmer.help)
  • Re: How to destroy a window
    ... | But just destroying the window so that my app can go on. ... | setting the pointer to my window to null will not destroy it. ... The docs say that "dispose" releases the ... but really the visual appearance of the window (vs. its internal data ...
    (comp.lang.java.programmer)