comctl32: Simplify four functions by removing unused parameters.
This commit is contained in:
parent
5da52e0677
commit
bb6e8e56ce
|
@ -1317,7 +1317,7 @@ static LRESULT SYSLINK_SendParentNotify (const SYSLINK_INFO *infoPtr, UINT code,
|
|||
* SYSLINK_SetFocus
|
||||
* Handles receiving the input focus.
|
||||
*/
|
||||
static LRESULT SYSLINK_SetFocus (SYSLINK_INFO *infoPtr, HWND PrevFocusWindow)
|
||||
static LRESULT SYSLINK_SetFocus (SYSLINK_INFO *infoPtr)
|
||||
{
|
||||
PDOC_ITEM Focus;
|
||||
|
||||
|
@ -1340,7 +1340,7 @@ static LRESULT SYSLINK_SetFocus (SYSLINK_INFO *infoPtr, HWND PrevFocusWindow)
|
|||
* SYSLINK_KillFocus
|
||||
* Handles losing the input focus.
|
||||
*/
|
||||
static LRESULT SYSLINK_KillFocus (SYSLINK_INFO *infoPtr, HWND NewFocusWindow)
|
||||
static LRESULT SYSLINK_KillFocus (SYSLINK_INFO *infoPtr)
|
||||
{
|
||||
PDOC_ITEM Focus;
|
||||
|
||||
|
@ -1385,7 +1385,7 @@ static PDOC_ITEM SYSLINK_LinkAtPt (const SYSLINK_INFO *infoPtr, const POINT *pt,
|
|||
* SYSLINK_LButtonDown
|
||||
* Handles mouse clicks
|
||||
*/
|
||||
static LRESULT SYSLINK_LButtonDown (SYSLINK_INFO *infoPtr, DWORD Buttons, const POINT *pt)
|
||||
static LRESULT SYSLINK_LButtonDown (SYSLINK_INFO *infoPtr, const POINT *pt)
|
||||
{
|
||||
PDOC_ITEM Current, Old;
|
||||
int id;
|
||||
|
@ -1411,7 +1411,7 @@ static LRESULT SYSLINK_LButtonDown (SYSLINK_INFO *infoPtr, DWORD Buttons, const
|
|||
* SYSLINK_LButtonUp
|
||||
* Handles mouse clicks
|
||||
*/
|
||||
static LRESULT SYSLINK_LButtonUp (SYSLINK_INFO *infoPtr, DWORD Buttons, const POINT *pt)
|
||||
static LRESULT SYSLINK_LButtonUp (SYSLINK_INFO *infoPtr, const POINT *pt)
|
||||
{
|
||||
if(infoPtr->MouseDownID > -1)
|
||||
{
|
||||
|
@ -1601,14 +1601,14 @@ static LRESULT WINAPI SysLinkWindowProc(HWND hwnd, UINT message,
|
|||
POINT pt;
|
||||
pt.x = (short)LOWORD(lParam);
|
||||
pt.y = (short)HIWORD(lParam);
|
||||
return SYSLINK_LButtonDown(infoPtr, wParam, &pt);
|
||||
return SYSLINK_LButtonDown(infoPtr, &pt);
|
||||
}
|
||||
case WM_LBUTTONUP:
|
||||
{
|
||||
POINT pt;
|
||||
pt.x = (short)LOWORD(lParam);
|
||||
pt.y = (short)HIWORD(lParam);
|
||||
return SYSLINK_LButtonUp(infoPtr, wParam, &pt);
|
||||
return SYSLINK_LButtonUp(infoPtr, &pt);
|
||||
}
|
||||
|
||||
case WM_KEYDOWN:
|
||||
|
@ -1694,10 +1694,10 @@ static LRESULT WINAPI SysLinkWindowProc(HWND hwnd, UINT message,
|
|||
return SYSLINK_GetIdealHeight(infoPtr);
|
||||
|
||||
case WM_SETFOCUS:
|
||||
return SYSLINK_SetFocus(infoPtr, (HWND)wParam);
|
||||
return SYSLINK_SetFocus(infoPtr);
|
||||
|
||||
case WM_KILLFOCUS:
|
||||
return SYSLINK_KillFocus(infoPtr, (HWND)wParam);
|
||||
return SYSLINK_KillFocus(infoPtr);
|
||||
|
||||
case WM_ENABLE:
|
||||
infoPtr->Style &= ~WS_DISABLED;
|
||||
|
|
Loading…
Reference in New Issue