Re: Capturing Mouse events outside Modal dialog box
- From: "Nobody" <nobody@xxxxxxx>
- Date: Sat, 24 Jun 2006 17:06:07 -0700
<goelparesh@xxxxxxxxx> wrote in message
news:1151166847.297085.98340@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi, I wanted to capture mouseUp events occuring outside my modal dialog
box.
SetCapture seems to work only when the mouse is first Held Down in the
dialog box and then dragged outside.
Is there a way I can capture mouseUp events occuring outside my modal
dialog box without requiring the user to drag the mouse?
TIA
Why would you want to capture WM_LBUTTONUP outside your dialog box if its
not there from some kind of drag operation? SetCapture() wont work because
capture is automatically released by the OS when your app is not the
foreground application.
You can use a mouse hook, or better yet a journal hook (better performance).
If you use a mouse hook, you are going to be injecting your DLL into every
process which is pretty obnoxious.
.
- Follow-Ups:
- Re: Capturing Mouse events outside Modal dialog box
- From: Gary Chanson
- Re: Capturing Mouse events outside Modal dialog box
- References:
- Capturing Mouse events outside Modal dialog box
- From: goelparesh
- Capturing Mouse events outside Modal dialog box
- Prev by Date: Re: Combobox width
- Next by Date: Re: Capturing Mouse events outside Modal dialog box
- Previous by thread: Re: Capturing Mouse events outside Modal dialog box
- Next by thread: Re: Capturing Mouse events outside Modal dialog box
- Index(es):
Relevant Pages
|