The MouseDown event is documented to be supported in the CF but doesn't
actually work. Is there a way to use API calls to hook the mouse events and
get messages sent to a MessageWindow without creating a native dll?

Or is there a way to subclass the treeview to get this event to work? It
works if I create a custom control that inherits from Control, but if I
inherit for TreeView and try to override the onMouseDown method, it is
ignored. I could build a new control from scratch, but it would be a lot of
bother and I shouldn't have to just to get a documented feature to work as
documented.

Re: TreeView, ListView MouseDown by Andrew

Andrew
Sun Oct 19 01:04:10 CDT 2003

Elmer,

Your only option at the moment is to use a native DLL.

Regards

Andrew
www.mcsoft.com.au

"Elmer Miller" <millere@empireco.nospam> wrote in message
news:%23FlCZe0kDHA.360@TK2MSFTNGP12.phx.gbl...
> The MouseDown event is documented to be supported in the CF but doesn't
> actually work. Is there a way to use API calls to hook the mouse events
and
> get messages sent to a MessageWindow without creating a native dll?
>
> Or is there a way to subclass the treeview to get this event to work? It
> works if I create a custom control that inherits from Control, but if I
> inherit for TreeView and try to override the onMouseDown method, it is
> ignored. I could build a new control from scratch, but it would be a lot
of
> bother and I shouldn't have to just to get a documented feature to work as
> documented.
>
>



Re: TreeView, ListView MouseDown by martyn

martyn
Wed Oct 22 04:43:15 CDT 2003

"Elmer Miller" <millere@empireco.nospam> wrote in message news:<#FlCZe0kDHA.360@TK2MSFTNGP12.phx.gbl>...
> The MouseDown event is documented to be supported in the CF but doesn't
> actually work. Is there a way to use API calls to hook the mouse events and
> get messages sent to a MessageWindow without creating a native dll?
>
> Or is there a way to subclass the treeview to get this event to work? It
> works if I create a custom control that inherits from Control, but if I
> inherit for TreeView and try to override the onMouseDown method, it is
> ignored. I could build a new control from scratch, but it would be a lot of
> bother and I shouldn't have to just to get a documented feature to work as
> documented.

I also found that the MouseDown event didn't work on the TreeView in
CF, So I am using the AfterSelect event to capture the clicked node.