mirror of
https://github.com/reactos/reactos.git
synced 2024-12-29 10:35:28 +00:00
Implement GetMenuString A & W. Not fully tested.
svn path=/trunk/; revision=16516
This commit is contained in:
parent
5e3cc7bc94
commit
b2bf468fad
1 changed files with 22 additions and 4 deletions
|
@ -3850,7 +3850,7 @@ GetMenuState(
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* @unimplemented
|
* @implemented
|
||||||
*/
|
*/
|
||||||
int
|
int
|
||||||
STDCALL
|
STDCALL
|
||||||
|
@ -3861,13 +3861,22 @@ GetMenuStringA(
|
||||||
int nMaxCount,
|
int nMaxCount,
|
||||||
UINT uFlag)
|
UINT uFlag)
|
||||||
{
|
{
|
||||||
|
MENUITEMINFOA mii;
|
||||||
|
mii.dwTypeData = lpString;
|
||||||
|
mii.fMask = MIIM_STRING;
|
||||||
|
mii.cbSize = sizeof(MENUITEMINFOA);
|
||||||
|
mii.cch = nMaxCount;
|
||||||
|
|
||||||
UNIMPLEMENTED;
|
UNIMPLEMENTED;
|
||||||
return 0;
|
if(!(GetMenuItemInfoA( hMenu, uIDItem, (BOOL)!(MF_BYPOSITION & uFlag),&mii)))
|
||||||
|
return 0;
|
||||||
|
else
|
||||||
|
return mii.cch;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* @unimplemented
|
* @implemented
|
||||||
*/
|
*/
|
||||||
int
|
int
|
||||||
STDCALL
|
STDCALL
|
||||||
|
@ -3878,8 +3887,17 @@ GetMenuStringW(
|
||||||
int nMaxCount,
|
int nMaxCount,
|
||||||
UINT uFlag)
|
UINT uFlag)
|
||||||
{
|
{
|
||||||
|
MENUITEMINFOW miiW;
|
||||||
|
miiW.dwTypeData = lpString;
|
||||||
|
miiW.fMask = MIIM_STRING;
|
||||||
|
miiW.cbSize = sizeof(MENUITEMINFOW);
|
||||||
|
miiW.cch = nMaxCount;
|
||||||
|
|
||||||
UNIMPLEMENTED;
|
UNIMPLEMENTED;
|
||||||
return 0;
|
if(!(GetMenuItemInfoW( hMenu, uIDItem, (BOOL)!(MF_BYPOSITION & uFlag),&miiW)))
|
||||||
|
return 0;
|
||||||
|
else
|
||||||
|
return miiW.cch;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue