Greetings :)
I'm trying to intercept some Win32 messages; in particular I want to respond to a TVN_GETDISPINFO
notification. This notification is sent in the form of a WM_NOTIFY
(see here) and contains a pointer to NMTVDISPINFO
which gives access to a TVITEM
. TVITEM
has a LPTSTR pszText
field that I want to modify.
Here's what I don't understand: If the TVN_GETDISPINFO
notification is sent as a WM_NOTIFY
message, how to I distinguish it from any other WM_NOTIFY
message?
protected override void WndProc(ref Message m)
{
if (m.Msg == 0x004E) //WM_NOTIFY taken from WinUser.h
{
//How do I know if the message is a TVN_GETDISPINFO notification?
}
base.WndProc(ref m);
}
Thank you for reading my post. Any tips, hints or suggestions are welcomed :)