Hi Glenn,

> I've been trying to get the ListView EditLabel feature to work. I can
> turn it on OK and have got the handle to the edit control and through
> that the control's contents. The problem is that the control is
created
> and destroyed automatically, and it is difficult to get access to the
> final data. According to MSDN, an LVN_ENDLABELEDIT notification is
sent
> just before the control is destroyed, but I can't figure out how to
get
> to that. Would the new "Hook" method work? Again, according to MSDN,
the
> LVN_ENDLABELEDIT notification is sent in the form of a WM_NOTIFY
> message. Would I have to grab that? That sounds like it may be biting
> off more than I can chew... Can you offer any pointers? Could you
> perhaps post a snippet of code showing how the "Hook" method works?

You can't do this with Hooks at the moment. Personally I am not happy
with the current hook implementation as it does not satisfy what I
originally intended it to do. A new hook implementation should come in
the next few days, and I'll add the ability to hook notifications as
well as messages.

The problem is that WM_NOTIFY messages are delivered with an lParam that
is a pointer to a structure containing the notification code (like
LVN_ENDLABELEDIT). While you can use the current hooks implementation to
catch WM_NOTIFY and see the wParam and lParam arguments, the lParam
pointer is useless to you in Perl and you can't use Perl to resolve the
pointer and get the notification code from it.

Watch this space...

Steve

Reply via email to