Re: user32: Destroy EDITSTATE structure in the WM_NCDESTROY messageprocessing
Nov. 16, 2009
5:31 a.m.
"Ilya Shpigor" <shpigor(a)etersoft.ru> wrote:
+ SendMessageA(hWnd, WM_SETTEXT, 0, (LPARAM)str); + SendMessageA(hWnd, WM_GETTEXT, MAXLEN, (LPARAM)buf); + ok(!lstrcmp(buf, str), "Wrong contents of edit: %s\n", buf); + lstrcpy(buf, ""); + SendMessageA(hWnd, WM_DESTROY, 0, 0); + SendMessageA(hWnd, WM_GETTEXT, MAXLEN, (LPARAM)buf); + ok(!lstrcmp(buf, str), "Wrong contents of edit: %s\n", buf); + lstrcpy(buf, ""); + SendMessageA(hWnd, WM_NCDESTROY, 0, 0); + SendMessageA(hWnd, WM_GETTEXT, MAXLEN, (LPARAM)buf); + ok(!lstrcmp(buf, ""), "Wrong contents of edit: %s\n", buf);
You should check return values of each SendMessage above. -- Dmitry.
5974
Age (days ago)
5974
Last active (days ago)
0 comments
1 participants
participants (1)
-
Dmitry Timoshkov