summaryrefslogtreecommitdiff
path: root/plugins/NewStory/src/history_control.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-08-17 18:11:00 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-08-17 18:11:00 +0300
commit80edfc64c0934a2316182735a11d06053337ba44 (patch)
tree700cb98470bb51a66955269569fdb4e8375807cc /plugins/NewStory/src/history_control.cpp
parente7f076b81b324594ea81462322394534929f5244 (diff)
fixes #3643 (NewStory: можно ли при редактировании не менять цвет фона?)
Diffstat (limited to 'plugins/NewStory/src/history_control.cpp')
-rw-r--r--plugins/NewStory/src/history_control.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/NewStory/src/history_control.cpp b/plugins/NewStory/src/history_control.cpp
index 572c318a6b..fc5adebd39 100644
--- a/plugins/NewStory/src/history_control.cpp
+++ b/plugins/NewStory/src/history_control.cpp
@@ -1102,6 +1102,14 @@ LRESULT CALLBACK NewstoryListWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM
}
break;
+ case WM_CTLCOLORSTATIC:
+ case WM_CTLCOLOREDIT:
+ if (lParam == INT_PTR(data->hwndEditBox)) {
+ SetBkColor((HDC)wParam, g_colorTable[COLOR_SELBACK].cl);
+ return (LRESULT)g_plugin.hBackBrush;
+ }
+ break;
+
case WM_DESTROY:
WindowList_Add(g_hNewstoryLogs, hwnd);
delete data;