Imagine a case where you want to duplicate (emulate) mouse cursor movements in your window (as in drawing a cursor overlay). I have a window and I want a very exact similar mouse icon moves when user moves the mouse but in boundaries of my window (ie movements are scaled to boundaries of my window). It means if there are 3 monitor setup and my window is full size in monitor 2 (the middle one). Moving cursor from very left of monitor 1 to very right of monitor 3 will cause a duplicated cursor in my window moves from very left of my window to very right of my window.
I have had flickering experiences with GDI before. So before I wanted to implement this I was wondering what are the best (and hopefully easiest/fastest coding) ways to implement this. (I had setup a RAW input so I get a message for every movement of mouse)
Here are my ideas : GDI : maybe XOR drawing or clearing/drawing into buffer. GDI+ : ? DirectDraw : overlay methods ? (I haven't yet fully looked at them) Direct3D or Windows Media APIs ?
My main window is also updating itself in a timer (500ms) and just bitblt into that.
Also if anybody knows of similar project or tutorial or sources that would be great.
Thanks