[NOTEPAD] Improve UTF-8 encoding support and improve status bar (#4649)

- Add write support for UTF-8 without BOM.
- Add "UTF-8 with BOM" encoding to the "Save As" dialog.
- Show line endings and encoding on the status bar (like Notepad in Windows 10).
- Remove ignored WS_EX_STATICEDGE

- Add grip to the status window.
Co-authored-by: Hermès BÉLUSCA - MAÏTO <hermes.belusca-maito@reactos.org>
This commit is contained in:
Thamatip Chitpong 2022-09-05 23:21:27 +07:00 committed by GitHub
parent 6b70fff808
commit d73b6cedf2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
45 changed files with 152 additions and 26 deletions

View file

@ -427,8 +427,13 @@ NOTEPAD_WndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
LOWORD(wParam),
SWP_NOZORDER);
if (hdwp != NULL)
EndDeferWindowPos(hdwp);
if (hdwp == NULL)
break;
EndDeferWindowPos(hdwp);
/* Align status bar parts, only if the status bar resize operation succeeds */
DIALOG_StatusBarAlignParts();
}
else
SetWindowPos(Globals.hEdit,