diff options
author | George Hazan <george.hazan@gmail.com> | 2023-06-10 13:06:34 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2023-06-10 13:06:34 +0300 |
commit | 0f2aa4d227b402e3caf332b93339a0d7a2315621 (patch) | |
tree | b3d5b504485d11346915e15f0ce6be73525bf0ab /src/core | |
parent | a862825f3098868935a7c91ff296e2535c0a0c9b (diff) |
fixes #3556 (Передача файла: пропал значок протокола)
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/stdfile/src/filesenddlg.cpp | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/src/core/stdfile/src/filesenddlg.cpp b/src/core/stdfile/src/filesenddlg.cpp index 024cf68129..d8dc1d29cd 100644 --- a/src/core/stdfile/src/filesenddlg.cpp +++ b/src/core/stdfile/src/filesenddlg.cpp @@ -223,6 +223,9 @@ INT_PTR CALLBACK DlgProcSendFile(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM l Button_SetSkin_IcoLib(hwndDlg, IDC_HISTORY, SKINICON_OTHER_HISTORY, LPGEN("View user's history"));
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));
+
EnableWindow(GetDlgItem(hwndDlg, IDOK), FALSE);
if (fsd->ppFiles != nullptr && fsd->ppFiles[0] != nullptr) {
@@ -253,19 +256,6 @@ INT_PTR CALLBACK DlgProcSendFile(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM l return Menu_MeasureItem(lParam);
case WM_DRAWITEM:
- {
- LPDRAWITEMSTRUCT dis = (LPDRAWITEMSTRUCT)lParam;
- if (dis->hwndItem == GetDlgItem(hwndDlg, IDC_PROTOCOL)) {
- char *szProto = Proto_GetBaseAccountName(dat->hContact);
- if (szProto) {
- HICON hIcon = (HICON)CallProtoService(szProto, PS_LOADICON, PLI_PROTOCOL | PLIF_SMALL, 0);
- if (hIcon) {
- DrawIconEx(dis->hDC, dis->rcItem.left, dis->rcItem.top, hIcon, GetSystemMetrics(SM_CXSMICON), GetSystemMetrics(SM_CYSMICON), 0, nullptr, DI_NORMAL);
- DestroyIcon(hIcon);
- }
- }
- }
- }
return Menu_DrawItem(lParam);
case M_FILECHOOSEDONE:
|