"Deanna Earley" <
dee.e...@icode.co.uk> wrote in message news:jndkh7$5gd$1...@speranza.aioe.org...
Thanks Deanna, I appreciate your response.
I should have mentioned that I'm using C++, but I guess it isn't too difficult to translate from VB.
However, I only just got that far with GDI+, only having to use BitBlt from GDI.
That is, I captured a section of the screen and pasted it into my window just before you posted. :)
(By the way, I want an image of the screen rather than the desktop. GetDC(NULL) will do that.)
But I don't want to do the rubberbanding in my own window unless I can create a borderless window
the same size as the screen and BitBlt the screen image to it, making it transparent to the user.
I'm not sure I want to go that way unless I have to.
I want to capture parts of the screen so that I can BitBlt them back again while drawing the
rubberband, probably 4 bitmaps, one for each line.
My problem now is that I don't want to interact with anything outside my window while I'm drawing
it.
I don't want the cursor to change when it leaves my window, and I don't want buttons on other
windows to react to my mouse when passing over them etc.
For example, SetCapture( ) didn't work because it only captures mouse input for events within my
window.
I'm thinking that SetWindowsHook( ) may do it for me. At first glance, it seems that I don't have to
write a DLL to handle system mouse messages.
If anyone thinks I'm going in the wrong direction, please let me know.
Regards
Ron Francis
www.RonaldFrancis.com