mirror of
https://github.com/reactos/reactos.git
synced 2024-07-02 10:45:24 +00:00
[USER32]
Implement now-documented MB_GetString. See: https://msdn.microsoft.com/en-us/library/windows/desktop/dn910915(v=vs.85).aspx and: http://undoc.airesoft.co.uk/user32.dll/MB_GetString.php for more information. svn path=/trunk/; revision=69936
This commit is contained in:
parent
232df32115
commit
55e84e3a66
|
@ -1046,11 +1046,21 @@ MessageBeep(UINT uType)
|
|||
|
||||
/*
|
||||
* @implemented
|
||||
*
|
||||
* See: https://msdn.microsoft.com/en-us/library/windows/desktop/dn910915(v=vs.85).aspx
|
||||
* and: http://undoc.airesoft.co.uk/user32.dll/MB_GetString.php
|
||||
* for more information.
|
||||
*/
|
||||
LPWSTR WINAPI MB_GetString(DWORD string)
|
||||
LPCWSTR WINAPI MB_GetString(UINT wBtn)
|
||||
{
|
||||
UNIMPLEMENTED;
|
||||
return NULL;
|
||||
LPCWSTR btnStr = NULL;
|
||||
|
||||
/* The allowable IDs are between IDOK (0) and IDCONTINUE (11) inclusive */
|
||||
if (wBtn >= IDCONTINUE)
|
||||
return NULL;
|
||||
|
||||
LoadStringW(User32Instance, wBtn, (LPWSTR)&btnStr, 0);
|
||||
return btnStr;
|
||||
}
|
||||
|
||||
/* EOF */
|
||||
|
|
Loading…
Reference in a new issue