unsafe protected bool HandleNotify(ref Message m) { //const int TTN_SHOW = -521; //const int TTN_POP = -522; const int TTN_GETDISPINFO = -530; if (m.LParam == IntPtr.Zero) { return(false); } NativeMethods.NMHDR *lParam = (NativeMethods.NMHDR *)m.LParam; switch (lParam->code) { case TTN_GETDISPINFO: return(HandleGetDispInfo(ref m)); } return(false); }
unsafe private void WmReflectNotify(ref Message m) { NativeMethods.NMHDR *nmhdr = (NativeMethods.NMHDR *)m.LParam; switch (nmhdr->code) { case NativeMethods.NM_CUSTOMDRAW: WmCustomDraw(ref m); break; case NativeMethods.RBN_HEIGHTCHANGE: //Rebar高度改变以后发送此消息 break; case NativeMethods.RBN_CHEVRONPUSHED: WmReflectNotifyChevronPushed(ref m); break; case NativeMethods.RBN_DELETEDBAND: break; case NativeMethods.RBN_DELETINGBAND: break; } base.WndProc(ref m); }