I'm about to modify the message loop in my winform to process the
WM_CAPTURECHANGED message and fire an event, before I do I would just like
to check there isn't already an event present for this? Haven't noticed one
so far, but it seems strange to have it left out! :)

thanks,
n!

Re: Capture Lost by Richard

Richard
Thu Feb 26 14:42:43 CST 2004

What's the handle? A Control or just the form?

If its for the for, you'll have to roll your own.

"n!" <nfactorial@nomailplease.com> wrote in message
news:uVJwlzJ$DHA.3816@TK2MSFTNGP09.phx.gbl...
> I'm about to modify the message loop in my winform to process the
> WM_CAPTURECHANGED message and fire an event, before I do I would just like
> to check there isn't already an event present for this? Haven't noticed
one
> so far, but it seems strange to have it left out! :)
>
> thanks,
> n!
>
>



Re: Capture Lost by Stoitcho

Stoitcho
Thu Feb 26 14:54:11 CST 2004

Hi,

No there is no such an event in WindowsForms

--
B\rgds
100

"n!" <nfactorial@nomailplease.com> wrote in message
news:uVJwlzJ$DHA.3816@TK2MSFTNGP09.phx.gbl...
> I'm about to modify the message loop in my winform to process the
> WM_CAPTURECHANGED message and fire an event, before I do I would just like
> to check there isn't already an event present for this? Haven't noticed
one
> so far, but it seems strange to have it left out! :)
>
> thanks,
> n!
>
>



Re: Capture Lost by n!

n!
Thu Feb 26 14:52:38 CST 2004

> What's the handle? A Control or just the form?
>
> If its for the for, you'll have to roll your own.

I'm not entirely sure what you mean, but I can put the handler in either the
control or form. I have a central "capture manager" singleton that all mouse
input gets redirected to, which in turn passes it onto the applications
currently active tool. I'm not interested in the window gaining the capture,
only the change notification itself so I can inform the tool to cancel its
operation.

Thanks
n!



Re: Capture Lost by n!

n!
Thu Feb 26 14:56:35 CST 2004

> No there is no such an event in WindowsForms

Thanks, at least I know I'm not blind! :)

n!