-fixed some warnings (msvc)

svn path=/trunk/; revision=22545
This commit is contained in:
Christoph von Wittich 2006-06-23 20:01:20 +00:00
parent aaa109e28c
commit 308147d6d3
4 changed files with 17 additions and 6 deletions

View file

@ -15,6 +15,10 @@ INT_PTR CALLBACK AppearancePageProc(HWND hwndDlg,
WPARAM wParam,
LPARAM lParam)
{
UNREFERENCED_PARAMETER(lParam)
UNREFERENCED_PARAMETER(wParam)
UNREFERENCED_PARAMETER(hwndDlg)
switch(uMsg)
{
case WM_INITDIALOG:

View file

@ -302,6 +302,8 @@ void OnColorButton()
BOOL CheckListBoxFilename(HWND list, TCHAR *filename)
{
UNREFERENCED_PARAMETER(filename)
UNREFERENCED_PARAMETER(list)
return FALSE;
}
@ -571,7 +573,7 @@ INT_PTR CALLBACK BackgroundPageProc(HWND hwndDlg,
{
if(command == CBN_SELCHANGE)
{
g_placementSelection = SendMessage(g_hPlacementCombo, CB_GETCURSEL, 0, 0);
g_placementSelection = (int)SendMessage(g_hPlacementCombo, CB_GETCURSEL, 0, 0);
InvalidateRect(g_hBackgroundPreview, NULL, TRUE);

View file

@ -49,6 +49,11 @@ LONG APIENTRY DisplayApplet(HWND hwnd, UINT uMsg, LONG wParam, LONG lParam)
PROPSHEETHEADER psh;
TCHAR Caption[1024];
UNREFERENCED_PARAMETER(lParam)
UNREFERENCED_PARAMETER(wParam)
UNREFERENCED_PARAMETER(uMsg)
UNREFERENCED_PARAMETER(hwnd)
LoadString(hApplet, IDS_CPLNAME, Caption, sizeof(Caption) / sizeof(TCHAR));
ZeroMemory(&psh, sizeof(PROPSHEETHEADER));
@ -62,10 +67,10 @@ LONG APIENTRY DisplayApplet(HWND hwnd, UINT uMsg, LONG wParam, LONG lParam)
psh.nStartPage = 0;
psh.ppsp = psp;
InitPropSheetPage(&psp[0], IDD_BACKGROUND, BackgroundPageProc);
InitPropSheetPage(&psp[1], IDD_SCREENSAVER, ScreenSaverPageProc);
InitPropSheetPage(&psp[2], IDD_APPEARANCE, AppearancePageProc);
InitPropSheetPage(&psp[3], IDD_SETTINGS, SettingsPageProc);
InitPropSheetPage(&psp[0], IDD_BACKGROUND, (DLGPROC) BackgroundPageProc);
InitPropSheetPage(&psp[1], IDD_SCREENSAVER, (DLGPROC) ScreenSaverPageProc);
InitPropSheetPage(&psp[2], IDD_APPEARANCE, (DLGPROC) AppearancePageProc);
InitPropSheetPage(&psp[3], IDD_SETTINGS, (DLGPROC) SettingsPageProc);
return (LONG)(PropertySheet(&psh) != -1);
}

View file

@ -69,7 +69,7 @@ UpdateDisplay(IN HWND hwndDlg)
}
}
if (LoadString(hApplet, (2900 + CurrentDisplayDevice->CurrentSettings->dmBitsPerPel), Buffer, sizeof(Buffer) / sizeof(TCHAR)))
SendDlgItemMessage(hwndDlg, IDC_SETTINGS_BPP, CB_SELECTSTRING, -1, (LPARAM)Buffer);
SendDlgItemMessage(hwndDlg, IDC_SETTINGS_BPP, CB_SELECTSTRING, (WPARAM)-1, (LPARAM)Buffer);
}
static PSETTINGS_ENTRY