title cosmetics

This commit is contained in:
henrypp committed 2020-04-28 22:57:45 +06:00
1 parent 814e903d6e
commit b05b788ea9
1 file changed
+7 -7
+7 -7
View File
@@ -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;
}
}