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:
Hermès Bélusca-Maïto 2015-11-19 00:30:27 +00:00
parent 232df32115
commit 55e84e3a66

View file

@ -1046,11 +1046,21 @@ MessageBeep(UINT uType)
/* /*
* @implemented * @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; LPCWSTR btnStr = NULL;
/* The allowable IDs are between IDOK (0) and IDCONTINUE (11) inclusive */
if (wBtn >= IDCONTINUE)
return NULL; return NULL;
LoadStringW(User32Instance, wBtn, (LPWSTR)&btnStr, 0);
return btnStr;
} }
/* EOF */ /* EOF */