TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Andrew Clegg
from: Jonathan de Boyne Pollard
date: 1995-04-23 11:38:10
subject: Warp Backwards compATIBL

One other slight difference (again due to the change in bitness of the
  internal workings of PM) is WinTrackRect.

  If you install a hook function in WinTrackRect in OS/2 version 2.xx,
  you have to call Win16TrackRect and use a 16-bit callback function for
  your hook if you want to be able to (say) display the co-ordinates of
  the rectangle as the user is moving it around the screen.

  This is because the 32-bit PM API on that version of OS/2 thunks the
  TRACKINFO structure to its 16-bit equivalent internally and uses that
  internal structure during tracking. Thus the RECTL structures in the
  32-bit structure are not updated as the rectangle tracks, and any
  32-bit hook doesn't actually display the correct co-ordinates.

  However, on OS/2 WARP Three, that part of PM is now 32-bit, and it is
  now the 16-bit function that thunks to 32-bit internally, rather than
  the other way around.  So it is then hook code that uses the 16-bit
  TRACKINFO structure that doesn't see the rectangle boundaries as they
  are updated.

  > JdeBP <
___
 X MegaMail 2.10 #0:
--- Maximus/2 2.02
* Origin: DoNoR/2,Woking UK (44-1483-722344) (2:440/4)
SEEN-BY: 105/42 620/243 711/401 409 410 413 430 807 808 809 934 955 712/407
SEEN-BY: 712/515 628 704 713/888 800/1 7877/2809
@PATH: 440/4 141/209 270/101 105/103 42 712/515 711/808 809 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.