diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2015-07-25 17:10:27 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2015-07-25 17:10:27 +0000 |
commit | 560ff1295e22341416270201dd6dfb64cd1022f6 (patch) | |
tree | aa318426cfef69aa2cb7d2276e5ff831004e8c4b /plugins/ContactsPlus/src/utils.cpp | |
parent | 647987a27c3e12380b17dc1e18f0f8c52b8e6c51 (diff) |
ContactsPlus:
- Fixed missing icons
git-svn-id: http://svn.miranda-ng.org/main/trunk@14694 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/ContactsPlus/src/utils.cpp')
-rw-r--r-- | plugins/ContactsPlus/src/utils.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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;
}
|