[SHELL32][SDK] Implement SHLimitInputCombo (#5521)

SHLimitInputCombo function sets limits on valid characters for a combobox control.
This function works like SHLimitInputEdit, but the target is a combobox instead of a textbox.
CORE-9277
This commit is contained in:
Katayama Hirofumi MZ 2023-08-04 22:29:05 +09:00 committed by GitHub
parent 5b40f6f353
commit 2e9d03da90
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 25 additions and 11 deletions

View file

@ -36,17 +36,6 @@ SHFindComputer(LPCITEMIDLIST pidl1, LPCITEMIDLIST pidl2)
return FALSE;
}
/*
* Unimplemented
*/
EXTERN_C BOOL
WINAPI
SHLimitInputCombo(HWND hWnd, LPVOID lpUnknown)
{
FIXME("SHLimitInputCombo() stub\n");
return FALSE;
}
/*
* Unimplemented
*/

View file

@ -2815,3 +2815,26 @@ SHLimitInputEdit(HWND hWnd, IShellFolder *psf)
return hr;
}
#ifdef __REACTOS__
/*************************************************************************
* SHLimitInputCombo [SHELL32.748]
*
* Sets limits on valid characters for a combobox control.
* This function works like SHLimitInputEdit, but the target is a combobox
* instead of a textbox.
*/
HRESULT WINAPI
SHLimitInputCombo(HWND hWnd, IShellFolder *psf)
{
HWND hwndEdit;
TRACE("%p %p\n", hWnd, psf);
hwndEdit = GetTopWindow(hWnd);
if (!hwndEdit)
return E_FAIL;
return SHLimitInputEdit(hwndEdit, psf);
}
#endif

View file

@ -644,6 +644,8 @@ BOOL WINAPI SHInitRestricted(LPCVOID unused, LPCVOID inpRegKey);
#define SMC_EXEC 4
INT WINAPI Shell_GetCachedImageIndex(LPCWSTR szPath, INT nIndex, UINT bSimulateDoc);
HRESULT WINAPI SHLimitInputCombo(HWND hWnd, IShellFolder *psf);
HRESULT WINAPI SHGetImageList(int iImageList, REFIID riid, void **ppv);
BOOL WINAPI GUIDFromStringW(