| |
| BOOL SelectText( |
| |
LPRECT lpRect, |
|
| |
DWORD dwOptions |
|
| ); |
The SelectText method selects or unselects a region of the
virtual display.
Parameters
- lpRect
- A pointer to a region of the display to select. The coordinates
must be in display cursor coordinates, not pixels. If this
parameter is NULL, any selected text in the display is
unselected.
- dwOptions
- One or more options which specifies how the region will be
selected. These options may be combined using a bitwise Or
operator. The following values may be used:
| Value |
Description |
| NVT_SELECT_DEFAULT |
The default selection option. If there is a region of the
display already selected, it will be cleared and the new region
is selected. |
| NVT_SELECT_CLIPBOARD |
Copy the selected text to the clipboard. If this option is
not specified, the selected text is buffered and may be copied
at a later point. |
| NVT_SELECT_NOREFRESH |
The display is not refreshed when the region is selected.
This is useful if the application is going to be selecting
multiple regions of the display, or combining more than one
region, in order to minimize output to the window. |
| NVT_SELECT_NOBUFFER |
Do not buffer the text in the selected region of the
display. The display will show any text as being selected, but
it will not be available to be copied by the application. This
can be useful if the application is going to select multiple
regions and combine them. |
| NVT_SELECT_COMBINE |
If there is already a region of the display that has been
selected, the new region is combined with the previous region,
selecting all of the text. |
| NVT_SELECT_UNSELECT |
Unselect the specified region of the display. |
Return Value
If the method succeeds, the return value is non-zero. If the
method fails, it returns zero.
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
|
|