Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

TVN_BEGINDRAG available to CF applications?

5 views
Skip to first unread message

Mark Erikson

unread,
Jan 8, 2006, 3:40:35 AM1/8/06
to
I'd really like to use drag-and-drop in a treeview for a program I'm
working on. Naturally, that's one of the capabilities Microsoft left
out of both CF 1.0 and CF 2.0, so I've been trying to work around it
and handle all the dragging the old-fashioned Win32 way, by catching
WM_NOTIFY and looking for TVN_BEGINDRAG. Unfortunately, so far I've
had no luck. I can get the parent's WM_NOTIFY, but I don't get any
appropriate results when I try to drag a node. I've tried using
ApplicationEx, replacing the WndProc using
Marshal.GetFunctionPointerForDelegate (based on a sample online -
google for "overriding a form's wndproc" "cf 2.0"), and the MSDN2
sample "How to: Subclass a TreeView by Using Native Callbacks". All of
them seem to show similar results. Either I'm consistently doing
something wrong, or the CF blocks the TVN_BEGINDRAG message.

Does anyone out there know if it is possible to catch that message?
Since I've got complete access to the WndProc of both the treeview and
the parent, I really would think that this message would show up.

Thanks in advance for any help.

Mark Erikson
http://www.isquaredsoftware.com

Mark Erikson

unread,
Jan 8, 2006, 3:43:20 AM1/8/06
to
0 new messages