[NOTEPAD] Add 'Now-printing' dialog (#5127)

Allow the user to cancel the print job.
- Add DIALOG_PRINTING dialog.
- Make the print job another thread.
- Let the thread communicate with the dialog box by PRINTING_MESSAGE.
- Add some resource strings.
CORE-18837
This commit is contained in:
Katayama Hirofumi MZ 2023-03-11 22:23:14 +09:00 committed by GitHub
parent b49b47fc84
commit 072503c1fc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
41 changed files with 812 additions and 68 deletions

View file

@ -31,6 +31,10 @@
#define ID_LINENUMBER 0x208
#define IDI_NPICON 0x209
#define IDC_LICENSE 0x20A
#define DIALOG_PRINTING 0x20B
#define IDC_PRINTING_STATUS 0x20C
#define IDC_PRINTING_FILENAME 0x20D
#define IDC_PRINTING_PAGE 0x20E
/* Commands */
#define CMD_NEW 0x100
@ -99,6 +103,11 @@
#define STRING_PRINTERROR 0x189
#define STRING_DEFAULTFONT 0x18A
#define STRING_LINE_NUMBER_OUT_OF_RANGE 0x18B
#define STRING_NOWPRINTING 0x18C
#define STRING_PRINTCANCELING 0x18D
#define STRING_PRINTCOMPLETE 0x18E
#define STRING_PRINTCANCELED 0x18F
#define STRING_PRINTFAILED 0x190
#define STRING_TEXT_DOCUMENT 0x200