mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00: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:
parent
38b7a6816c
commit
1e75ea8a82
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue