mirror of
https://github.com/henrypp/simplewall.git
synced 2026-10-23 03:25:06 -05:00
add tooltips for rules
This commit is contained in:
4 files changed
+8
-4
No files matched your search
+1
-1
@@ -2661,7 +2661,7 @@ find_wrap:
|
||||
const INT listview_id = static_cast<INT>(lpnmlv->hdr.idFrom);
|
||||
const size_t idx = _r_listview_getitemlparam (hwnd, listview_id, lpnmlv->iItem);
|
||||
|
||||
_r_str_copy (lpnmlv->pszText, lpnmlv->cchTextMax, _app_gettooltip (listview_id, idx));
|
||||
_r_str_copy (lpnmlv->pszText, lpnmlv->cchTextMax, _app_gettooltip (hwnd, listview_id, idx));
|
||||
|
||||
_r_fastlock_releaseshared (&lock_access);
|
||||
}
|
||||
|
||||
@@ -821,7 +821,7 @@ INT_PTR CALLBACK NotificationProc (HWND hwnd, UINT msg, WPARAM wparam, LPARAM lp
|
||||
PITEM_LOG ptr_log = (PITEM_LOG)ptr_log_object->pdata;
|
||||
|
||||
if (ptr_log && ptr_log->app_hash)
|
||||
_r_str_copy (buffer, _countof (buffer), _app_gettooltip (IDC_APPS_PROFILE, ptr_log->app_hash));
|
||||
_r_str_copy (buffer, _countof (buffer), _app_gettooltip (nullptr, IDC_APPS_PROFILE, ptr_log->app_hash));
|
||||
|
||||
_r_obj_dereference (ptr_log_object);
|
||||
}
|
||||
|
||||
+5
-1
@@ -505,7 +505,7 @@ COLORREF _app_getrulecolor (INT listview_id, size_t rule_idx)
|
||||
return _app_getcolorvalue (_r_str_hash (color_value));
|
||||
}
|
||||
|
||||
rstring _app_gettooltip (INT listview_id, size_t lparam)
|
||||
rstring _app_gettooltip (HWND hwnd, INT listview_id, size_t lparam)
|
||||
{
|
||||
rstring result;
|
||||
|
||||
@@ -712,6 +712,10 @@ rstring _app_gettooltip (INT listview_id, size_t lparam)
|
||||
_r_obj_dereference (ptr_rule_object);
|
||||
}
|
||||
}
|
||||
else if (listview_id == IDC_RULE_REMOTE_EDIT || listview_id == IDC_RULE_LOCAL_EDIT)
|
||||
{
|
||||
result = _r_listview_getitemtext (hwnd, listview_id, (INT)lparam, 0);
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
+1
-1
@@ -24,7 +24,7 @@ INT _app_getrulegroup (const PITEM_RULE ptr_rule);
|
||||
INT _app_getruleicon (const PITEM_RULE ptr_rule);
|
||||
COLORREF _app_getrulecolor (INT listview_id, size_t rule_idx);
|
||||
|
||||
rstring _app_gettooltip (INT listview_id, size_t lparam);
|
||||
rstring _app_gettooltip (HWND hwnd, INT listview_id, size_t lparam);
|
||||
|
||||
void _app_setappiteminfo (HWND hwnd, INT listview_id, INT item, size_t app_hash, PITEM_APP ptr_app);
|
||||
void _app_setruleiteminfo (HWND hwnd, INT listview_id, INT item, PITEM_RULE ptr_rule, bool include_apps);
|
||||
|
||||
Reference in new issue
Block a user