Fix inconsistency of Document List context menu
Document List context menu now appears only when files are selected. Fix #10463, close #10464
This commit is contained in:
parent
dab02db976
commit
5c52aff7a1
|
@ -147,12 +147,16 @@ INT_PTR CALLBACK VerticalFileSwitcher::run_dlgProc(UINT message, WPARAM wParam,
|
||||||
|
|
||||||
activateDoc(tlfs);
|
activateDoc(tlfs);
|
||||||
}
|
}
|
||||||
// Redirect NM_RCLICK message to Notepad_plus handle
|
|
||||||
NMHDR nmhdr;
|
if (nbSelectedFiles() >= 1)
|
||||||
nmhdr.code = NM_RCLICK;
|
{
|
||||||
nmhdr.hwndFrom = _hSelf;
|
// Redirect NM_RCLICK message to Notepad_plus handle
|
||||||
nmhdr.idFrom = ::GetDlgCtrlID(nmhdr.hwndFrom);
|
NMHDR nmhdr;
|
||||||
::SendMessage(_hParent, WM_NOTIFY, nmhdr.idFrom, reinterpret_cast<LPARAM>(&nmhdr));
|
nmhdr.code = NM_RCLICK;
|
||||||
|
nmhdr.hwndFrom = _hSelf;
|
||||||
|
nmhdr.idFrom = ::GetDlgCtrlID(nmhdr.hwndFrom);
|
||||||
|
::SendMessage(_hParent, WM_NOTIFY, nmhdr.idFrom, reinterpret_cast<LPARAM>(&nmhdr));
|
||||||
|
}
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue