Commit 95613fbd authored by Gerald Pfeifer's avatar Gerald Pfeifer Committed by Alexandre Julliard

wordpad: Shed off unused parameters from on_fontlist_modified, OnCreate, OnUser,…

wordpad: Shed off unused parameters from on_fontlist_modified, OnCreate, OnUser, OnNotify, and OnInitPopupMenu.
parent 32f89093
...@@ -467,7 +467,7 @@ static void set_default_font(void) ...@@ -467,7 +467,7 @@ static void set_default_font(void)
SendMessageW(hEditorWnd, EM_SETCHARFORMAT, SCF_DEFAULT, (LPARAM)&fmt); 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; CHARFORMAT2W format;
ZeroMemory(&format, sizeof(format)); ZeroMemory(&format, sizeof(format));
...@@ -1702,7 +1702,7 @@ static int context_menu(LPARAM lParam) ...@@ -1702,7 +1702,7 @@ static int context_menu(LPARAM lParam)
return 0; return 0;
} }
static LRESULT OnCreate( HWND hWnd, WPARAM wParam, LPARAM lParam) static LRESULT OnCreate( HWND hWnd )
{ {
HWND hToolBarWnd, hFormatBarWnd, hReBarWnd, hFontListWnd, hSizeListWnd, hRulerWnd; HWND hToolBarWnd, hFormatBarWnd, hReBarWnd, hFontListWnd, hSizeListWnd, hRulerWnd;
HINSTANCE hInstance = (HINSTANCE)GetWindowLongPtr(hWnd, GWLP_HINSTANCE); HINSTANCE hInstance = (HINSTANCE)GetWindowLongPtr(hWnd, GWLP_HINSTANCE);
...@@ -1858,7 +1858,7 @@ static LRESULT OnCreate( HWND hWnd, WPARAM wParam, LPARAM lParam) ...@@ -1858,7 +1858,7 @@ static LRESULT OnCreate( HWND hWnd, WPARAM wParam, LPARAM lParam)
return 0; return 0;
} }
static LRESULT OnUser( HWND hWnd, WPARAM wParam, LPARAM lParam) static LRESULT OnUser( HWND hWnd )
{ {
HWND hwndEditor = GetDlgItem(hWnd, IDC_EDITOR); HWND hwndEditor = GetDlgItem(hWnd, IDC_EDITOR);
HWND hwndReBar = GetDlgItem(hWnd, IDC_REBAR); HWND hwndReBar = GetDlgItem(hWnd, IDC_REBAR);
...@@ -1910,7 +1910,7 @@ static LRESULT OnUser( HWND hWnd, WPARAM wParam, LPARAM lParam) ...@@ -1910,7 +1910,7 @@ static LRESULT OnUser( HWND hWnd, WPARAM wParam, LPARAM lParam)
return 0; 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 hwndEditor = GetDlgItem(hWnd, IDC_EDITOR);
HWND hwndReBar = GetDlgItem(hWnd, IDC_REBAR); HWND hwndReBar = GetDlgItem(hWnd, IDC_REBAR);
...@@ -1925,10 +1925,10 @@ static LRESULT OnNotify( HWND hWnd, WPARAM wParam, LPARAM lParam) ...@@ -1925,10 +1925,10 @@ static LRESULT OnNotify( HWND hWnd, WPARAM wParam, LPARAM lParam)
NMCBEENDEDIT *endEdit = (NMCBEENDEDIT *)lParam; NMCBEENDEDIT *endEdit = (NMCBEENDEDIT *)lParam;
if(pHdr->hwndFrom == hwndFontList) if(pHdr->hwndFrom == hwndFontList)
{ {
on_fontlist_modified(hwndFontList, (LPWSTR)endEdit->szText); on_fontlist_modified((LPWSTR)endEdit->szText);
} else if (pHdr->hwndFrom == hwndSizeList) } else if (pHdr->hwndFrom == hwndSizeList)
{ {
on_sizelist_modified(hwndSizeList, (LPWSTR)endEdit->szText); on_sizelist_modified(hwndFontList,(LPWSTR)endEdit->szText);
} }
} }
return 0; return 0;
...@@ -2322,7 +2322,7 @@ static LRESULT OnCommand( HWND hWnd, WPARAM wParam, LPARAM lParam) ...@@ -2322,7 +2322,7 @@ static LRESULT OnCommand( HWND hWnd, WPARAM wParam, LPARAM lParam)
WCHAR buffer[LF_FACESIZE]; WCHAR buffer[LF_FACESIZE];
HWND hwndFontList = (HWND)lParam; HWND hwndFontList = (HWND)lParam;
get_comboexlist_selection(hwndFontList, buffer, LF_FACESIZE); get_comboexlist_selection(hwndFontList, buffer, LF_FACESIZE);
on_fontlist_modified(hwndFontList, buffer); on_fontlist_modified(buffer);
} }
break; break;
...@@ -2343,7 +2343,7 @@ static LRESULT OnCommand( HWND hWnd, WPARAM wParam, LPARAM lParam) ...@@ -2343,7 +2343,7 @@ static LRESULT OnCommand( HWND hWnd, WPARAM wParam, LPARAM lParam)
return 0; return 0;
} }
static LRESULT OnInitPopupMenu( HWND hWnd, WPARAM wParam, LPARAM lParam ) static LRESULT OnInitPopupMenu( HWND hWnd, WPARAM wParam )
{ {
HMENU hMenu = (HMENU)wParam; HMENU hMenu = (HMENU)wParam;
HWND hwndEditor = GetDlgItem(hWnd, IDC_EDITOR); HWND hwndEditor = GetDlgItem(hWnd, IDC_EDITOR);
...@@ -2456,13 +2456,13 @@ static LRESULT CALLBACK WndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lPara ...@@ -2456,13 +2456,13 @@ static LRESULT CALLBACK WndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lPara
switch(msg) switch(msg)
{ {
case WM_CREATE: case WM_CREATE:
return OnCreate( hWnd, wParam, lParam ); return OnCreate( hWnd );
case WM_USER: case WM_USER:
return OnUser( hWnd, wParam, lParam ); return OnUser( hWnd );
case WM_NOTIFY: case WM_NOTIFY:
return OnNotify( hWnd, wParam, lParam ); return OnNotify( hWnd, lParam );
case WM_COMMAND: case WM_COMMAND:
if(preview_isactive()) if(preview_isactive())
...@@ -2494,7 +2494,7 @@ static LRESULT CALLBACK WndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lPara ...@@ -2494,7 +2494,7 @@ static LRESULT CALLBACK WndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lPara
return 0; return 0;
case WM_INITMENUPOPUP: case WM_INITMENUPOPUP:
return OnInitPopupMenu( hWnd, wParam, lParam ); return OnInitPopupMenu( hWnd, wParam );
case WM_SIZE: case WM_SIZE:
return OnSize( hWnd, wParam, lParam ); return OnSize( hWnd, wParam, lParam );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment