mirror of
https://github.com/reactos/reactos.git
synced 2026-05-30 14:34:57 +08:00
[SHELL32] CDefView: Implement SFVM_GETNAMELENGTH callback (#6942)
Implementing missing folder view callbacks... JIRA issue: CORE-19616 - Call _DoFolderViewCB on LVN_BEGINLABELEDITW message. - Send EM_SETLIMITTEXT message if the limit was set.
This commit is contained in:
committed by
GitHub
parent
38b7a6816c
commit
1e75ea8a82
@@ -2238,6 +2238,11 @@ LRESULT CDefView::OnNotify(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandl
|
||||
PIDLIST_ABSOLUTE pidlFull = ILCombine(m_pidlParent, pidl);
|
||||
SHGetPathFromIDListW(pidlFull, szFullPath);
|
||||
|
||||
INT cchLimit = 0;
|
||||
_DoFolderViewCB(SFVM_GETNAMELENGTH, (WPARAM)pidlFull, (LPARAM)&cchLimit);
|
||||
if (cchLimit)
|
||||
::SendMessageW(hEdit, EM_SETLIMITTEXT, cchLimit, 0);
|
||||
|
||||
if (!SHELL_FS_HideExtension(szFullPath))
|
||||
{
|
||||
LPWSTR pszText = lpdi->item.pszText;
|
||||
|
||||
Reference in New Issue
Block a user