Re: treeview item events
- Posted by euman at bellsouth.net
Aug 11, 2001
I came in on the back end of this, you can return any message
from/to treeview with this.
-- tagNMHDR NMHDR_hwndFrom = 0,
NMHDR_idFrom = 4,
NMHDR_code = 8,
SIZEOF_NMHDR = 12
elsif iMsg = WM_NOTIFY then
id = peek4s(lParam + NMHDR_hwndFrom)
if id = TreeView then
iMsg = peek4s(lParam + NMHDR_code)
-- with the returned value "iMsg", any of the NM_* constants
-- work as well as the TVN_* notification messages...
ofcourse win32lib's way, Im not so sure about.....
this is how standard API codeing works.
Euman
euman at bellsouth.net
From: "Derek Parnell" <ddparnell at bigpond.com>
> There doesn't seem to be a way to trap mouse events (other than clicks) in a
> treeview. I guess the control intercepts mouse messages before your prgram
> gets to see them.
>
> From: <wick900 at operamail.com>
> > I was looking in the archives for information on treeviews, but most of
> > it didn't make sense. I want to figure out how to trigger an event when
> > an treeview item gets a onMouse() event (or an equivalent). Is this
> > possible?
|
Not Categorized, Please Help
|
|