N
n!
Hiya,
It seems to me that when a user depresses the mouse button, the
control acts as though it is internally calling the win32 function
SetCapture. As can be seen by clicking the mouse inside a client area and
dragging it outside, the window continues to receive mouse messages. Whilst
this is great for the majority of the time, I'd like to disable this
functionality as I'd like to manage this myself for certain controls in my
application.
I originally thought I could disable it by using SetStyle(
ControlStyles.UserMouse, true ) in my control initialization, but I appear
to be getting the same behaviour. Is there anyway I can achieve this? (this
is in C#, VS.NET2003, framework 1.1).
As an aside, could someone also clarify what setting UserMouse actually
does, as I haven't noticed any different behaviour so far?
Thanks,
n!
It seems to me that when a user depresses the mouse button, the
control acts as though it is internally calling the win32 function
SetCapture. As can be seen by clicking the mouse inside a client area and
dragging it outside, the window continues to receive mouse messages. Whilst
this is great for the majority of the time, I'd like to disable this
functionality as I'd like to manage this myself for certain controls in my
application.
I originally thought I could disable it by using SetStyle(
ControlStyles.UserMouse, true ) in my control initialization, but I appear
to be getting the same behaviour. Is there anyway I can achieve this? (this
is in C#, VS.NET2003, framework 1.1).
As an aside, could someone also clarify what setting UserMouse actually
does, as I haven't noticed any different behaviour so far?
Thanks,
n!