From 560ff1295e22341416270201dd6dfb64cd1022f6 Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Sat, 25 Jul 2015 17:10:27 +0000 Subject: ContactsPlus: - Fixed missing icons git-svn-id: http://svn.miranda-ng.org/main/trunk@14694 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/ContactsPlus/src/utils.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/ContactsPlus/src/utils.cpp') diff --git a/plugins/ContactsPlus/src/utils.cpp b/plugins/ContactsPlus/src/utils.cpp index 3d07a8f99c..f55fb97a7c 100644 --- a/plugins/ContactsPlus/src/utils.cpp +++ b/plugins/ContactsPlus/src/utils.cpp @@ -145,14 +145,14 @@ void UpdateDialogAddButton(HWND hwndDlg, MCONTACT hContact) } -HICON InitMButton(HWND hDlg, int idButton, LPCSTR szIcon, char *szTip) +HICON InitMButton(HWND hDlg, int idButton, int idIcon, TCHAR *szTip) { HWND hButton = GetDlgItem(hDlg, idButton); - HICON hIcon = (HICON)LoadImageA(GetModuleHandle(NULL), szIcon, IMAGE_ICON, GetSystemMetrics(SM_CXSMICON), GetSystemMetrics(SM_CYSMICON), 0); + HICON hIcon = Skin_LoadIcon(idIcon); SendMessage(hButton, BM_SETIMAGE, IMAGE_ICON, (LPARAM)hIcon); SendMessage(hButton, BUTTONSETASFLATBTN, TRUE, 0); - SendMessage(hButton, BUTTONADDTOOLTIP, (WPARAM)szTip, 0); + SendMessage(hButton, BUTTONADDTOOLTIP, (WPARAM)szTip, BATF_TCHAR); return hIcon; } -- cgit v1.2.3