"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.