S
Schemer
Hello,
I'm trying to modify a C# sample app (Scribble) such that the user can draw
w/o holding the mouse button down -- first mouse click
turns on drawing, moving the mouse draws, and the second mouse click turns
it off.
In the MouseUpHandler, I set the Capture property:
this.Capture = true;
Some TRACE output in the MouseMove handler shows that when the cursor leaves
the mdi child window, it stops getting the mouse messages. Also, after
setting Capture to true in the mouseup handler (after calling
base.OnMouseUp()), Capture is _false_
in the mousemove handler.
While I'm just experimenting with this app, eventually I'll be drawing
rubber band shapes and I need to have the rubber band drawing track with the
mouse, even when it is outside the client window. Is there a way to
accomplish this?
Also, when a window has 'captured' the mouse, should it get all the keyboard
input as well, or does something else need to be done? For example, in a
differnt app, when I am drawing a rubber rectangle with the mouse button
held down, my shortcut key to bring up the Open File dialog still works.
TIA for any ideas.
I'm trying to modify a C# sample app (Scribble) such that the user can draw
w/o holding the mouse button down -- first mouse click
turns on drawing, moving the mouse draws, and the second mouse click turns
it off.
In the MouseUpHandler, I set the Capture property:
this.Capture = true;
Some TRACE output in the MouseMove handler shows that when the cursor leaves
the mdi child window, it stops getting the mouse messages. Also, after
setting Capture to true in the mouseup handler (after calling
base.OnMouseUp()), Capture is _false_
in the mousemove handler.
While I'm just experimenting with this app, eventually I'll be drawing
rubber band shapes and I need to have the rubber band drawing track with the
mouse, even when it is outside the client window. Is there a way to
accomplish this?
Also, when a window has 'captured' the mouse, should it get all the keyboard
input as well, or does something else need to be done? For example, in a
differnt app, when I am drawing a rubber rectangle with the mouse button
held down, my shortcut key to bring up the Open File dialog still works.
TIA for any ideas.