[SHELL32]: Few SendMessageA -> SendMessageW conversions, and whitespace fixes.

svn path=/trunk/; revision=70993
This commit is contained in:
Hermès Bélusca-Maïto 2016-03-11 22:12:44 +00:00
parent 264200c726
commit 431880741a

View file

@ -84,7 +84,7 @@ DestroyIconList(HWND hDlgCtrl)
int count;
int index;
count = SendMessage(hDlgCtrl, LB_GETCOUNT, 0, 0);
count = SendMessageW(hDlgCtrl, LB_GETCOUNT, 0, 0);
if (count == LB_ERR)
return;
@ -123,7 +123,7 @@ INT_PTR CALLBACK PickIconProc(HWND hwndDlg,
else
SetDlgItemTextW(hwndDlg, IDC_EDIT_PATH, pIconContext->szName);
count = SendMessage(pIconContext->hDlgCtrl, LB_GETCOUNT, 0, 0);
count = SendMessageW(pIconContext->hDlgCtrl, LB_GETCOUNT, 0, 0);
if (count != LB_ERR)
{
if (count > pIconContext->Index)
@ -195,7 +195,7 @@ INT_PTR CALLBACK PickIconProc(HWND hwndDlg,
return TRUE;
case WM_DRAWITEM:
lpdis = (LPDRAWITEMSTRUCT) lParam;
if (lpdis->itemID == (UINT)-1)
if (lpdis->itemID == (UINT)-1)
{
break;
}
@ -204,7 +204,7 @@ INT_PTR CALLBACK PickIconProc(HWND hwndDlg,
case ODA_SELECT:
case ODA_DRAWENTIRE:
index = SendMessageW(pIconContext->hDlgCtrl, LB_GETCURSEL, 0, 0);
hIcon =(HICON)SendMessage(lpdis->hwndItem, LB_GETITEMDATA, lpdis->itemID, (LPARAM) 0);
hIcon = (HICON)SendMessageW(lpdis->hwndItem, LB_GETITEMDATA, lpdis->itemID, 0);
if (lpdis->itemID == (UINT)index)
{
@ -448,7 +448,7 @@ static INT_PTR CALLBACK RunDlgProc(HWND hwnd, UINT message, WPARAM wParam, LPARA
{
HeapFree(GetProcessHeap(), 0, psz);
HeapFree(GetProcessHeap(), 0, parent);
SendMessageA (htxt, CB_SETEDITSEL, 0, MAKELPARAM (0, -1));
SendMessageW(htxt, CB_SETEDITSEL, 0, MAKELPARAM (0, -1));
return TRUE;
}
@ -499,9 +499,9 @@ static INT_PTR CALLBACK RunDlgProc(HWND hwnd, UINT message, WPARAM wParam, LPARA
if (ofnProc(&ofn))
{
SetFocus (GetDlgItem (hwnd, IDOK));
SetWindowTextW (GetDlgItem (hwnd, IDC_RUNDLG_EDITPATH), szFName);
SendMessageW (GetDlgItem (hwnd, IDC_RUNDLG_EDITPATH), CB_SETEDITSEL, 0, MAKELPARAM (0, -1));
SetFocus(GetDlgItem (hwnd, IDOK));
SetWindowTextW(GetDlgItem (hwnd, IDC_RUNDLG_EDITPATH), szFName);
SendMessageW(GetDlgItem (hwnd, IDC_RUNDLG_EDITPATH), CB_SETEDITSEL, 0, MAKELPARAM (0, -1));
EnableOkButtonFromEditContents(hwnd);
SetFocus (GetDlgItem (hwnd, IDOK));
}