https://git.reactos.org/?p=reactos.git;a=commitdiff;h=f5840df9e9a6fe3055d78…
commit f5840df9e9a6fe3055d7838a5704d0b5e2393847
Author: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
AuthorDate: Wed Mar 15 07:28:15 2023 +0900
Commit: GitHub <noreply(a)github.com>
CommitDate: Wed Mar 15 07:28:15 2023 +0900
[NOTEPAD] Delete license.c (no use) (#5159)
File license.c is not used. Reduce source code. CORE-18837
---
base/applications/notepad/license.c | 42 -------------------------------------
1 file changed, 42 deletions(-)
diff --git a/base/applications/notepad/license.c b/base/applications/notepad/license.c
deleted file mode 100644
index c218e273451..00000000000
--- a/base/applications/notepad/license.c
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * Notepad (license.h)
- *
- * Copyright 1997,98 Marcel Baur <mbaur(a)g26.ethz.ch>
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
- */
-
-#include "notepad.h"
-
-VOID WineLicense(HWND Wnd)
-{
- /* FIXME: should load strings from resources */
- LICENSE *License = &WineLicense_En;
- MessageBoxA(Wnd,
- License->License,
- License->LicenseCaption,
- MB_ICONINFORMATION | MB_OK);
-}
-
-
-VOID WineWarranty(HWND Wnd)
-{
- /* FIXME: should load strings from resources */
- LICENSE *License = &WineLicense_En;
- MessageBoxA(Wnd,
- License->Warranty,
- License->WarrantyCaption,
- MB_ICONEXCLAMATION | MB_OK);
-}
https://git.reactos.org/?p=reactos.git;a=commitdiff;h=fb1d9d722deae47f7c4d9…
commit fb1d9d722deae47f7c4d9d0f2b48f2d752f66b71
Author: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
AuthorDate: Wed Mar 15 07:27:29 2023 +0900
Commit: GitHub <noreply(a)github.com>
CommitDate: Wed Mar 15 07:27:29 2023 +0900
[NOTEPAD] Use new-style file header (#5160)
CORE-18837
---
base/applications/notepad/dialog.c | 27 +++++++--------------------
base/applications/notepad/dialog.h | 21 ++++-----------------
base/applications/notepad/main.c | 29 ++++++++---------------------
base/applications/notepad/notepad_res.h | 23 +++++------------------
base/applications/notepad/printing.c | 5 ++++-
base/applications/notepad/rsrc.rc | 21 +++++----------------
base/applications/notepad/settings.c | 25 ++++++-------------------
base/applications/notepad/text.c | 27 +++++++--------------------
8 files changed, 46 insertions(+), 132 deletions(-)
diff --git a/base/applications/notepad/dialog.c b/base/applications/notepad/dialog.c
index 5c78dadc39a..cc5efe0743f 100644
--- a/base/applications/notepad/dialog.c
+++ b/base/applications/notepad/dialog.c
@@ -1,24 +1,11 @@
/*
- * Notepad (dialog.c)
- *
- * Copyright 1998,99 Marcel Baur <mbaur(a)g26.ethz.ch>
- * Copyright 2002 Sylvain Petreolle <spetreolle(a)yahoo.fr>
- * Copyright 2002 Andriy Palamarchuk
- * Copyright 2023 Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * PROJECT: ReactOS Notepad
+ * LICENSE: LGPL-2.1-or-later (https://spdx.org/licenses/LGPL-2.1-or-later)
+ * PURPOSE: Providing a Windows-compatible simple text editor for ReactOS
+ * COPYRIGHT: Copyright 1998,99 Marcel Baur <mbaur(a)g26.ethz.ch>
+ * Copyright 2002 Sylvain Petreolle <spetreolle(a)yahoo.fr>
+ * Copyright 2002 Andriy Palamarchuk
+ * Copyright 2023 Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
*/
#include "notepad.h"
diff --git a/base/applications/notepad/dialog.h b/base/applications/notepad/dialog.h
index 43b70b4fa12..c9681df92f0 100644
--- a/base/applications/notepad/dialog.h
+++ b/base/applications/notepad/dialog.h
@@ -1,21 +1,8 @@
/*
- * Notepad (dialog.h)
- *
- * Copyright 1998 Marcel Baur <mbaur(a)g26.ethz.ch>
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * PROJECT: ReactOS Notepad
+ * LICENSE: LGPL-2.1-or-later (https://spdx.org/licenses/LGPL-2.1-or-later)
+ * PURPOSE: Providing a Windows-compatible simple text editor for ReactOS
+ * COPYRIGHT: Copyright 1998,99 Marcel Baur <mbaur(a)g26.ethz.ch>
*/
#pragma once
diff --git a/base/applications/notepad/main.c b/base/applications/notepad/main.c
index f9e437f7720..e92e1e8ec0b 100644
--- a/base/applications/notepad/main.c
+++ b/base/applications/notepad/main.c
@@ -1,25 +1,12 @@
/*
- * Notepad
- *
- * Copyright 2000 Mike McCormack <Mike_McCormack(a)looksmart.com.au>
- * Copyright 1997,98 Marcel Baur <mbaur(a)g26.ethz.ch>
- * Copyright 2002 Sylvain Petreolle <spetreolle(a)yahoo.fr>
- * Copyright 2002 Andriy Palamarchuk
- * Copyright 2020-2023 Katayama Hirofumi MZ
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * PROJECT: ReactOS Notepad
+ * LICENSE: LGPL-2.1-or-later (https://spdx.org/licenses/LGPL-2.1-or-later)
+ * PURPOSE: Providing a Windows-compatible simple text editor for ReactOS
+ * COPYRIGHT: Copyright 2000 Mike McCormack <Mike_McCormack(a)looksmart.com.au>
+ * Copyright 1997,98 Marcel Baur <mbaur(a)g26.ethz.ch>
+ * Copyright 2002 Sylvain Petreolle <spetreolle(a)yahoo.fr>
+ * Copyright 2002 Andriy Palamarchuk
+ * Copyright 2020-2023 Katayama Hirofumi MZ
*/
#include "notepad.h"
diff --git a/base/applications/notepad/notepad_res.h b/base/applications/notepad/notepad_res.h
index 153590f67b8..36260a98d7d 100644
--- a/base/applications/notepad/notepad_res.h
+++ b/base/applications/notepad/notepad_res.h
@@ -1,22 +1,9 @@
/*
- * Constants, used in resources.
- *
- * Copyright 2002 Sylvain Petreolle <spetreolle(a)yahoo.fr>
- * Copyright 2002 Andriy Palamarchuk
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * PROJECT: ReactOS Notepad
+ * LICENSE: LGPL-2.1-or-later (https://spdx.org/licenses/LGPL-2.1-or-later)
+ * PURPOSE: Providing a Windows-compatible simple text editor for ReactOS
+ * COPYRIGHT: Copyright 2002 Sylvain Petreolle <spetreolle(a)yahoo.fr>
+ * Copyright 2002 Andriy Palamarchuk
*/
#pragma once
diff --git a/base/applications/notepad/printing.c b/base/applications/notepad/printing.c
index 7040ec3498f..be15b2ecb0a 100644
--- a/base/applications/notepad/printing.c
+++ b/base/applications/notepad/printing.c
@@ -2,7 +2,10 @@
* PROJECT: ReactOS Notepad
* LICENSE: LGPL-2.1-or-later (https://spdx.org/licenses/LGPL-2.1-or-later)
* PURPOSE: Providing a Windows-compatible simple text editor for ReactOS
- * COPYRIGHT: Copyright 2020-2023 Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
+ * COPYRIGHT: Copyright 1998,99 Marcel Baur <mbaur(a)g26.ethz.ch>
+ * Copyright 2002 Sylvain Petreolle <spetreolle(a)yahoo.fr>
+ * Copyright 2002 Andriy Palamarchuk
+ * Copyright 2020-2023 Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
*/
#include "notepad.h"
diff --git a/base/applications/notepad/rsrc.rc b/base/applications/notepad/rsrc.rc
index d4f99a341cc..4d18985f8bf 100644
--- a/base/applications/notepad/rsrc.rc
+++ b/base/applications/notepad/rsrc.rc
@@ -1,20 +1,9 @@
/*
- * Copyright 1997,98 Marcel Baur <mbaur(a)g26.ethz.ch>
- * Copyright 2002 Sylvain Petreolle <spetreolle(a)yahoo.fr>
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * PROJECT: ReactOS Notepad
+ * LICENSE: LGPL-2.1-or-later (https://spdx.org/licenses/LGPL-2.1-or-later)
+ * PURPOSE: Providing a Windows-compatible simple text editor for ReactOS
+ * COPYRIGHT: Copyright 1997,98 Marcel Baur <mbaur(a)g26.ethz.ch>
+ * Copyright 2002 Sylvain Petreolle <spetreolle(a)yahoo.fr>
*/
#include <windef.h>
diff --git a/base/applications/notepad/settings.c b/base/applications/notepad/settings.c
index 92039ffa18d..5295a06f025 100644
--- a/base/applications/notepad/settings.c
+++ b/base/applications/notepad/settings.c
@@ -1,23 +1,10 @@
/*
- * Notepad (settings.c)
- *
- * Copyright 1998,99 Marcel Baur <mbaur(a)g26.ethz.ch>
- * Copyright 2002 Sylvain Petreolle <spetreolle(a)yahoo.fr>
- * Copyright 2002 Andriy Palamarchuk
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * PROJECT: ReactOS Notepad
+ * LICENSE: LGPL-2.1-or-later (https://spdx.org/licenses/LGPL-2.1-or-later)
+ * PURPOSE: Providing a Windows-compatible simple text editor for ReactOS
+ * COPYRIGHT: Copyright 1998,99 Marcel Baur <mbaur(a)g26.ethz.ch>
+ * Copyright 2002 Sylvain Petreolle <spetreolle(a)yahoo.fr>
+ * Copyright 2002 Andriy Palamarchuk
*/
#include "notepad.h"
diff --git a/base/applications/notepad/text.c b/base/applications/notepad/text.c
index 8b8de3c9c1a..a0ad8640eb0 100644
--- a/base/applications/notepad/text.c
+++ b/base/applications/notepad/text.c
@@ -1,24 +1,11 @@
/*
- * Notepad (text.c)
- *
- * Copyright 1998,99 Marcel Baur <mbaur(a)g26.ethz.ch>
- * Copyright 2002 Sylvain Petreolle <spetreolle(a)yahoo.fr>
- * Copyright 2002 Andriy Palamarchuk
- * Copyright 2019-2023 Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * PROJECT: ReactOS Notepad
+ * LICENSE: LGPL-2.1-or-later (https://spdx.org/licenses/LGPL-2.1-or-later)
+ * PURPOSE: Providing a Windows-compatible simple text editor for ReactOS
+ * COPYRIGHT: Copyright 1998,99 Marcel Baur <mbaur(a)g26.ethz.ch>
+ * Copyright 2002 Sylvain Petreolle <spetreolle(a)yahoo.fr>
+ * Copyright 2002 Andriy Palamarchuk
+ * Copyright 2019-2023 Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
*/
#include "notepad.h"
https://git.reactos.org/?p=reactos.git;a=commitdiff;h=b8c4d589b1e49c78dcafe…
commit b8c4d589b1e49c78dcafefb2252345632b6d0c6f
Author: Jose Carlos Jesus <zecarlos1957(a)hotmail.com>
AuthorDate: Tue Mar 14 18:27:14 2023 -0300
Commit: GitHub <noreply(a)github.com>
CommitDate: Tue Mar 14 22:27:14 2023 +0100
[SHELL32] Give opportunity to rename file/folder on its creation (#5139)
* [SHELL32] Fix issue when creating a new file or folder. No chance to rename the displayed name.
The CNewMenu::SelectNewItem method starts with a request to notify the View object about a new item by calling SHChangeNotify.
After creating and obtaining the new PIDL by calling ILFindLastID, the CDefView::SelectItem method is called.
This method fails right from the start when calling LV_FindItemByPidl which returns -1, thus preventing the user from being given the opportunity to change the name displayed by default.
This failure is due to the fact that this object has not yet been added to the CDefView::m_ListView list. This is caused by the asynchronous nature of SHChangeNotify.
Thanks to Giannis Adamopoulos for the big help.
---
dll/win32/shell32/CDefView.cpp | 1 -
dll/win32/shell32/CDefaultContextMenu.cpp | 2 +-
dll/win32/shell32/CNewMenu.cpp | 2 +-
3 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/dll/win32/shell32/CDefView.cpp b/dll/win32/shell32/CDefView.cpp
index 6b51d9e83cd..7cf9160df58 100644
--- a/dll/win32/shell32/CDefView.cpp
+++ b/dll/win32/shell32/CDefView.cpp
@@ -990,7 +990,6 @@ BOOLEAN CDefView::LV_ProdItem(PCUITEMID_CHILD pidl)
lvItem.iImage = SHMapPIDLToSystemImageListIndex(m_pSFParent, pidl, 0);
m_ListView.SetItem(&lvItem);
m_ListView.Update(nItem);
- m_ListView.EditLabel(nItem);
return TRUE;
}
diff --git a/dll/win32/shell32/CDefaultContextMenu.cpp b/dll/win32/shell32/CDefaultContextMenu.cpp
index 2559e6e0438..577e93d332e 100644
--- a/dll/win32/shell32/CDefaultContextMenu.cpp
+++ b/dll/win32/shell32/CDefaultContextMenu.cpp
@@ -926,7 +926,7 @@ CDefaultContextMenu::DoCreateNewFolder(
CComPtr<IShellView> psv;
/* Notify the view object about the new item */
- SHChangeNotify(SHCNE_MKDIR, SHCNF_PATHW, (LPCVOID)wszName, NULL);
+ SHChangeNotify(SHCNE_MKDIR, SHCNF_PATHW | SHCNF_FLUSH, (LPCVOID)wszName, NULL);
if (!m_site)
return S_OK;
diff --git a/dll/win32/shell32/CNewMenu.cpp b/dll/win32/shell32/CNewMenu.cpp
index f3ec59cf3da..a02314b1d8e 100644
--- a/dll/win32/shell32/CNewMenu.cpp
+++ b/dll/win32/shell32/CNewMenu.cpp
@@ -418,7 +418,7 @@ HRESULT CNewMenu::SelectNewItem(LONG wEventId, UINT uFlags, LPWSTR pszName, BOOL
dwSelectFlags |= SVSI_EDIT;
/* Notify the view object about the new item */
- SHChangeNotify(wEventId, uFlags, (LPCVOID) pszName, NULL);
+ SHChangeNotify(wEventId, uFlags | SHCNF_FLUSH, (LPCVOID)pszName, NULL);
if (!m_pSite)
return S_OK;