comctl32/dsa: Implement DSA_GetSize().

This commit is contained in:
Nikolay Sivov 2015-03-31 08:52:49 +03:00 committed by Alexandre Julliard
parent ff0634dfe1
commit 82bab3283b
2 changed files with 22 additions and 1 deletions

View File

@ -127,11 +127,12 @@
@ stdcall DestroyPropertySheetPage(long)
@ stdcall -private DllGetVersion(ptr)
@ stdcall -private DllInstall(long wstr)
@ stdcall DPA_GetSize(ptr)
@ stdcall -ret64 DPA_GetSize(ptr)
@ stdcall DrawShadowText(long wstr long ptr long long long long long)
@ stdcall DrawStatusText(long ptr ptr long) DrawStatusTextA
@ stdcall DrawStatusTextW(long ptr wstr long)
@ stdcall DSA_Clone(ptr)
@ stdcall -ret64 DSA_GetSize(ptr)
@ stdcall FlatSB_EnableScrollBar (long long long)
@ stdcall FlatSB_GetScrollInfo (long long ptr)
@ stdcall FlatSB_GetScrollPos (long long)

View File

@ -470,3 +470,23 @@ HDSA WINAPI DSA_Clone(HDSA hdsa)
return dest;
}
/**************************************************************************
* DSA_GetSize [COMCTL32.@]
*
* Returns allocated memory size for this array
*
* PARAMS
* hdsa [I] handle to the dynamic storage array
*
* RETURNS
* Size
*/
ULONGLONG WINAPI DSA_GetSize(HDSA hdsa)
{
TRACE("(%p)\n", hdsa);
if (!hdsa) return 0;
return sizeof(*hdsa) + hdsa->nMaxCount*hdsa->nItemSize;
}