mirror of
https://github.com/reactos/reactos.git
synced 2024-08-04 10:30:59 +00:00
-fixed some warnings (msvc)
svn path=/trunk/; revision=22545
This commit is contained in:
parent
aaa109e28c
commit
308147d6d3
|
@ -15,6 +15,10 @@ INT_PTR CALLBACK AppearancePageProc(HWND hwndDlg,
|
||||||
WPARAM wParam,
|
WPARAM wParam,
|
||||||
LPARAM lParam)
|
LPARAM lParam)
|
||||||
{
|
{
|
||||||
|
UNREFERENCED_PARAMETER(lParam)
|
||||||
|
UNREFERENCED_PARAMETER(wParam)
|
||||||
|
UNREFERENCED_PARAMETER(hwndDlg)
|
||||||
|
|
||||||
switch(uMsg)
|
switch(uMsg)
|
||||||
{
|
{
|
||||||
case WM_INITDIALOG:
|
case WM_INITDIALOG:
|
||||||
|
|
|
@ -302,6 +302,8 @@ void OnColorButton()
|
||||||
|
|
||||||
BOOL CheckListBoxFilename(HWND list, TCHAR *filename)
|
BOOL CheckListBoxFilename(HWND list, TCHAR *filename)
|
||||||
{
|
{
|
||||||
|
UNREFERENCED_PARAMETER(filename)
|
||||||
|
UNREFERENCED_PARAMETER(list)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -571,7 +573,7 @@ INT_PTR CALLBACK BackgroundPageProc(HWND hwndDlg,
|
||||||
{
|
{
|
||||||
if(command == CBN_SELCHANGE)
|
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);
|
InvalidateRect(g_hBackgroundPreview, NULL, TRUE);
|
||||||
|
|
||||||
|
|
|
@ -49,6 +49,11 @@ LONG APIENTRY DisplayApplet(HWND hwnd, UINT uMsg, LONG wParam, LONG lParam)
|
||||||
PROPSHEETHEADER psh;
|
PROPSHEETHEADER psh;
|
||||||
TCHAR Caption[1024];
|
TCHAR Caption[1024];
|
||||||
|
|
||||||
|
UNREFERENCED_PARAMETER(lParam)
|
||||||
|
UNREFERENCED_PARAMETER(wParam)
|
||||||
|
UNREFERENCED_PARAMETER(uMsg)
|
||||||
|
UNREFERENCED_PARAMETER(hwnd)
|
||||||
|
|
||||||
LoadString(hApplet, IDS_CPLNAME, Caption, sizeof(Caption) / sizeof(TCHAR));
|
LoadString(hApplet, IDS_CPLNAME, Caption, sizeof(Caption) / sizeof(TCHAR));
|
||||||
|
|
||||||
ZeroMemory(&psh, sizeof(PROPSHEETHEADER));
|
ZeroMemory(&psh, sizeof(PROPSHEETHEADER));
|
||||||
|
@ -62,10 +67,10 @@ LONG APIENTRY DisplayApplet(HWND hwnd, UINT uMsg, LONG wParam, LONG lParam)
|
||||||
psh.nStartPage = 0;
|
psh.nStartPage = 0;
|
||||||
psh.ppsp = psp;
|
psh.ppsp = psp;
|
||||||
|
|
||||||
InitPropSheetPage(&psp[0], IDD_BACKGROUND, BackgroundPageProc);
|
InitPropSheetPage(&psp[0], IDD_BACKGROUND, (DLGPROC) BackgroundPageProc);
|
||||||
InitPropSheetPage(&psp[1], IDD_SCREENSAVER, ScreenSaverPageProc);
|
InitPropSheetPage(&psp[1], IDD_SCREENSAVER, (DLGPROC) ScreenSaverPageProc);
|
||||||
InitPropSheetPage(&psp[2], IDD_APPEARANCE, AppearancePageProc);
|
InitPropSheetPage(&psp[2], IDD_APPEARANCE, (DLGPROC) AppearancePageProc);
|
||||||
InitPropSheetPage(&psp[3], IDD_SETTINGS, SettingsPageProc);
|
InitPropSheetPage(&psp[3], IDD_SETTINGS, (DLGPROC) SettingsPageProc);
|
||||||
|
|
||||||
return (LONG)(PropertySheet(&psh) != -1);
|
return (LONG)(PropertySheet(&psh) != -1);
|
||||||
}
|
}
|
||||||
|
|
|
@ -69,7 +69,7 @@ UpdateDisplay(IN HWND hwndDlg)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (LoadString(hApplet, (2900 + CurrentDisplayDevice->CurrentSettings->dmBitsPerPel), Buffer, sizeof(Buffer) / sizeof(TCHAR)))
|
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
|
static PSETTINGS_ENTRY
|
||||||
|
|
Loading…
Reference in a new issue