no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
Next revision | |||
— | en:docs:fapi:viosetcurtype [2018/09/01 10:02] – created prokushev | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | |||
+ | This call sets the cursor type. | ||
+ | |||
+ | ==Syntax== | ||
+ | | ||
+ | |||
+ | ==Parameters== | ||
+ | ;CursorData (PVIOCURSORINFO) - input : Address of the cursor characteristics structure: | ||
+ | :startline (USHORT) : Horizontal scan line in the character cell that marks the top line of the cursor. If the character cell has n scan lines, 0 is the top scan line of the character cell and (n - 1) is the bottom scan line. | ||
+ | :endline (USHORT) : Horizontal scan line in the character cell that marks the bottom line of the cursor. Scan lines within a character cell are numbered as defined in startline. The maximum value allowed is 31. | ||
+ | : | ||
+ | ::A value of 0 specifies the default width. In text modes, this is 1 column. In graphics modes, this is the number of pels equivalent to the width of one character. | ||
+ | : | ||
+ | ;VioHandle (HVIO) - input : This must be zero unless the caller is a Presentation Manager application, | ||
+ | |||
+ | ==Return Code== | ||
+ | rc (USHORT) - return | ||
+ | Return code descriptions are: | ||
+ | * 0 NO_ERROR | ||
+ | * 355 ERROR_VIO_MODE | ||
+ | * 356 ERROR_VIO_WIDTH | ||
+ | * 421 ERROR_VIO_INVALID_PARMS | ||
+ | * 436 ERROR_VIO_INVALID_HANDLE | ||
+ | * 465 ERROR_VIO_DETACHED | ||
+ | |||
+ | ==Remarks== | ||
+ | |||
+ | ==Example Code== | ||
+ | === C Binding=== | ||
+ | <PRE> | ||
+ | typedef struct _VIOCURSORINFO { /* vioci */ | ||
+ | USHORT | ||
+ | USHORT | ||
+ | USHORT | ||
+ | USHORT | ||
+ | | ||
+ | } VIOCURSORINFO; | ||
+ | |||
+ | #define INCL_VIO | ||
+ | |||
+ | USHORT | ||
+ | |||
+ | PVIOCURSORINFO | ||
+ | HVIO | ||
+ | |||
+ | USHORT | ||
+ | </ | ||
+ | |||
+ | ===MASM Binding=== | ||
+ | <PRE> | ||
+ | VIOCURSORINFO struc | ||
+ | vioci_yStart dw ? ;cursor start line | ||
+ | vioci_cEnd | ||
+ | vioci_cx | ||
+ | vioci_attr | ||
+ | VIOCURSORINFO ends | ||
+ | |||
+ | EXTRN VioSetCurType: | ||
+ | INCL_VIO | ||
+ | |||
+ | PUSH@ OTHER | ||
+ | PUSH | ||
+ | CALL | ||
+ | |||
+ | Returns WORD | ||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ====== Note ====== | ||
+ | |||
+ | Text based on [[http:// | ||
+ | |||
+ | {{page> | ||
+ | |||