ViewerSetMode

Far Manager

ViewerSetMode

The ViewerSetMode structure is used to set the view mode of the current viewer instance.
struct ViewerSetMode
{
  int Type;
  union {
    int iParam;
    char *cParam;
  } Param;
  DWORD Flags;
  DWORD Reserved;
};

Elements

Type
Mode type. Can be one of the following values (VIEWER_SETMODE_TYPES enum):
ModeDescription
VSMT_HEX Text/Hex mode: iParam=1 - turn Hex mode on, iParam=0 - text mode.
VSMT_WRAP Line wrap: iParam=1 - line wrap is on, iParam=0 - off)
VSMT_WORDWRAP Word wrap: iParam=1 - word wrap is on, iParam=0 - off.
iParam
Integer value, see details above.
cParam
Pointer to a null terminated string, see details above.
Flags
Additional flags (VIEWER_SETMODEFLAGS_TYPES enum):
ModeDescription
VSMFL_REDRAW Redraw the screen. Otherwise use the VCTL_REDRAW command to redraw the screen after changing the mode.
Reserved
Reserved for future use. Should be 0.

Remarks

See also: