X-Git-Url: http://git.sourceforge.jp/view?p=ffftp%2Fffftp.git;a=blobdiff_plain;f=lvtips.c;h=dcda9fb94496f62b4b9dc0176b4c79113aa662fb;hp=a833a99629fe02ad49651495a70aa0e62182a8a5;hb=698970baae62125ab8fd5d0e71a2835187288c7d;hpb=dbcd3f7827d14ef6a6c24645c5ae28bdeeb01ad9 diff --git a/lvtips.c b/lvtips.c index a833a99..dcda9fb 100644 --- a/lvtips.c +++ b/lvtips.c @@ -30,6 +30,8 @@ /* このソースは MFC Programmer's SourceBook (http://www.codeguru.com/)を参考にしました */ #define STRICT +// IPv6対応 +#include #include #include #include @@ -297,7 +299,9 @@ static int CellRectFromPoint(HWND hWnd, POINT point, RECT *cellrect, int *col) int Ret; Ret = -1; - if((GetWindowLong(hWnd, GWL_STYLE) & LVS_TYPEMASK) == LVS_REPORT ) + // 64ビット対応 +// if((GetWindowLong(hWnd, GWL_STYLE) & LVS_TYPEMASK) == LVS_REPORT ) + if((GetWindowLongPtr(hWnd, GWL_STYLE) & LVS_TYPEMASK) == LVS_REPORT ) { row = ListView_GetTopIndex(hWnd); bottom = row + ListView_GetCountPerPage(hWnd);