mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 08:55:19 +00:00
-fixed some warnings (msvc)
svn path=/trunk/; revision=22547
This commit is contained in:
parent
78076d665a
commit
25a5623442
6 changed files with 25 additions and 7 deletions
|
@ -15,6 +15,9 @@ HWND hFreeLdrDialog;
|
||||||
INT_PTR CALLBACK
|
INT_PTR CALLBACK
|
||||||
FreeLdrPageWndProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
|
FreeLdrPageWndProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
|
||||||
{
|
{
|
||||||
|
UNREFERENCED_PARAMETER(lParam)
|
||||||
|
UNREFERENCED_PARAMETER(wParam)
|
||||||
|
|
||||||
switch (message) {
|
switch (message) {
|
||||||
case WM_INITDIALOG:
|
case WM_INITDIALOG:
|
||||||
hFreeLdrDialog = hDlg;
|
hFreeLdrDialog = hDlg;
|
||||||
|
|
|
@ -15,6 +15,9 @@ HWND hGeneralDialog;
|
||||||
INT_PTR CALLBACK
|
INT_PTR CALLBACK
|
||||||
GeneralPageWndProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
|
GeneralPageWndProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
|
||||||
{
|
{
|
||||||
|
UNREFERENCED_PARAMETER(lParam)
|
||||||
|
UNREFERENCED_PARAMETER(wParam)
|
||||||
|
|
||||||
switch (message) {
|
switch (message) {
|
||||||
case WM_INITDIALOG:
|
case WM_INITDIALOG:
|
||||||
hGeneralDialog = hDlg;
|
hGeneralDialog = hDlg;
|
||||||
|
|
|
@ -21,12 +21,12 @@ BOOL OnCreate(HWND hWnd)
|
||||||
TCITEM item;
|
TCITEM item;
|
||||||
|
|
||||||
hTabWnd = GetDlgItem(hWnd, IDC_TAB);
|
hTabWnd = GetDlgItem(hWnd, IDC_TAB);
|
||||||
hGeneralPage = CreateDialog(hInst, MAKEINTRESOURCE(IDD_GENERAL_PAGE), hWnd, GeneralPageWndProc);
|
hGeneralPage = CreateDialog(hInst, MAKEINTRESOURCE(IDD_GENERAL_PAGE), hWnd, (DLGPROC) GeneralPageWndProc);
|
||||||
hSystemPage = CreateDialog(hInst, MAKEINTRESOURCE(IDD_SYSTEM_PAGE), hWnd, SystemPageWndProc);
|
hSystemPage = CreateDialog(hInst, MAKEINTRESOURCE(IDD_SYSTEM_PAGE), hWnd, (DLGPROC) SystemPageWndProc);
|
||||||
hFreeLdrPage = CreateDialog(hInst, MAKEINTRESOURCE(IDD_FREELDR_PAGE), hWnd, FreeLdrPageWndProc);
|
hFreeLdrPage = CreateDialog(hInst, MAKEINTRESOURCE(IDD_FREELDR_PAGE), hWnd, (DLGPROC) FreeLdrPageWndProc);
|
||||||
hServicesPage = CreateDialog(hInst, MAKEINTRESOURCE(IDD_SERVICES_PAGE), hWnd, ServicesPageWndProc);
|
hServicesPage = CreateDialog(hInst, MAKEINTRESOURCE(IDD_SERVICES_PAGE), hWnd, (DLGPROC) ServicesPageWndProc);
|
||||||
hStartupPage = CreateDialog(hInst, MAKEINTRESOURCE(IDD_STARTUP_PAGE), hWnd, StartupPageWndProc);
|
hStartupPage = CreateDialog(hInst, MAKEINTRESOURCE(IDD_STARTUP_PAGE), hWnd, (DLGPROC) StartupPageWndProc);
|
||||||
hToolsPage = CreateDialog(hInst, MAKEINTRESOURCE(IDD_TOOLS_PAGE), hWnd, ToolsPageWndProc);
|
hToolsPage = CreateDialog(hInst, MAKEINTRESOURCE(IDD_TOOLS_PAGE), hWnd, (DLGPROC) ToolsPageWndProc);
|
||||||
|
|
||||||
LoadString(hInst, IDS_MSCONFIG, szTemp, 256);
|
LoadString(hInst, IDS_MSCONFIG, szTemp, 256);
|
||||||
SetWindowText(hWnd, szTemp);
|
SetWindowText(hWnd, szTemp);
|
||||||
|
@ -192,13 +192,17 @@ int APIENTRY WinMain(HINSTANCE hInstance,
|
||||||
|
|
||||||
INITCOMMONCONTROLSEX InitControls;
|
INITCOMMONCONTROLSEX InitControls;
|
||||||
|
|
||||||
|
UNREFERENCED_PARAMETER(hPrevInstance)
|
||||||
|
UNREFERENCED_PARAMETER(lpCmdLine)
|
||||||
|
UNREFERENCED_PARAMETER(nCmdShow)
|
||||||
|
|
||||||
InitControls.dwSize = sizeof(INITCOMMONCONTROLSEX);
|
InitControls.dwSize = sizeof(INITCOMMONCONTROLSEX);
|
||||||
InitControls.dwICC = ICC_TAB_CLASSES | ICC_LISTVIEW_CLASSES;
|
InitControls.dwICC = ICC_TAB_CLASSES | ICC_LISTVIEW_CLASSES;
|
||||||
InitCommonControlsEx(&InitControls);
|
InitCommonControlsEx(&InitControls);
|
||||||
|
|
||||||
hInst = hInstance;
|
hInst = hInstance;
|
||||||
|
|
||||||
DialogBox(hInst, (LPCTSTR)IDD_MSCONFIG_DIALOG, NULL, MsConfigWndProc);
|
DialogBox(hInst, (LPCTSTR)IDD_MSCONFIG_DIALOG, NULL, (DLGPROC) MsConfigWndProc);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,6 +22,9 @@ ServicesPageWndProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
|
||||||
TCHAR szTemp[256];
|
TCHAR szTemp[256];
|
||||||
DWORD dwStyle;
|
DWORD dwStyle;
|
||||||
|
|
||||||
|
UNREFERENCED_PARAMETER(lParam)
|
||||||
|
UNREFERENCED_PARAMETER(wParam)
|
||||||
|
|
||||||
switch (message) {
|
switch (message) {
|
||||||
case WM_INITDIALOG:
|
case WM_INITDIALOG:
|
||||||
|
|
||||||
|
|
|
@ -22,6 +22,9 @@ StartupPageWndProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
|
||||||
TCHAR szTemp[256];
|
TCHAR szTemp[256];
|
||||||
DWORD dwStyle;
|
DWORD dwStyle;
|
||||||
|
|
||||||
|
UNREFERENCED_PARAMETER(lParam)
|
||||||
|
UNREFERENCED_PARAMETER(wParam)
|
||||||
|
|
||||||
switch (message) {
|
switch (message) {
|
||||||
case WM_INITDIALOG:
|
case WM_INITDIALOG:
|
||||||
|
|
||||||
|
|
|
@ -14,6 +14,8 @@ HWND hSystemDialog;
|
||||||
INT_PTR CALLBACK
|
INT_PTR CALLBACK
|
||||||
SystemPageWndProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
|
SystemPageWndProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
|
||||||
{
|
{
|
||||||
|
UNREFERENCED_PARAMETER(lParam)
|
||||||
|
UNREFERENCED_PARAMETER(wParam)
|
||||||
switch (message) {
|
switch (message) {
|
||||||
case WM_INITDIALOG:
|
case WM_INITDIALOG:
|
||||||
hSystemDialog = hDlg;
|
hSystemDialog = hDlg;
|
||||||
|
|
Loading…
Reference in a new issue