[NOTEPAD] Implement File->New Window

*Windows starts a new own's instance too, when clicking on "New Window" (Tested by @HBelusca)
This commit is contained in:
Robert Naumann 2021-02-11 22:04:36 +01:00
parent 61f4b120fc
commit b774ec5ca6
41 changed files with 89 additions and 5 deletions

View file

@ -415,6 +415,13 @@ VOID DIALOG_FileNew(VOID)
}
}
VOID DIALOG_FileNewWindow(VOID)
{
TCHAR pszNotepadExe[MAX_PATH];
GetModuleFileName(NULL, pszNotepadExe, ARRAYSIZE(pszNotepadExe));
ShellExecute(NULL, NULL, pszNotepadExe, NULL, NULL, SW_SHOWNORMAL);
}
VOID DIALOG_FileOpen(VOID)
{
OPENFILENAME openfilename;