Bob
Mon Apr 23 16:41:50 CDT 2007
A window should really only be concerned with what goes on inside it so
the correct way to do this is to capture the mouse.
The only other way to get notification of mouse operations outside your
window is to have the containing window send some message or fire some
event of its own that you can respond to.
You could, for example, have the child window subscribe to the
mouse-move events of the parent MDI frame.
--
Bob Powell [MVP]
Visual C#, System.Drawing
Ramuseco Limited .NET consulting
http://www.ramuseco.com
Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm
Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm
All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
VJ wrote:
> I want to detect and receive a event to my MDI window when the moves outside
> of the window.. I am unable to receive events.
>
> I know there is a case of sending a manual message (George Shepherd's Win
> FAQ) before opening Top Level windows or doing anything that take mouse
> focus away from the MDI window. Considering the scope of our application,
> this I feel might be an effort.
>
> Is this the only way? or any other way possible?
>
> VJ
>
>