protected bool HandleNotify(ref Message m)
{
// Can this ever happen? JPP 2009-05-22
if (m.LParam == IntPtr.Zero)
return false;
NativeMethods.NMHDR nmhdr = (NativeMethods.NMHDR)m.GetLParam(typeof(NativeMethods.NMHDR));
switch (nmhdr.code) {
case ToolTipControl.TTN_SHOW:
//System.Diagnostics.Debug.WriteLine("hdr TTN_SHOW");
//System.Diagnostics.Trace.Assert(this.ToolTip.Handle == nmhdr.hwndFrom);
return this.ToolTip.HandleShow(ref m);
case ToolTipControl.TTN_POP:
//System.Diagnostics.Debug.WriteLine("hdr TTN_POP");
//System.Diagnostics.Trace.Assert(this.ToolTip.Handle == nmhdr.hwndFrom);
return this.ToolTip.HandlePop(ref m);
case ToolTipControl.TTN_GETDISPINFO:
//System.Diagnostics.Debug.WriteLine("hdr TTN_GETDISPINFO");
//System.Diagnostics.Trace.Assert(this.ToolTip.Handle == nmhdr.hwndFrom);
return this.ToolTip.HandleGetDispInfo(ref m);
}
return false;
}