mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +00:00
[cardlib] Re-add changes that got lost due to an old version being used as base
svn path=/trunk/; revision=43375
This commit is contained in:
+1
-1
@@ -326,7 +326,7 @@ int CardButton::OnLButtonUp(HWND hwnd, int x, int y)
|
||||
else
|
||||
{
|
||||
HWND hwnd = (HWND)parentWnd;
|
||||
SendMessage(GetParent(hwnd), WM_COMMAND, MAKEWPARAM(id, BN_CLICKED), (LONG)hwnd);
|
||||
SendMessage(GetParent(hwnd), WM_COMMAND, MAKEWPARAM(id, BN_CLICKED), (LONG_PTR)hwnd);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -298,7 +298,7 @@ void CardRegion::Render(HDC hdc)
|
||||
else
|
||||
fDrawTips = TRUE;
|
||||
|
||||
if(yoffset != 0 && abs(xoffset) == 1 || xoffset != 0 && abs(yoffset) == 1)
|
||||
if((yoffset != 0 && abs(xoffset) == 1) || (xoffset != 0 && abs(yoffset) == 1))
|
||||
fDrawTips = TRUE;
|
||||
|
||||
//draw horizontal strips
|
||||
|
||||
+1
-1
@@ -626,7 +626,7 @@ void CardRegion::ZoomCard(HDC hdc, int xpos, int ypos, CardRegion *pDestStack)
|
||||
|
||||
MoveDragCardTo(hdc, ix, iy);
|
||||
|
||||
if(attarget || ix == idestx && iy == idesty)
|
||||
if(attarget || (ix == idestx && iy == idesty))
|
||||
break;
|
||||
|
||||
oldx = (int)x;
|
||||
|
||||
+2
-2
@@ -275,7 +275,7 @@ CardRegion* CardWindow::CardRegionFromPoint(int x, int y)
|
||||
//
|
||||
LRESULT CALLBACK CardWindow::CardWndProc(HWND hwnd, UINT iMsg, WPARAM wParam, LPARAM lParam)
|
||||
{
|
||||
CardWindow *cw = (CardWindow *)GetWindowLong(hwnd, 0);
|
||||
CardWindow *cw = (CardWindow *)GetWindowLongPtr(hwnd, 0);
|
||||
return cw->WndProc(hwnd, iMsg, wParam, lParam);
|
||||
}
|
||||
|
||||
@@ -366,7 +366,7 @@ LRESULT CALLBACK CardWindow::WndProc(HWND hwnd, UINT iMsg, WPARAM wParam, LPARAM
|
||||
//
|
||||
// associate this class with the window
|
||||
//
|
||||
SetWindowLong(hwnd, 0, (LONG)cs->lpCreateParams);
|
||||
SetWindowLongPtr(hwnd, 0, (LONG_PTR)cs->lpCreateParams);
|
||||
|
||||
return 1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user