comdlg32: Remove some explicit LPARAM/WPARAM casts.
This commit is contained in:
parent
610fba7519
commit
db4fab9fc0
|
@ -3206,7 +3206,7 @@ static int FILEDLG95_LOOKIN_RemoveMostExpandedItem(HWND hwnd)
|
|||
if(liInfos->iMaxIndentation <= 2)
|
||||
return -1;
|
||||
|
||||
if((iItemPos = FILEDLG95_LOOKIN_SearchItem(hwnd,(WPARAM)liInfos->iMaxIndentation,SEARCH_EXP)) >=0)
|
||||
if((iItemPos = FILEDLG95_LOOKIN_SearchItem(hwnd,liInfos->iMaxIndentation,SEARCH_EXP)) >=0)
|
||||
{
|
||||
SFOLDER *tmpFolder = (LPSFOLDER) CBGetItemDataPtr(hwnd,iItemPos);
|
||||
COMDLG32_SHFree(tmpFolder->pidlItem);
|
||||
|
@ -3363,7 +3363,7 @@ void FILEDLG95_FILENAME_FillFromSelection (HWND hwnd)
|
|||
SetWindowTextW( fodInfos->DlgInfos.hwndFileName, lpstrAllFile );
|
||||
|
||||
/* Select the file name like Windows does */
|
||||
SendMessageW(fodInfos->DlgInfos.hwndFileName, EM_SETSEL, 0, (LPARAM)-1);
|
||||
SendMessageW(fodInfos->DlgInfos.hwndFileName, EM_SETSEL, 0, -1);
|
||||
}
|
||||
HeapFree(GetProcessHeap(),0, lpstrAllFile );
|
||||
}
|
||||
|
|
|
@ -187,11 +187,11 @@ static INT_PTR CALLBACK COMDLG32_FindReplaceDlgProc(HWND hDlgWnd, UINT iMsg, WPA
|
|||
DestroyWindow(hDlgWnd);
|
||||
return FALSE;
|
||||
}
|
||||
SendDlgItemMessageA(hDlgWnd, edt1, EM_SETLIMITTEXT, (WPARAM)pdata->fr.wFindWhatLen, 0);
|
||||
SendDlgItemMessageA(hDlgWnd, edt1, EM_SETLIMITTEXT, pdata->fr.wFindWhatLen, 0);
|
||||
SendDlgItemMessageA(hDlgWnd, edt1, WM_SETTEXT, 0, (LPARAM)pdata->fr.lpstrFindWhat);
|
||||
if(pdata->fr.Flags & FR_WINE_REPLACE)
|
||||
{
|
||||
SendDlgItemMessageA(hDlgWnd, edt2, EM_SETLIMITTEXT, (WPARAM)pdata->fr.wReplaceWithLen, 0);
|
||||
SendDlgItemMessageA(hDlgWnd, edt2, EM_SETLIMITTEXT, pdata->fr.wReplaceWithLen, 0);
|
||||
SendDlgItemMessageA(hDlgWnd, edt2, WM_SETTEXT, 0, (LPARAM)pdata->fr.lpstrReplaceWith);
|
||||
}
|
||||
|
||||
|
|
|
@ -979,11 +979,11 @@ static BOOL PRINTDLG_ChangePrinterA(HWND hDlg, char *name, PRINT_PTRA *PrintStru
|
|||
* FIXME: The ico3 is not displayed for some reason. I don't know why.
|
||||
*/
|
||||
if (lppd->Flags & PD_COLLATE) {
|
||||
SendDlgItemMessageA(hDlg, ico3, STM_SETIMAGE, (WPARAM) IMAGE_ICON,
|
||||
SendDlgItemMessageA(hDlg, ico3, STM_SETIMAGE, IMAGE_ICON,
|
||||
(LPARAM)PrintStructures->hCollateIcon);
|
||||
CheckDlgButton(hDlg, chx2, 1);
|
||||
} else {
|
||||
SendDlgItemMessageA(hDlg, ico3, STM_SETIMAGE, (WPARAM) IMAGE_ICON,
|
||||
SendDlgItemMessageA(hDlg, ico3, STM_SETIMAGE, IMAGE_ICON,
|
||||
(LPARAM)PrintStructures->hNoCollateIcon);
|
||||
CheckDlgButton(hDlg, chx2, 0);
|
||||
}
|
||||
|
@ -1090,7 +1090,7 @@ static BOOL PRINTDLG_ChangePrinterA(HWND hDlg, char *name, PRINT_PTRA *PrintStru
|
|||
PrintStructures->lpPrinterInfo->pPortName,
|
||||
lpdm);
|
||||
CheckRadioButton(hDlg, rad1, rad2, bPortrait ? rad1: rad2);
|
||||
SendDlgItemMessageA(hDlg, ico1, STM_SETIMAGE, (WPARAM) IMAGE_ICON,
|
||||
SendDlgItemMessageA(hDlg, ico1, STM_SETIMAGE, IMAGE_ICON,
|
||||
(LPARAM)(bPortrait ? PrintStructures->hPortraitIcon :
|
||||
PrintStructures->hLandscapeIcon));
|
||||
|
||||
|
@ -1186,11 +1186,11 @@ static BOOL PRINTDLG_ChangePrinterW(HWND hDlg, WCHAR *name,
|
|||
* FIXME: The ico3 is not displayed for some reason. I don't know why.
|
||||
*/
|
||||
if (lppd->Flags & PD_COLLATE) {
|
||||
SendDlgItemMessageW(hDlg, ico3, STM_SETIMAGE, (WPARAM) IMAGE_ICON,
|
||||
SendDlgItemMessageW(hDlg, ico3, STM_SETIMAGE, IMAGE_ICON,
|
||||
(LPARAM)PrintStructures->hCollateIcon);
|
||||
CheckDlgButton(hDlg, chx2, 1);
|
||||
} else {
|
||||
SendDlgItemMessageW(hDlg, ico3, STM_SETIMAGE, (WPARAM) IMAGE_ICON,
|
||||
SendDlgItemMessageW(hDlg, ico3, STM_SETIMAGE, IMAGE_ICON,
|
||||
(LPARAM)PrintStructures->hNoCollateIcon);
|
||||
CheckDlgButton(hDlg, chx2, 0);
|
||||
}
|
||||
|
@ -1242,7 +1242,7 @@ static BOOL PRINTDLG_ChangePrinterW(HWND hDlg, WCHAR *name,
|
|||
PrintStructures->lpPrinterInfo->pPortName,
|
||||
lpdm);
|
||||
CheckRadioButton(hDlg, rad1, rad2, bPortrait ? rad1: rad2);
|
||||
SendDlgItemMessageW(hDlg, ico1, STM_SETIMAGE, (WPARAM) IMAGE_ICON,
|
||||
SendDlgItemMessageW(hDlg, ico1, STM_SETIMAGE, IMAGE_ICON,
|
||||
(LPARAM)(bPortrait ? PrintStructures->hPortraitIcon :
|
||||
PrintStructures->hLandscapeIcon));
|
||||
|
||||
|
@ -1307,7 +1307,7 @@ static LRESULT PRINTDLG_WMInitDialog(HWND hDlg, WPARAM wParam,
|
|||
LoadIconA(COMDLG32_hInstance, "PD32_LANDSCAPE");
|
||||
|
||||
/* display the collate/no_collate icon */
|
||||
SendDlgItemMessageA(hDlg, ico3, STM_SETIMAGE, (WPARAM) IMAGE_ICON,
|
||||
SendDlgItemMessageA(hDlg, ico3, STM_SETIMAGE, IMAGE_ICON,
|
||||
(LPARAM)PrintStructures->hNoCollateIcon);
|
||||
|
||||
if(PrintStructures->hCollateIcon == 0 ||
|
||||
|
@ -1415,7 +1415,7 @@ static LRESULT PRINTDLG_WMInitDialogW(HWND hDlg, WPARAM wParam,
|
|||
LoadIconW(COMDLG32_hInstance, pd32_landscapeW);
|
||||
|
||||
/* display the collate/no_collate icon */
|
||||
SendDlgItemMessageW(hDlg, ico3, STM_SETIMAGE, (WPARAM) IMAGE_ICON,
|
||||
SendDlgItemMessageW(hDlg, ico3, STM_SETIMAGE, IMAGE_ICON,
|
||||
(LPARAM)PrintStructures->hNoCollateIcon);
|
||||
|
||||
if(PrintStructures->hCollateIcon == 0 ||
|
||||
|
@ -1533,10 +1533,10 @@ static LRESULT PRINTDLG_WMCommandA(HWND hDlg, WPARAM wParam,
|
|||
|
||||
case chx2: /* collate pages checkbox */
|
||||
if (IsDlgButtonChecked(hDlg, chx2) == BST_CHECKED)
|
||||
SendDlgItemMessageA(hDlg, ico3, STM_SETIMAGE, (WPARAM) IMAGE_ICON,
|
||||
SendDlgItemMessageA(hDlg, ico3, STM_SETIMAGE, IMAGE_ICON,
|
||||
(LPARAM)PrintStructures->hCollateIcon);
|
||||
else
|
||||
SendDlgItemMessageA(hDlg, ico3, STM_SETIMAGE, (WPARAM) IMAGE_ICON,
|
||||
SendDlgItemMessageA(hDlg, ico3, STM_SETIMAGE, IMAGE_ICON,
|
||||
(LPARAM)PrintStructures->hNoCollateIcon);
|
||||
break;
|
||||
case edt1: /* from page nr editbox */
|
||||
|
@ -1601,7 +1601,7 @@ static LRESULT PRINTDLG_WMCommandA(HWND hDlg, WPARAM wParam,
|
|||
if (lppd->Flags & PD_PRINTSETUP)
|
||||
{
|
||||
lpdm->u1.s1.dmOrientation = DMORIENT_PORTRAIT;
|
||||
SendDlgItemMessageA(hDlg, ico1, STM_SETIMAGE, (WPARAM) IMAGE_ICON,
|
||||
SendDlgItemMessageA(hDlg, ico1, STM_SETIMAGE, IMAGE_ICON,
|
||||
(LPARAM)(PrintStructures->hPortraitIcon));
|
||||
}
|
||||
break;
|
||||
|
@ -1610,7 +1610,7 @@ static LRESULT PRINTDLG_WMCommandA(HWND hDlg, WPARAM wParam,
|
|||
if (lppd->Flags & PD_PRINTSETUP)
|
||||
{
|
||||
lpdm->u1.s1.dmOrientation = DMORIENT_LANDSCAPE;
|
||||
SendDlgItemMessageA(hDlg, ico1, STM_SETIMAGE, (WPARAM) IMAGE_ICON,
|
||||
SendDlgItemMessageA(hDlg, ico1, STM_SETIMAGE, IMAGE_ICON,
|
||||
(LPARAM)(PrintStructures->hLandscapeIcon));
|
||||
}
|
||||
break;
|
||||
|
@ -1655,21 +1655,17 @@ static LRESULT PRINTDLG_WMCommandA(HWND hDlg, WPARAM wParam,
|
|||
if (IsDlgButtonChecked(hDlg, rad1) == BST_CHECKED) {
|
||||
if(lpdm->u1.s1.dmOrientation != DMORIENT_PORTRAIT) {
|
||||
lpdm->u1.s1.dmOrientation = DMORIENT_PORTRAIT;
|
||||
SendDlgItemMessageA(hDlg, stc10, STM_SETIMAGE,
|
||||
(WPARAM)IMAGE_ICON,
|
||||
SendDlgItemMessageA(hDlg, stc10, STM_SETIMAGE, IMAGE_ICON,
|
||||
(LPARAM)PrintStructures->hPortraitIcon);
|
||||
SendDlgItemMessageA(hDlg, ico1, STM_SETIMAGE,
|
||||
(WPARAM)IMAGE_ICON,
|
||||
SendDlgItemMessageA(hDlg, ico1, STM_SETIMAGE, IMAGE_ICON,
|
||||
(LPARAM)PrintStructures->hPortraitIcon);
|
||||
}
|
||||
} else {
|
||||
if(lpdm->u1.s1.dmOrientation != DMORIENT_LANDSCAPE) {
|
||||
lpdm->u1.s1.dmOrientation = DMORIENT_LANDSCAPE;
|
||||
SendDlgItemMessageA(hDlg, stc10, STM_SETIMAGE,
|
||||
(WPARAM)IMAGE_ICON,
|
||||
SendDlgItemMessageA(hDlg, stc10, STM_SETIMAGE, IMAGE_ICON,
|
||||
(LPARAM)PrintStructures->hLandscapeIcon);
|
||||
SendDlgItemMessageA(hDlg, ico1, STM_SETIMAGE,
|
||||
(WPARAM)IMAGE_ICON,
|
||||
SendDlgItemMessageA(hDlg, ico1, STM_SETIMAGE, IMAGE_ICON,
|
||||
(LPARAM)PrintStructures->hLandscapeIcon);
|
||||
}
|
||||
}
|
||||
|
@ -1709,10 +1705,10 @@ static LRESULT PRINTDLG_WMCommandW(HWND hDlg, WPARAM wParam,
|
|||
|
||||
case chx2: /* collate pages checkbox */
|
||||
if (IsDlgButtonChecked(hDlg, chx2) == BST_CHECKED)
|
||||
SendDlgItemMessageW(hDlg, ico3, STM_SETIMAGE, (WPARAM) IMAGE_ICON,
|
||||
SendDlgItemMessageW(hDlg, ico3, STM_SETIMAGE, IMAGE_ICON,
|
||||
(LPARAM)PrintStructures->hCollateIcon);
|
||||
else
|
||||
SendDlgItemMessageW(hDlg, ico3, STM_SETIMAGE, (WPARAM) IMAGE_ICON,
|
||||
SendDlgItemMessageW(hDlg, ico3, STM_SETIMAGE, IMAGE_ICON,
|
||||
(LPARAM)PrintStructures->hNoCollateIcon);
|
||||
break;
|
||||
case edt1: /* from page nr editbox */
|
||||
|
@ -1764,7 +1760,7 @@ static LRESULT PRINTDLG_WMCommandW(HWND hDlg, WPARAM wParam,
|
|||
if (lppd->Flags & PD_PRINTSETUP)
|
||||
{
|
||||
lpdm->u1.s1.dmOrientation = DMORIENT_PORTRAIT;
|
||||
SendDlgItemMessageW(hDlg, ico1, STM_SETIMAGE, (WPARAM) IMAGE_ICON,
|
||||
SendDlgItemMessageW(hDlg, ico1, STM_SETIMAGE, IMAGE_ICON,
|
||||
(LPARAM)(PrintStructures->hPortraitIcon));
|
||||
}
|
||||
break;
|
||||
|
@ -1773,7 +1769,7 @@ static LRESULT PRINTDLG_WMCommandW(HWND hDlg, WPARAM wParam,
|
|||
if (lppd->Flags & PD_PRINTSETUP)
|
||||
{
|
||||
lpdm->u1.s1.dmOrientation = DMORIENT_LANDSCAPE;
|
||||
SendDlgItemMessageW(hDlg, ico1, STM_SETIMAGE, (WPARAM) IMAGE_ICON,
|
||||
SendDlgItemMessageW(hDlg, ico1, STM_SETIMAGE, IMAGE_ICON,
|
||||
(LPARAM)(PrintStructures->hLandscapeIcon));
|
||||
}
|
||||
break;
|
||||
|
@ -1815,21 +1811,17 @@ static LRESULT PRINTDLG_WMCommandW(HWND hDlg, WPARAM wParam,
|
|||
if (IsDlgButtonChecked(hDlg, rad1) == BST_CHECKED) {
|
||||
if(lpdm->u1.s1.dmOrientation != DMORIENT_PORTRAIT) {
|
||||
lpdm->u1.s1.dmOrientation = DMORIENT_PORTRAIT;
|
||||
SendDlgItemMessageW(hDlg, stc10, STM_SETIMAGE,
|
||||
(WPARAM)IMAGE_ICON,
|
||||
SendDlgItemMessageW(hDlg, stc10, STM_SETIMAGE, IMAGE_ICON,
|
||||
(LPARAM)PrintStructures->hPortraitIcon);
|
||||
SendDlgItemMessageW(hDlg, ico1, STM_SETIMAGE,
|
||||
(WPARAM)IMAGE_ICON,
|
||||
SendDlgItemMessageW(hDlg, ico1, STM_SETIMAGE, IMAGE_ICON,
|
||||
(LPARAM)PrintStructures->hPortraitIcon);
|
||||
}
|
||||
} else {
|
||||
if(lpdm->u1.s1.dmOrientation != DMORIENT_LANDSCAPE) {
|
||||
lpdm->u1.s1.dmOrientation = DMORIENT_LANDSCAPE;
|
||||
SendDlgItemMessageW(hDlg, stc10, STM_SETIMAGE,
|
||||
(WPARAM)IMAGE_ICON,
|
||||
SendDlgItemMessageW(hDlg, stc10, STM_SETIMAGE, IMAGE_ICON,
|
||||
(LPARAM)PrintStructures->hLandscapeIcon);
|
||||
SendDlgItemMessageW(hDlg, ico1, STM_SETIMAGE,
|
||||
(WPARAM)IMAGE_ICON,
|
||||
SendDlgItemMessageW(hDlg, ico1, STM_SETIMAGE, IMAGE_ICON,
|
||||
(LPARAM)PrintStructures->hLandscapeIcon);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue