Windows API have one function "SHAutoComplete" from "shlwapi.dll"
But I do try fail, somebody can help me ? I hope have like IE address URL autocomplete function.
- Code: Select all Expand view
// harbour: AutoComplete( hWnd )
HRESULT (CALLBACK* lpSHAutoComplete)(HWND ,DWORD);
HB_FUNC( AUTOCOMPLETE )
{
// LONG nRet;
LONG nRet;
HWND hWnd = (HWND) hb_parnl(1); // Dialog hWnd
HINSTANCE hIns = LoadLibrary("shlwapi.dll");
if (hIns != NULL) {
(FARPROC *) lpSHAutoComplete = GetProcAddress(hIns, "SHAutoComplete");
if (lpSHAutoComplete != NULL) {
nRet = lpSHAutoComplete( hWnd, 0);
hb_retnl( nRet );
}
else
hb_retnl(-2);
FreeLibrary(hIns);
}
else
hb_retnl(-1);
return;
}