From 0e103558335e2f37cd44c3184551e39ae790f16d Mon Sep 17 00:00:00 2001 From: Pritpal Bedi Date: Fri, 13 Jun 2008 05:25:52 +0000 Subject: [PATCH] 2008-06-13 22:24 UTC+0800 Pritpal Bedi (pritpal@vouchcac.com) * harbour/source/rtl/gtwvt/gtwvt.c * harbour/source/rtl/gtwvt/gtwvt.h * Minor cleanups. --- harbour/ChangeLog | 5 +++++ harbour/source/rtl/gtwvt/gtwvt.c | 12 ++++-------- harbour/source/rtl/gtwvt/gtwvt.h | 2 -- 3 files changed, 9 insertions(+), 10 deletions(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 5b81eb7ee9..09ee3112b5 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -8,6 +8,11 @@ 2008-12-31 13:59 UTC+0100 Foo Bar */ +2008-06-13 22:24 UTC+0800 Pritpal Bedi (pritpal@vouchcac.com) + * harbour/source/rtl/gtwvt/gtwvt.c + * harbour/source/rtl/gtwvt/gtwvt.h + * Minor cleanups. + 2008-06-13 21:56 UTC+0800 Pritpal Bedi (pritpal@vouchcac.com) * harbour/source/rtl/gtwvt/gtwvt.c ! Fixed selection of left most column and top row. diff --git a/harbour/source/rtl/gtwvt/gtwvt.c b/harbour/source/rtl/gtwvt/gtwvt.c index 18e393db40..8a275a0148 100644 --- a/harbour/source/rtl/gtwvt/gtwvt.c +++ b/harbour/source/rtl/gtwvt/gtwvt.c @@ -758,12 +758,11 @@ static void hb_gt_wvt_MouseEvent( PHB_GTWVT pWVT, UINT message, WPARAM wParam, L if( pWVT->bBeginMarked ) { pWVT->bBeingMarked = TRUE; - pWVT->markStaColRow = colrow; - s_rcNew.left = xy.x; - s_rcNew.top = xy.y; - s_rcNew.right = xy.x; - s_rcNew.bottom = xy.y; + s_rcNew.left = xy.x; + s_rcNew.top = xy.y; + s_rcNew.right = xy.x; + s_rcNew.bottom = xy.y; s_rectOld.left = 0; s_rectOld.top = 0; @@ -866,11 +865,8 @@ static void hb_gt_wvt_MouseEvent( PHB_GTWVT pWVT, UINT message, WPARAM wParam, L { if( pWVT->bBeingMarked ) { - POINT a0; - POINT a1; RECT rect = { 0, 0, 0, 0 }; RECT colrowRC = { 0, 0, 0, 0 }; - char buff[ 100 ]; s_rcNew.right = xy.x; s_rcNew.bottom = xy.y; diff --git a/harbour/source/rtl/gtwvt/gtwvt.h b/harbour/source/rtl/gtwvt/gtwvt.h index 30a68212f1..6f3895a79d 100644 --- a/harbour/source/rtl/gtwvt/gtwvt.h +++ b/harbour/source/rtl/gtwvt/gtwvt.h @@ -157,8 +157,6 @@ typedef struct BOOL bMaximized; /* Flag is set when window has been maximized */ BOOL bBeingMarked; /* Flag to control DOS window like copy operation */ BOOL bBeginMarked; - POINT markStaColRow; - POINT markEndColRow; BOOL bResizable; BOOL bSelectCopy;