How PutCopyBox Determines Window Size in 7.00/7.10 UI ToolBox (65926)
This article was previously published under Q65926
SUMMARY
The User-Interface (UI) ToolBox uses three assembler routines to "Get
a window from the screen" (GetCopyBox), "Put a window to the screen"
(PutCopyBox), and "Change the attributes of a window" (AttrBox). The
source code for these three assembler routines are located in the
UIASM.ASM file.
GetCopyBox and PutCopyBox are complimentary routines, except for the
parameters that they use. GetCopyBox needs five parameters; four to
define the rectangle of the window and one for the string to store the
information. PutCopyBox uses only three parameters; two for the
upper-left corner and one for the string where the information will
come from.
PutCopyBox determines the size of the rectangle by the window width
and window height stored in the first four bytes of the string.
GetCopyBox stores this information in the string as the first four
bytes, then places the contents of the window following the height and
width of the window.
The window width is the first two bytes and the window height is the
next two bytes.
This information applies to Microsoft Basic Professional Development
System (PDS) versions 7.00 and 7.10 for MS-DOS.
Modification Type: |
Minor |
Last Reviewed: |
1/9/2003 |
Keywords: |
KB65926 |
|