hi,
GOT IT
use c:\hmg.3.4.4\SOURCE\
h_windows.prg
search under WM_LBUTTONDOWN and WM_MOUSEMOVE for
Code: Select all
_HMG_SYSDATA[ 191 ] := HIWORD( lParam )
_HMG_SYSDATA[ 192 ] := LOWORD( lParam )
also under WM_CONTEXTMENU
Code: Select all
_HMG_MouseRow := HIWORD( lParam )
_HMG_MouseCol := LOWORD( lParam )
and replace it with
Code: Select all
aPos := GETCURSORPOS()
_HMG_SYSDATA[ 191 ] := aPos[1]
_HMG_SYSDATA[ 192 ] := aPos[2]
or
Code: Select all
aPos := GETCURSORPOS()
_HMG_MouseRow := aPos[1]
_HMG_MouseCol := aPos[2]
---
search for
Code: Select all
TrackPopupMenu( _HMG_SYSDATA[ 74 ] [ i ], LOWORD( lparam ), HIWORD( lparam ), hWnd )
and replace it with
Code: Select all
TrackPopupMenu( _HMG_SYSDATA[ 74 ] [ i ], aPos[ 1 ], aPos[ 2 ], hWnd )
---
use c:\hmg.3.4.4\SOURCE\
c_windows.c
in HB_FUNC ( GETCURSORPOS )
change
Code: Select all
hb_storvni( pt.y, -1, 1 );
hb_storvni( pt.x, -1, 2 );
to
Code: Select all
hb_storvni( pt.x, -1, 1 );
hb_storvni( pt.y, -1, 2 );
rebuild LIB and it work with NEGATIVE Value
p.s. you can use attached Files to overwrite (!) c:\hmg.3.4.4\SOURCE\c_windows.c and c:\hmg.3.4.4\SOURCE\h_windows.prg but make BACKUP FIRST