- minor update to mru list functions

- stubs for COMCTL32_411 to COMCTL32_413
This commit is contained in:
Eric Kohl 1999-11-23 23:14:53 +00:00 committed by Alexandre Julliard
parent 81e314b14f
commit 33910f17ff
2 changed files with 82 additions and 29 deletions

View File

@ -182,9 +182,9 @@ init COMCTL32_LibMain
404 stub CreateMRUListLazyW@16 404 stub CreateMRUListLazyW@16
410 stdcall COMCTL32_410(long long long long) comctl32_410 410 stdcall COMCTL32_410(long long long long) comctl32_410
411 stub COMCTL32_411 411 stdcall COMCTL32_411(long long long) comctl32_411
412 stub COMCTL32_412 412 stdcall COMCTL32_412(long long long) comctl32_412
413 stub COMCTL32_413 413 stdcall COMCTL32_413(long long long long) comctl32_413
# this is actually ordinal 70 in COMCTL32 v5.0 # this is actually ordinal 70 in COMCTL32 v5.0
414 stdcall InitMUILanguage(long) InitMUILanguage 414 stdcall InitMUILanguage(long) InitMUILanguage

View File

@ -410,15 +410,15 @@ COMCTL32_GetSize (LPVOID lpMem)
* *
*/ */
typedef struct tagMRUINFO typedef struct tagCREATEMRULIST
{ {
DWORD dwParam1; DWORD cbSize;
DWORD dwParam2; DWORD nMaxItems;
DWORD dwParam3; DWORD dwFlags;
HKEY hkeyMain; HKEY hKey;
LPCSTR lpszSubKey; LPCSTR lpszSubKey;
DWORD dwParam6; DWORD lpfnCompare;
} MRUINFO, *LPMRUINFO; } CREATEMRULIST, *LPCREATEMRULIST;
typedef struct tagMRU typedef struct tagMRU
@ -431,8 +431,8 @@ typedef struct tagMRU
DWORD dwParam6; DWORD dwParam6;
} MRU, *HMRU; } MRU, *HMRU;
LPVOID WINAPI HANDLE WINAPI
CreateMRUListLazyA (LPMRUINFO lpmi, DWORD dwParam2, CreateMRUListLazyA (LPCREATEMRULIST lpcml, DWORD dwParam2,
DWORD dwParam3, DWORD dwParam4); DWORD dwParam3, DWORD dwParam4);
@ -445,17 +445,17 @@ CreateMRUListLazyA (LPMRUINFO lpmi, DWORD dwParam2,
* RETURNS * RETURNS
*/ */
LPVOID WINAPI HANDLE WINAPI
CreateMRUListA (LPMRUINFO lpmi) CreateMRUListA (LPCREATEMRULIST lpcml)
{ {
return CreateMRUListLazyA (lpmi, 0, 0, 0); return CreateMRUListLazyA (lpcml, 0, 0, 0);
} }
DWORD WINAPI DWORD WINAPI
FreeMRUListA (HMRU hmru) FreeMRUListA (HANDLE hMRUList)
{ {
FIXME("(%p) empty stub!\n", hmru); FIXME("(%p) empty stub!\n", hMRUList);
#if 0 #if 0
if (!(hmru->dwParam1 & 1001)) { if (!(hmru->dwParam1 & 1001)) {
@ -469,7 +469,7 @@ FreeMRUListA (HMRU hmru)
COMCTL32_Free32 (hmru->lpszMRUString); COMCTL32_Free32 (hmru->lpszMRUString);
#endif #endif
return COMCTL32_Free (hmru); return COMCTL32_Free ((LPVOID)hMRUList);
} }
@ -496,8 +496,8 @@ FindMRUData (DWORD dwParam1, DWORD dwParam2, DWORD dwParam3, DWORD dwParam4)
} }
LPVOID WINAPI HANDLE WINAPI
CreateMRUListLazyA (LPMRUINFO lpmi, DWORD dwParam2, DWORD dwParam3, DWORD dwParam4) CreateMRUListLazyA (LPCREATEMRULIST lpcml, DWORD dwParam2, DWORD dwParam3, DWORD dwParam4)
{ {
/* DWORD dwLocal1; * /* DWORD dwLocal1; *
* HKEY hkeyResult; * * HKEY hkeyResult; *
@ -511,20 +511,24 @@ CreateMRUListLazyA (LPMRUINFO lpmi, DWORD dwParam2, DWORD dwParam3, DWORD dwPara
/* internal variables */ /* internal variables */
LPVOID ptr; LPVOID ptr;
FIXME("(%p) empty stub!\n", lpmi); FIXME("(%p) empty stub!\n", lpcml);
if (lpmi) { if (lpcml == NULL)
FIXME("(%lx %lx %lx %lx \"%s\" %lx)\n", return NULL;
lpmi->dwParam1, lpmi->dwParam2, lpmi->dwParam3,
(DWORD)lpmi->hkeyMain, lpmi->lpszSubKey, lpmi->dwParam6); if (lpcml->cbSize < sizeof(CREATEMRULIST))
} return NULL;
FIXME("(%lu %lu %lx %lx \"%s\" %lx)\n",
lpcml->cbSize, lpcml->nMaxItems, lpcml->dwFlags,
(DWORD)lpcml->hKey, lpcml->lpszSubKey, lpcml->lpfnCompare);
/* dummy pointer creation */ /* dummy pointer creation */
ptr = COMCTL32_Alloc (32); ptr = COMCTL32_Alloc (32);
FIXME("-- ret = %p\n", ptr); FIXME("-- ret = %p\n", ptr);
return ptr; return (HANDLE)ptr;
} }
@ -2086,6 +2090,55 @@ BOOL WINAPI comctl32_410( HWND hw, DWORD b, DWORD c, DWORD d) {
return TRUE; return TRUE;
} }
/**************************************************************************
* comctl32_411 [COMCTL32.411]
*
* FIXME: What's this supposed to do?
* Parameter 1 is an HWND, you're on your own for the rest.
*/
BOOL WINAPI comctl32_411( HWND hw, DWORD b, DWORD c) {
FIXME_(commctrl)("(%x, %lx, %lx): stub!\n", hw, b, c);
return TRUE;
}
/**************************************************************************
* comctl32_412 [COMCTL32.412]
*
* FIXME: What's this supposed to do?
* Parameter 1 is an HWND, you're on your own for the rest.
*/
BOOL WINAPI comctl32_412( HWND hwnd, DWORD b, DWORD c)
{
FIXME_(commctrl)("(%x, %lx, %lx): stub!\n", hwnd, b, c);
if (IsWindow (hwnd) == FALSE)
return FALSE;
if (b == 0)
return FALSE;
return TRUE;
}
/**************************************************************************
* comctl32_413 [COMCTL32.413]
*
* FIXME: What's this supposed to do?
* Parameter 1 is an HWND, you're on your own for the rest.
*/
BOOL WINAPI comctl32_413( HWND hw, DWORD b, DWORD c, DWORD d) {
FIXME_(commctrl)("(%x, %lx, %lx, %lx): stub!\n", hw, b, c, d);
return TRUE;
}
/************************************************************************* /*************************************************************************
* InitMUILanguage [COMCTL32.70] * InitMUILanguage [COMCTL32.70]
* *
@ -2093,9 +2146,9 @@ BOOL WINAPI comctl32_410( HWND hw, DWORD b, DWORD c, DWORD d) {
* *
*/ */
BOOL WINAPI InitMUILanguage( DWORD a ) { BOOL WINAPI InitMUILanguage( LANGID uiLang) {
FIXME_(commctrl)("(%lx): stub!\n", a); FIXME_(commctrl)("(%lx): stub!\n", uiLang);
return TRUE; return TRUE;
} }