https://git.reactos.org/?p=reactos.git;a=commitdiff;h=51c38aeb899e12c1f8ba3…
commit 51c38aeb899e12c1f8ba34c2b30fc48e24cbb43e
Author: Thamatip Chitpong <tangaming123456(a)outlook.com>
AuthorDate: Fri Jan 6 19:23:25 2023 +0700
Commit: GitHub <noreply(a)github.com>
CommitDate: Fri Jan 6 13:23:25 2023 +0100
[RAPPS] Add tooltip for "Refresh" and "Update Database" (#4975)
---
base/applications/rapps/appview.cpp | 8 ++++++--
base/applications/rapps/include/appview.h | 2 ++
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/base/applications/rapps/appview.cpp b/base/applications/rapps/appview.cpp
index 0072d4603e8..11e442d28e3 100644
--- a/base/applications/rapps/appview.cpp
+++ b/base/applications/rapps/appview.cpp
@@ -66,6 +66,8 @@ CMainToolbar::CMainToolbar()
memset(szUninstallBtn, 0, sizeof(szUninstallBtn));
memset(szModifyBtn, 0, sizeof(szModifyBtn));
memset(szSelectAll, 0, sizeof(szSelectAll));
+ memset(szRefreshBtn, 0, sizeof(szRefreshBtn));
+ memset(szUpdateDbBtn, 0, sizeof(szUpdateDbBtn));
}
VOID CMainToolbar::OnGetDispInfo(LPTOOLTIPTEXT lpttt)
@@ -114,14 +116,16 @@ HWND CMainToolbar::Create(HWND hwndParent)
{ 2, ID_MODIFY, TBSTATE_ENABLED, BTNS_BUTTON | BTNS_AUTOSIZE, { 0 }, 0,
(INT_PTR)szModifyBtn },
{ 3, ID_CHECK_ALL, TBSTATE_ENABLED, BTNS_BUTTON | BTNS_AUTOSIZE, { 0 }, 0,
(INT_PTR)szSelectAll },
{ -1, 0, TBSTATE_ENABLED, BTNS_SEP, { 0 }, 0, 0
},
- { 4, ID_REFRESH, TBSTATE_ENABLED, BTNS_BUTTON | BTNS_AUTOSIZE, { 0 }, 0, 0
},
- { 5, ID_RESETDB, TBSTATE_ENABLED, BTNS_BUTTON | BTNS_AUTOSIZE, { 0 }, 0, 0
}
+ { 4, ID_REFRESH, TBSTATE_ENABLED, BTNS_BUTTON | BTNS_AUTOSIZE, { 0 }, 0,
(INT_PTR)szRefreshBtn },
+ { 5, ID_RESETDB, TBSTATE_ENABLED, BTNS_BUTTON | BTNS_AUTOSIZE, { 0 }, 0,
(INT_PTR)szUpdateDbBtn }
};
LoadStringW(hInst, IDS_INSTALL, szInstallBtn, _countof(szInstallBtn));
LoadStringW(hInst, IDS_UNINSTALL, szUninstallBtn, _countof(szUninstallBtn));
LoadStringW(hInst, IDS_MODIFY, szModifyBtn, _countof(szModifyBtn));
LoadStringW(hInst, IDS_SELECT_ALL, szSelectAll, _countof(szSelectAll));
+ LoadStringW(hInst, IDS_TOOLTIP_REFRESH, szRefreshBtn, _countof(szRefreshBtn));
+ LoadStringW(hInst, IDS_TOOLTIP_UPDATE_DB, szUpdateDbBtn, _countof(szUpdateDbBtn));
m_hWnd = CreateWindowExW(0, TOOLBARCLASSNAMEW, NULL,
WS_CHILD | WS_VISIBLE | TBSTYLE_FLAT | TBSTYLE_TOOLTIPS | TBSTYLE_LIST,
diff --git a/base/applications/rapps/include/appview.h
b/base/applications/rapps/include/appview.h
index d318c0903e7..3ac3eb21a60 100644
--- a/base/applications/rapps/include/appview.h
+++ b/base/applications/rapps/include/appview.h
@@ -285,6 +285,8 @@ class CMainToolbar :
WCHAR szUninstallBtn[MAX_STR_LEN];
WCHAR szModifyBtn[MAX_STR_LEN];
WCHAR szSelectAll[MAX_STR_LEN];
+ WCHAR szRefreshBtn[MAX_STR_LEN];
+ WCHAR szUpdateDbBtn[MAX_STR_LEN];
VOID AddImageToImageList(HIMAGELIST hImageList, UINT ImageIndex);