EmEditor Home - EmEditor Help - Plug-in Reference - Structures

HISTORY_INFO

Used by EVENT_HISTORY event.

typedef struct _HISTORY_INFO {
    size_t cbSize;
    UINT nFlags;
    POINT_PTR ptTop;
    POINT_PTR ptBottom;
    UINT nChar;
    LPCWSTR pszString;
} HISTORY_INFO;

Members

cbSize

Size of this data structure, in bytes. This member should be sizeof( HISTORY_INFO ) before receiving the EVENT_HISTORY event.

nFlags

Specifies a combination of the following values.

HISTORY_INSERT_CHAR A character was inserted.
HISTORY_BACK_SPACE The back space key was pressed to remove a character.
HISTORY_DELETE_CHAR The Delete key was pressed to remove a character.
HISTORY_INSERT_STRING A string was inserted.
HISTORY_DELETE_STRING A string was deleted.
HISTORY_INSERT_TAB_SEL The Tab key was pressed to indent the selection.
HISTORY_MODIFIED The document was modified.
HISTORY_COMBINED This history event should be combined with earlier event(s).
HISTORY_CR_ONLY The removed character was CR only.
HISTORY_LF_ONLY The removed character was LF only.
HISTORY_SEL_BOX The inserted string was a vertical selection.
HISTORY_INSIDE_UNDO The operation was inside the Undo command.
HISTORY_INSIDE_REDO The operation was inside the Redo command.

ptTop

This member contains the previous cursor position. If the nFlags member contains HISTORY_INSERT_STRING, this member is the starting position of the selection.

ptBottom

If the nFlags member contains HISTORY_INSERT_STRING, this member is the ending position of the selection. Otherwise, this member is ignored.

nChar

If the nFlags member contains HISTORY_BACK_SPACE or HISTORY_DELETE_CHAR, this member contains the character removed.

pszString

If the nFlags member contains HISTORY_DELETE_STRING, this member contains the string removed.

Version

Supported on Version 9.00 or later.

Copyright 2003-2014 by Emurasoft, Inc.