mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
[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:
parent
5b40f6f353
commit
2e9d03da90
3 changed files with 25 additions and 11 deletions
|
@ -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
|
||||
*/
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue