programs/wordpad/wordpad.c -- remove unused parameters
Gerald Pfeifer
gerald at pfeifer.com
Sun Sep 7 09:05:26 CDT 2008
ChangeLog:
Shed off unused parameters from on_fontlist_modified, OnCreate, OnUser,
OnNotify, and OnInitPopupMenu.
Index: programs/wordpad/wordpad.c
===================================================================
RCS file: /home/wine/wine/programs/wordpad/wordpad.c,v
retrieving revision 1.103
diff -u -3 -p -r1.103 wordpad.c
--- programs/wordpad/wordpad.c 23 Jul 2008 12:10:35 -0000 1.103
+++ programs/wordpad/wordpad.c 7 Sep 2008 14:02:34 -0000
@@ -467,7 +467,7 @@ static void set_default_font(void)
SendMessageW(hEditorWnd, EM_SETCHARFORMAT, SCF_DEFAULT, (LPARAM)&fmt);
}
-static void on_fontlist_modified(HWND hwndFontList, LPWSTR wszNewFaceName)
+static void on_fontlist_modified(LPWSTR wszNewFaceName)
{
CHARFORMAT2W format;
ZeroMemory(&format, sizeof(format));
@@ -1702,7 +1702,7 @@ static int context_menu(LPARAM lParam)
return 0;
}
-static LRESULT OnCreate( HWND hWnd, WPARAM wParam, LPARAM lParam)
+static LRESULT OnCreate( HWND hWnd )
{
HWND hToolBarWnd, hFormatBarWnd, hReBarWnd, hFontListWnd, hSizeListWnd, hRulerWnd;
HINSTANCE hInstance = (HINSTANCE)GetWindowLongPtr(hWnd, GWLP_HINSTANCE);
@@ -1858,7 +1858,7 @@ static LRESULT OnCreate( HWND hWnd, WPAR
return 0;
}
-static LRESULT OnUser( HWND hWnd, WPARAM wParam, LPARAM lParam)
+static LRESULT OnUser( HWND hWnd )
{
HWND hwndEditor = GetDlgItem(hWnd, IDC_EDITOR);
HWND hwndReBar = GetDlgItem(hWnd, IDC_REBAR);
@@ -1910,7 +1910,7 @@ static LRESULT OnUser( HWND hWnd, WPARAM
return 0;
}
-static LRESULT OnNotify( HWND hWnd, WPARAM wParam, LPARAM lParam)
+static LRESULT OnNotify( HWND hWnd, LPARAM lParam)
{
HWND hwndEditor = GetDlgItem(hWnd, IDC_EDITOR);
HWND hwndReBar = GetDlgItem(hWnd, IDC_REBAR);
@@ -1925,10 +1925,10 @@ static LRESULT OnNotify( HWND hWnd, WPAR
NMCBEENDEDIT *endEdit = (NMCBEENDEDIT *)lParam;
if(pHdr->hwndFrom == hwndFontList)
{
- on_fontlist_modified(hwndFontList, (LPWSTR)endEdit->szText);
+ on_fontlist_modified((LPWSTR)endEdit->szText);
} else if (pHdr->hwndFrom == hwndSizeList)
{
- on_sizelist_modified(hwndSizeList, (LPWSTR)endEdit->szText);
+ on_sizelist_modified(hwndFontList,(LPWSTR)endEdit->szText);
}
}
return 0;
@@ -2322,7 +2322,7 @@ static LRESULT OnCommand( HWND hWnd, WPA
WCHAR buffer[LF_FACESIZE];
HWND hwndFontList = (HWND)lParam;
get_comboexlist_selection(hwndFontList, buffer, LF_FACESIZE);
- on_fontlist_modified(hwndFontList, buffer);
+ on_fontlist_modified(buffer);
}
break;
@@ -2343,7 +2343,7 @@ static LRESULT OnCommand( HWND hWnd, WPA
return 0;
}
-static LRESULT OnInitPopupMenu( HWND hWnd, WPARAM wParam, LPARAM lParam )
+static LRESULT OnInitPopupMenu( HWND hWnd, WPARAM wParam )
{
HMENU hMenu = (HMENU)wParam;
HWND hwndEditor = GetDlgItem(hWnd, IDC_EDITOR);
@@ -2456,13 +2456,13 @@ static LRESULT CALLBACK WndProc(HWND hWn
switch(msg)
{
case WM_CREATE:
- return OnCreate( hWnd, wParam, lParam );
+ return OnCreate( hWnd );
case WM_USER:
- return OnUser( hWnd, wParam, lParam );
+ return OnUser( hWnd );
case WM_NOTIFY:
- return OnNotify( hWnd, wParam, lParam );
+ return OnNotify( hWnd, lParam );
case WM_COMMAND:
if(preview_isactive())
@@ -2494,7 +2494,7 @@ static LRESULT CALLBACK WndProc(HWND hWn
return 0;
case WM_INITMENUPOPUP:
- return OnInitPopupMenu( hWnd, wParam, lParam );
+ return OnInitPopupMenu( hWnd, wParam );
case WM_SIZE:
return OnSize( hWnd, wParam, lParam );
More information about the wine-patches
mailing list