From b05b788ea93d6deed1bc317836fb08812a7d54ed Mon Sep 17 00:00:00 2001 From: henrypp Date: Tue, 28 Apr 2020 22:57:30 +0600 Subject: [PATCH] title cosmetics --- src/editor.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/editor.cpp b/src/editor.cpp index 8374f056..4511efc2 100644 --- a/src/editor.cpp +++ b/src/editor.cpp @@ -20,7 +20,7 @@ INT_PTR CALLBACK AddRuleProc (HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam) _r_wnd_center (hwnd, GetParent (hwnd)); // localize window - SetWindowText (hwnd, app.LocaleString (IDS_RULE, L"...")); + SetWindowText (hwnd, app.LocaleString (IDS_RULE, nullptr)); if (pcontext->item_id != INVALID_INT) SetDlgItemText (hwnd, IDC_RULE_ID, _r_listview_getitemtext (pcontext->hwnd, pcontext->listview_id, pcontext->item_id, 0)); @@ -46,7 +46,7 @@ INT_PTR CALLBACK AddRuleProc (HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam) case WM_CLOSE: { - EndDialog (hwnd, 0); + EndDialog (hwnd, FALSE); break; } @@ -105,7 +105,7 @@ INT_PTR CALLBACK AddRuleProc (HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam) case IDCANCEL: // process Esc key case IDC_CLOSE: { - EndDialog (hwnd, 0); + EndDialog (hwnd, FALSE); break; } } @@ -763,7 +763,7 @@ INT_PTR CALLBACK EditorProc (HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam) if (!ptr_rule_object) { - EndDialog (hwnd, 0); + EndDialog (hwnd, FALSE); return FALSE; } @@ -771,7 +771,7 @@ INT_PTR CALLBACK EditorProc (HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam) if (!ptr_rule) { - EndDialog (hwnd, 0); + EndDialog (hwnd, FALSE); return FALSE; } @@ -824,7 +824,7 @@ INT_PTR CALLBACK EditorProc (HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam) case WM_CLOSE: { - EndDialog (hwnd, 0); + EndDialog (hwnd, FALSE); break; } @@ -991,7 +991,7 @@ INT_PTR CALLBACK EditorProc (HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam) case IDCANCEL: // process Esc key case IDC_CLOSE: { - EndDialog (hwnd, 0); + EndDialog (hwnd, FALSE); break; } }