public bool HandleMenuMessage(ref Message m) {
//For send to menu in the ListView context menu
if (m.Msg == (int)WM.WM_INITMENUPOPUP | m.Msg == (int)WM.WM_MEASUREITEM | m.Msg == (int)WM.WM_DRAWITEM) {
if (m.Msg == (int)WM.WM_INITMENUPOPUP && m.WParam == _NewMenuPtr) {
_ShellView.IsRenameNeeded = true;
}
if (m_ComInterface2 != null) {
return 0 == (int)m_ComInterface2.HandleMenuMsg(m.Msg, m.WParam, m.LParam);
}
} else if (m.Msg == (int)WM.WM_MENUCHAR) {
if (m_ComInterface3 != null) {
var ptr = IntPtr.Zero;
return 0 == (int)m_ComInterface3.HandleMenuMsg2(m.Msg, m.WParam, m.LParam, out ptr);
}
}
return false;
}