Author: hbelusca
Date: Thu Nov 19 00:30:27 2015
New Revision: 69936
URL:
http://svn.reactos.org/svn/reactos?rev=69936&view=rev
Log:
[USER32]
Implement now-documented MB_GetString. See:
https://msdn.microsoft.com/en-us/library/windows/desktop/dn910915(v=vs.85).… and:
http://undoc.airesoft.co.uk/user32.dll/MB_GetString.php for more information.
Modified:
trunk/reactos/win32ss/user/user32/windows/messagebox.c
Modified: trunk/reactos/win32ss/user/user32/windows/messagebox.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/user32/window…
==============================================================================
--- trunk/reactos/win32ss/user/user32/windows/messagebox.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/user32/windows/messagebox.c [iso-8859-1] Thu Nov 19
00:30:27 2015
@@ -1046,11 +1046,21 @@
/*
* @implemented
- */
-LPWSTR WINAPI MB_GetString(DWORD string)
-{
- UNIMPLEMENTED;
- return NULL;
+ *
+ * See:
https://msdn.microsoft.com/en-us/library/windows/desktop/dn910915(v=vs.85).…
+ * and:
http://undoc.airesoft.co.uk/user32.dll/MB_GetString.php
+ * for more information.
+ */
+LPCWSTR WINAPI MB_GetString(UINT wBtn)
+{
+ 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 */