wordpad: Empty the richedit undo buffer on creation.

This commit is contained in:
Dylan Smith 2008-05-08 00:07:59 -04:00 committed by Alexandre Julliard
parent 864e24d2e5
commit 2b52dd8450

View file

@ -2419,6 +2419,7 @@ int CALLBACK WinMain(HINSTANCE hInstance, HINSTANCE hOldInstance, LPSTR szCmdPar
set_caption(NULL);
set_bar_states();
set_fileformat(SF_RTF);
SendMessageW(hEditorWnd, EM_EMPTYUNDOBUFFER, 0, 0);
hPopupMenu = LoadMenuW(hInstance, MAKEINTRESOURCEW(IDM_POPUP));
get_default_printer_opts();
target_device(hMainWnd, wordWrap[reg_formatindex(fileFormat)]);