# ViewerSetPosition

The ViewerSetPosition structure is used to change the current position in the current viewer instance.

    struct ViewerSetPosition
    {
       DWORD  Flags;
       FARINT64 StartPos;
       int  LeftPos;
    };

### Elements

Flags
Flags, defining the position change process. Can be a confination of the following flags (VIEWER_SETPOS_FLAGS enum):

Flag | Description
--- | ---
VSP_NOREDRAW | Do not redraw the screen.
VSP_PERCENT | The offset is given in percents not bytes.
VSP_RELATIVE | The offset is relative not absolute.
VSP_NORETNEWPOS | Do not return the real position (see StartPos).

StartPos
New file positions (in bytes or percents - depends on the VSP_PERCENT flag, can be negative if the VSP_RELATIVE flag is specified). Generaly it is not possible to set the exact position in the viewer, so the new position may not coninside with the one in StartPos. The new real position is then stored in StartPos (if the VSP_NORETNEWPOS is not specified). Use this property if needed.
LeftPos
Position of the left border of the viewer window in the viewed text.
See also:
Structures, ViewerControl, FARINT64