summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-06-10 17:23:38 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-06-10 17:23:38 +0300
commite5cb4c5e401b46e9155ea187dba5f4caa9c96d9b (patch)
treea1351cb51cc396e3d2f35079f29f4afdc2272e8c
parent0f2aa4d227b402e3caf332b93339a0d7a2315621 (diff)
StdFile: make protocol icons non-clickable
-rw-r--r--src/core/stdfile/res/resource.rc4
-rw-r--r--src/core/stdfile/src/filerecvdlg.cpp2
-rw-r--r--src/core/stdfile/src/filesenddlg.cpp2
3 files changed, 4 insertions, 4 deletions
diff --git a/src/core/stdfile/res/resource.rc b/src/core/stdfile/res/resource.rc
index 07757af809..4751451ce1 100644
--- a/src/core/stdfile/res/resource.rc
+++ b/src/core/stdfile/res/resource.rc
@@ -45,7 +45,7 @@ BEGIN
CONTROL "&User menu",IDC_USERMENU,"MButtonClass",WS_TABSTOP,195,5,16,14,WS_EX_NOACTIVATE | 0x10000000L
CONTROL "User &details",IDC_DETAILS,"MButtonClass",WS_TABSTOP,213,5,16,14,WS_EX_NOACTIVATE | 0x10000000L
CONTROL "&History",IDC_HISTORY,"MButtonClass",WS_TABSTOP,231,5,16,14,WS_EX_NOACTIVATE | 0x10000000L
- CONTROL "",IDC_PROTOCOL,"MButtonClass",WS_TABSTOP,5,7,12,12
+ ICON "",IDC_PROTOCOL,5,7,20,20
LTEXT "",IDC_NAME,19,7,151,9,SS_NOPREFIX | SS_CENTERIMAGE
END
@@ -72,7 +72,7 @@ BEGIN
CONTROL "&User menu",IDC_USERMENU,"MButtonClass",WS_TABSTOP,195,5,16,14,WS_EX_NOACTIVATE | 0x10000000L
CONTROL "User &details",IDC_DETAILS,"MButtonClass",WS_TABSTOP,213,5,16,14,WS_EX_NOACTIVATE | 0x10000000L
CONTROL "&History",IDC_HISTORY,"MButtonClass",WS_TABSTOP,231,5,16,14,WS_EX_NOACTIVATE | 0x10000000L
- CONTROL "",IDC_PROTOCOL,"MButtonClass",WS_TABSTOP,5,7,12,12
+ ICON "",IDC_PROTOCOL,5,7,20,20
LTEXT "",IDC_NAME,19,7,151,9,SS_NOPREFIX | SS_CENTERIMAGE
END
diff --git a/src/core/stdfile/src/filerecvdlg.cpp b/src/core/stdfile/src/filerecvdlg.cpp
index 34d5251985..a605bdacec 100644
--- a/src/core/stdfile/src/filerecvdlg.cpp
+++ b/src/core/stdfile/src/filerecvdlg.cpp
@@ -220,7 +220,7 @@ public:
EnumChildWindows(m_hwnd, ClipSiblingsChildEnumProc, 0);
Window_SetSkinIcon_IcoLib(m_hwnd, SKINICON_EVENT_FILE);
- Button_SetIcon_IcoLib(m_hwnd, IDC_PROTOCOL, Skin_GetProtoIcon(szProto, ID_STATUS_ONLINE));
+ SendDlgItemMessage(m_hwnd, IDC_PROTOCOL, STM_SETICON, LPARAM(Skin_LoadProtoIcon(szProto, ID_STATUS_ONLINE)), 0);
wchar_t *contactName = Clist_GetContactDisplayName(dat->hContact);
SetDlgItemText(m_hwnd, IDC_FROM, contactName);
diff --git a/src/core/stdfile/src/filesenddlg.cpp b/src/core/stdfile/src/filesenddlg.cpp
index d8dc1d29cd..4ecfd8bce6 100644
--- a/src/core/stdfile/src/filesenddlg.cpp
+++ b/src/core/stdfile/src/filesenddlg.cpp
@@ -224,7 +224,7 @@ INT_PTR CALLBACK DlgProcSendFile(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM l
Button_SetSkin_IcoLib(hwndDlg, IDC_USERMENU, SKINICON_OTHER_DOWNARROW, LPGEN("User menu"));
char *szProto = Proto_GetBaseAccountName(dat->hContact);
- Button_SetIcon_IcoLib(hwndDlg, IDC_PROTOCOL, Skin_GetProtoIcon(szProto, ID_STATUS_ONLINE));
+ SendDlgItemMessage(hwndDlg, IDC_PROTOCOL, STM_SETICON, LPARAM(Skin_LoadProtoIcon(szProto, ID_STATUS_ONLINE)), 0);
EnableWindow(GetDlgItem(hwndDlg, IDOK), FALSE);