OSDN Git Service

Change to specify explicitly code pages.
[ffftp/ffftp.git] / lvtips.c
index 6ea8524..dcda9fb 100644 (file)
--- a/lvtips.c
+++ b/lvtips.c
@@ -299,7 +299,9 @@ static int CellRectFromPoint(HWND hWnd, POINT point, RECT *cellrect, int *col)
        int Ret;\r
 \r
        Ret = -1;\r
-       if((GetWindowLong(hWnd, GWL_STYLE) & LVS_TYPEMASK) == LVS_REPORT )\r
+       // 64ビット対応\r
+//     if((GetWindowLong(hWnd, GWL_STYLE) & LVS_TYPEMASK) == LVS_REPORT )\r
+       if((GetWindowLongPtr(hWnd, GWL_STYLE) & LVS_TYPEMASK) == LVS_REPORT )\r
        {\r
                row = ListView_GetTopIndex(hWnd);\r
                bottom = row + ListView_GetCountPerPage(hWnd);\r