OSDN Git Service

Update PEM file.
[ffftp/ffftp.git] / lvtips.c
index a833a99..dcda9fb 100644 (file)
--- a/lvtips.c
+++ b/lvtips.c
@@ -30,6 +30,8 @@
 /* このソースは MFC Programmer's SourceBook (http://www.codeguru.com/)を参考にしました */\r
 \r
 #define  STRICT\r
+// IPv6対応\r
+#include <winsock2.h>\r
 #include <windows.h>\r
 #include <stdio.h>\r
 #include <stdlib.h>\r
@@ -297,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