| |
| BOOL SetCell( |
| |
INT xPos, |
|
| |
INT yPos, |
|
| |
TCHAR nChar |
|
| |
UINT nAttributes |
|
| ); |
| BOOL SetCell( |
| |
TCHAR nChar |
|
| |
UINT nAttributes |
|
| ); |
The SetCell method sets the value of the specified cell in
the virtual display.
Parameters
- xPos
- An integer value which specifies the cell column in the virtual
display. If this argument is omitted or a value of -1 is specified,
the cell at the current cursor position will be used.
- yPos
- An integer value which specifies the cell row in the virtual
display. If this argument is omitted or a value of -1 is specified,
the cell at the current cursor position will be used.
- nChar
- The character that should be displayed at the specified
location in the virtual display
- nAttributes
- An unsigned integer which specifies the attributes for the
character in the virtual display. The attributes may be one or more
of the following values, combined using a bitwise Or operator:
| Value |
Description |
| NVT_ATTRIBUTE_NORMAL |
Normal, default attributes. |
| NVT_ATTRIBUTE_REVERSE |
Foreground and background cell colors are reversed. |
| NVT_ATTRIBUTE_BOLD |
The character is displayed using a higher intensity
color. |
| NVT_ATTRIBUTE_DIM |
The character is displayed using a lower intensity
color. |
| NVT_ATTRIBUTE_UNDERLINE |
The character is displayed with an underline. |
| NVT_ATTRIBUTE_HIDDEN |
The character is stored in display memory, but not
shown. |
| NVT_ATTRIBUTE_PROTECT |
The character is protected and cannot be cleared. |
Note that certain attributes, such as NVT_ATTRIBUTE_BOLD and
NVT_ATTRIBUTE_DIM are mutually exclusive.
Return Value
If the function succeeds, the return value is non-zero. If the
function fails, it returns zero. Failure typically indicates that the
virtual display has not been created, or that the row and/or column
values are outside of the bounds of the display.
Remarks
The SetCell method is used to modify a specific character
cell in the virtual display, changing both the character and the
attributes for that cell. Unlike the higher level methods such as
Write which process character strings and escape sequences,
the GetCell and SetCell methods allow direct, low-level
access to the virtual display in memory. After one or more cells are
modified using this function, you should call the Refresh
method to redraw the virtual display.
Requirements
Minimum Desktop Platform: Windows 7 Service Pack 1
Minimum Server Platform: Windows Server 2008 R2 Service Pack 1
Header File: cstools12.h
Import Library: csnvtv12.lib
See Also
|
|