HISTORY_INFO¶
EVENT_HISTORY イベント で使用します。
typedef struct _HISTORY_INFO {
size_t cbSize;
UINT nFlags;
POINT_PTR ptTop;
POINT_PTR ptBottom;
UINT nChar;
LPCWSTR pszString;
} HISTORY_INFO;
フィールド¶
cbSize
このデータ構造体のバイトのサイズ。EVENT_HISTORY イベントを受け取る前にこのメンバーを sizeof( HISTORY_INFO ) に設定します。
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 9.00 以上で利用できます。