From 75b1ff75c42644eb36552762652e4b0c9ff071bc Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 2 Nov 2012 14:11:01 +0000 Subject: final switch to the typed icolib api git-svn-id: http://svn.miranda-ng.org/main/trunk@2152 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/QuickContacts/src/quickcontacts.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'plugins/QuickContacts/src/quickcontacts.cpp') diff --git a/plugins/QuickContacts/src/quickcontacts.cpp b/plugins/QuickContacts/src/quickcontacts.cpp index 94fef144c4..2b98111794 100644 --- a/plugins/QuickContacts/src/quickcontacts.cpp +++ b/plugins/QuickContacts/src/quickcontacts.cpp @@ -649,7 +649,7 @@ LRESULT CALLBACK EditProc(HWND hdlg,UINT msg,WPARAM wparam,LPARAM lparam) sztext[1]=0; } - SendMessage(hdlg,EM_REPLACESEL,(WPARAM)0,(LPARAM)sztext); + SendMessage(hdlg,EM_REPLACESEL,0,(LPARAM)sztext); SendMessage(hdlg,WM_GETTEXT,(WPARAM)MAX_REGS(sztext),(LPARAM)sztext); } @@ -834,9 +834,7 @@ static INT_PTR CALLBACK MainDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARA FillButton(hwndDlg, IDC_MESSAGE, LPGENT("Send message"), NULL, LoadSkinnedIcon(SKINICON_EVENT_MESSAGE)); if (ServiceExists(MS_VOICESERVICE_CAN_CALL)) - { - FillButton(hwndDlg, IDC_VOICE, LPGENT("Make a voice call"), hasNewHotkeyModule ? NULL : LPGENT("Ctrl+V"), (HICON) CallService(MS_SKIN2_GETICON, 0, (LPARAM) "vca_call")); - } + FillButton(hwndDlg, IDC_VOICE, LPGENT("Make a voice call"), hasNewHotkeyModule ? NULL : LPGENT("Ctrl+V"), Skin_GetIcon("vca_call")); else { GetWindowRect(GetDlgItem(hwndDlg, IDC_VOICE), &rc); @@ -1066,8 +1064,8 @@ static INT_PTR CALLBACK MainDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARA HWND hEdit = GetWindow(GetWindow(hwndDlg,GW_CHILD),GW_CHILD); TCHAR sztext[120] = _T(""); - if (SendMessage(hEdit, EM_GETSEL, (WPARAM)NULL, (LPARAM)NULL) != -1) - SendMessage(hEdit, EM_REPLACESEL, (WPARAM)0, (LPARAM)_T("")); + if (SendMessage(hEdit, EM_GETSEL, 0, 0) != -1) + SendMessage(hEdit, EM_REPLACESEL, 0, (LPARAM)_T("")); SendMessage(hEdit, WM_GETTEXT, (WPARAM)MAX_REGS(sztext), (LPARAM)sztext); -- cgit v1.2.3