Simplify dlls/comctl32/tab.c
Gerald Pfeifer
gerald at pfeifer.com
Sat Feb 28 16:53:33 CST 2009
We're nearly through with simplifications like this in dlls/comctl32 now,
just three patches overall (two done and submitted, including this one).
Gerald
ChangeLog:
Simplify three TAB_ functions.
Index: tab.c
===================================================================
RCS file: /home/wine/wine/dlls/comctl32/tab.c,v
retrieving revision 1.151
diff -u -3 -p -r1.151 tab.c
--- tab.c 3 Dec 2008 11:57:37 -0000 1.151
+++ tab.c 28 Feb 2009 22:51:20 -0000
@@ -916,7 +916,7 @@ static LRESULT TAB_AdjustRect(const TAB_
* This method will handle the notification from the scroll control and
* perform the scrolling operation on the tab control.
*/
-static LRESULT TAB_OnHScroll(TAB_INFO *infoPtr, int nScrollCode, int nPos, HWND hwndScroll)
+static LRESULT TAB_OnHScroll(TAB_INFO *infoPtr, int nScrollCode, int nPos)
{
if(nScrollCode == SB_THUMBPOSITION && nPos != infoPtr->leftmostVisible)
{
@@ -2936,7 +2936,7 @@ static inline LRESULT TAB_Size (TAB_INFO
}
-static LRESULT TAB_Create (HWND hwnd, WPARAM wParam, LPARAM lParam)
+static LRESULT TAB_Create (HWND hwnd, LPARAM lParam)
{
TAB_INFO *infoPtr;
TEXTMETRICW fontMetrics;
@@ -3076,7 +3076,7 @@ static LRESULT theme_changed(const TAB_I
return 0;
}
-static LRESULT TAB_NCCalcSize(HWND hwnd, WPARAM wParam, LPARAM lParam)
+static LRESULT TAB_NCCalcSize(WPARAM wParam)
{
if (!wParam)
return 0;
@@ -3211,7 +3211,7 @@ TAB_WindowProc (HWND hwnd, UINT uMsg, WP
return TAB_SetFont (infoPtr, (HFONT)wParam);
case WM_CREATE:
- return TAB_Create (hwnd, wParam, lParam);
+ return TAB_Create (hwnd, lParam);
case WM_NCDESTROY:
return TAB_Destroy (infoPtr);
@@ -3245,7 +3245,7 @@ TAB_WindowProc (HWND hwnd, UINT uMsg, WP
return TAB_SetRedraw (infoPtr, (BOOL)wParam);
case WM_HSCROLL:
- return TAB_OnHScroll(infoPtr, (int)LOWORD(wParam), (int)HIWORD(wParam), (HWND)lParam);
+ return TAB_OnHScroll(infoPtr, (int)LOWORD(wParam), (int)HIWORD(wParam));
case WM_STYLECHANGED:
TAB_SetItemBounds (infoPtr);
@@ -3270,7 +3270,7 @@ TAB_WindowProc (HWND hwnd, UINT uMsg, WP
return TAB_NCHitTest(infoPtr, lParam);
case WM_NCCALCSIZE:
- return TAB_NCCalcSize(hwnd, wParam, lParam);
+ return TAB_NCCalcSize(wParam);
default:
if (uMsg >= WM_USER && uMsg < WM_APP && !COMCTL32_IsReflectedMessage(uMsg))
More information about the wine-patches
mailing list