Re: user32: Destroy EDITSTATE structure in the WM_NCDESTROY messageprocessing
16 Nov
2009
16 Nov
'09
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.
5873
Age (days ago)
5873
Last active (days ago)
0 comments
1 participants
participants (1)
-
Dmitry Timoshkov