Author: jimtabor
Date: Sat Dec 10 07:03:33 2011
New Revision: 54636
URL:
http://svn.reactos.org/svn/reactos?rev=54636&view=rev
Log:
- Fix dialog themes support for get text.
Modified:
trunk/reactos/dll/win32/user32/windows/dialog.c
Modified: trunk/reactos/dll/win32/user32/windows/dialog.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/user32/windows/d…
==============================================================================
--- trunk/reactos/dll/win32/user32/windows/dialog.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/user32/windows/dialog.c [iso-8859-1] Sat Dec 10 07:03:33 2011
@@ -2148,8 +2148,10 @@
LPSTR lpString,
int nMaxCount)
{
- if (lpString && (nMaxCount > 0)) lpString[0] = '\0';
- return (UINT)SendDlgItemMessageA( hDlg, nIDDlgItem, WM_GETTEXT, nMaxCount,
(LPARAM)lpString );
+ HWND hWnd = GetDlgItem(hDlg, nIDDlgItem);
+ if ( hWnd ) return GetWindowTextA(hWnd, lpString, nMaxCount);
+ if ( nMaxCount ) *lpString = 0;
+ return 0;
}
@@ -2164,8 +2166,10 @@
LPWSTR lpString,
int nMaxCount)
{
- if (lpString && (nMaxCount > 0)) lpString[0] = '\0';
- return (UINT)SendDlgItemMessageW( hDlg, nIDDlgItem, WM_GETTEXT, nMaxCount,
(LPARAM)lpString );
+ HWND hWnd = GetDlgItem(hDlg, nIDDlgItem);
+ if ( hWnd ) return GetWindowTextW(hWnd, lpString, nMaxCount);
+ if ( nMaxCount ) *lpString = 0;
+ return 0;
}
/*