Appendix A: System Routines — Windows
1149
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
ScrToWin
Declaration:
WIN_RECT *
ScrToWin
(const SCR_RECT *
sr
)
Category(ies):
Windows
Description:
Convert a SCR_RECT structure to a WIN_RECT (return a pointer to
statically allocated data!).
Inputs:
sr
— SCR_RECT to convert to WIN_RECT.
Outputs:
Pointer to a statically allocated WIN_RECT (make a copy if a permanent
version is needed — see example below).
Assumptions:
The address of the WIN_RECT returned is statically allocated and so
cannot be shared.
Side Effects:
Note that WIN_RECTs and SCR_RECTs are not the same. WIN_RECTs
are based on unsigned short values (WINDOW coordinates) whereas
SCR_RECTs are based on BYTE values (screen coordinates).
Availability:
All versions of the TI
-
89 / TI
-
92 Plus.
TI
-
89 / TI
-
92 Plus
Differences:
None
See Also:
None
Example:
WIN_RECT wr;
WINDOW Win;
memcpy(&wr, ScrToWin(&Win->Client), sizeof(WIN_RECT) );
WinScrollV( &Win, &wr, -V_SCROLL );