user32: Destroy EDITSTATE structure in the WM_NCDESTROY messageprocessing
Dmitry Timoshkov
dmitry at codeweavers.com
Sun Nov 15 23:31:35 CST 2009
"Ilya Shpigor" <shpigor at 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.
More information about the wine-devel
mailing list