# ViewerMode

The ViewerMode structure is used to receive additional information about the state of the current viewer instance.

    struct ViewerMode
    {
       int UseDecodeTable;
       int TableNum;
       int AnsiMode;
       int Unicode;
       int Wrap;
       int WordWrap;
       int Hex;
       DWORD Reserved[4];
    };

### Elements

UseDecodeTable
If 1, then a decoding table is used.
TableNum
The number of the user character table. Use only if UseDecodeTable is 1.
AnsiMode
If 1, then the current charset is ANSI.
Unicode
If 1, then the current charset is Unicode.
Wrap
Text wrapping is on - 1, off - 0.
TypeWrap
Text wrapping mode: 1 - word wrap is on, 0 - line wrap.
Hex
If 1, then the viewer is in hex-mode.
Reserved
Reserved for future use.
See also:
Structures, ViewerControl, ViewerInfo