From 88839a311a0c3092923655b1e7cc642992145e11 Mon Sep 17 00:00:00 2001
From: pipi <1779595642@qq.com>
Date: Sun, 3 Dec 2023 23:38:50 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=EF=BC=8C=E6=B3=A8=E9=87=8A?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
README.md | 1 +
src/PowerEditor/src/Notepad_plus_Window.cpp | 23 ++++++++++++++-------
2 files changed, 16 insertions(+), 8 deletions(-)
diff --git a/README.md b/README.md
index 9e1f58a..9e12d6c 100644
--- a/README.md
+++ b/README.md
@@ -1,2 +1,3 @@
# git_read
+所有的代码在 src/PowerEditor 内
\ No newline at end of file
diff --git a/src/PowerEditor/src/Notepad_plus_Window.cpp b/src/PowerEditor/src/Notepad_plus_Window.cpp
index cc14a4b..e415646 100644
--- a/src/PowerEditor/src/Notepad_plus_Window.cpp
+++ b/src/PowerEditor/src/Notepad_plus_Window.cpp
@@ -55,6 +55,11 @@ namespace // anonymous
void Notepad_plus_Window::setStartupBgColor(COLORREF BgColor)
{
RECT windowClientArea;
+ /// 崰ڵı
+ ///
+ /// ȡӦ豸ͼ
+ /// úôڵɫ
+ ///
HDC hdc = GetDCEx(_hSelf, NULL, DCX_CACHE | DCX_LOCKWINDOWUPDATE); //lock window update flag due to PaintLocker
GetClientRect(_hSelf, &windowClientArea);
FillRect(hdc, &windowClientArea, CreateSolidBrush(BgColor));
@@ -63,6 +68,8 @@ void Notepad_plus_Window::setStartupBgColor(COLORREF BgColor)
void Notepad_plus_Window::init(HINSTANCE hInst, HWND parent, const TCHAR* cmdLine, CmdLineParams* cmdLineParams)
{
+ /// úʱʼڱ
+ /// ڱ
// ʼʱ
time_t timestampBegin = 0;
if (cmdLineParams->_showLoadingTime)
@@ -304,7 +311,7 @@ void Notepad_plus_Window::init(HINSTANCE hInst, HWND parent, const TCHAR* cmdLin
}
}
- // ָϴλỰеĿͣ
+ // ָϴλỰ
for (size_t i = 0, len = _notepad_plus_plus_core._internalFuncIDs.size(); i < len; ++i)
::SendMessage(_hSelf, WM_COMMAND, _notepad_plus_plus_core._internalFuncIDs[i], 0);
@@ -313,12 +320,10 @@ void Notepad_plus_Window::init(HINSTANCE hInst, HWND parent, const TCHAR* cmdLin
if (cmdLine)
fns = _notepad_plus_plus_core.loadCommandlineParams(cmdLine, cmdLineParams);
- // ǿģʽĹĵ
bool isSnapshotMode = nppGUI.isSnapshotMode();
if (isSnapshotMode)
{
_notepad_plus_plus_core.checkModifiedDocument(false);
- //
_notepad_plus_plus_core.launchDocumentBackupTask();
}
@@ -326,11 +331,11 @@ void Notepad_plus_Window::init(HINSTANCE hInst, HWND parent, const TCHAR* cmdLin
::SendMessage(_hSelf, NPPM_INTERNAL_SETWORDCHARS, 0, 0);
::SendMessage(_hSelf, NPPM_INTERNAL_SETNPC, 0, 0);
- // б˳
+ // б
if (nppParams.doFunctionListExport())
::SendMessage(_hSelf, NPPM_INTERNAL_EXPORTFUNCLISTANDQUIT, 0, 0);
- // ӡ˳
+ // ӡ
if (nppParams.doPrintAndExit())
::SendMessage(_hSelf, NPPM_INTERNAL_PRNTANDQUIT, 0, 0);
@@ -344,14 +349,12 @@ void Notepad_plus_Window::init(HINSTANCE hInst, HWND parent, const TCHAR* cmdLin
::MessageBoxA(NULL, dest, "", MB_OK);
}
- // ֪ͨ Notepad++
SCNotification scnN{};
scnN.nmhdr.code = NPPN_READY;
scnN.nmhdr.hwndFrom = _hSelf;
scnN.nmhdr.idFrom = 0;
_notepad_plus_plus_core._pluginsManager.notify(&scnN);
- // веIJʵ
if (!cmdLineParams->_easterEggName.empty())
{
if (cmdLineParams->_quoteType == 0) // Easter Egg Name
@@ -405,7 +408,11 @@ void Notepad_plus_Window::init(HINSTANCE hInst, HWND parent, const TCHAR* cmdLin
}
}
-
+///
+/// ڼMSG͵ımsgǷһضϢ
+///
+///
+///
bool Notepad_plus_Window::isDlgsMsg(MSG *msg) const
{
for (size_t i = 0, len = _notepad_plus_plus_core._hModelessDlgs.size(); i < len; ++i)