Events

EVENT_CARET_MOVED

The cursor position has been moved.

EVENT_CHANGE

The text has been altered.

EVENT_CHAR

A character has been inserted. The LOWORD (lParam) represents the inserted Unicode character code.

EVENT_CLOSE

Called immediately before closing EmEditor or the plug-in may be freed. A plug-in should release the resource and make the DLL file available to be removed. The first parameter hwnd of the OnEvents function will be NULL. This event does not mean that the plug-in will actually be freed.

EVENT_CLOSE_FRAME

Called when an EmEditor frame window is being closed. (Supported in EmEditor Version 5.00 or later)

EVENT_CONFIG_CHANGED

The property of the current configuration has been changed.

EVENT_CREATE

Called immediately after starting EmEditor or the plug-in has been loaded. LOWORD(lParam) represents the command ID of the plug-in itself.

EVENT_CREATE_FRAME

Called when a new EmEditor frame window is created. This event is also called when the tab is enabled or disabled. LOWORD(lParam) represents the command ID of the plug-in itself. (Supported in EmEditor Version 5.00 or later)

EVENT_CUSTOM_BAR_CLOSED

Called when a custom bar has been closed. EmEditor calls DestroyWindow() against the client window when the custom bar is closed. lParam represents a pointer to the CUSTOM_BAR_CLOSED_INFO structure. (Supported in EmEditor Version 6.00 or later)

EVENT_CUSTOM_BAR_CLOSING

Called when a custom bar is being closed. lParam represents a pointer to the CUSTOM_BAR_CLOSED_INFO structure. (Supported in EmEditor Version 6.00 or later)

EVENT_DOC_CLOSE

Called when a document is about to close. lParam represents a handle (HEEDOC) to the closing document. (Supported in EmEditor Version 5.00 or later)

EVENT_DOC_SEL_CHANGED

Called when an active document is changed. (Supported in EmEditor Version 5.00 or later)

EVENT_DROPPED

A file has been dropped onto the EmEditor frame window.

EVENT_FILE_OPENED

A file has been opened.

EVENT_HISTORY

Called each time when the text has been altered. lParam represents a pointer to the HISTORY_INFO structure.

EVENT_IDLE

Called when idle. (Supported in EmEditor Version 6.00 or later)

EVENT_KILL_FOCUS

The focus has been lost.

EVENT_LANGUAGE

The UI language has been changed.

EVENT_MODIFIED

The modified status has been changed.

EVENT_SAVING

The document is about to be saved. lParam represents a handle (HEEDOC) to the document being saved. (Supported in EmEditor Version 8.00 or later)

EVENT_SCROLL

A scroll bar position has been changed.

EVENT_SEL_CHANGED

The selection of the text has been changed.

EVENT_SET_FOCUS

The focus has been set.

EVENT_TAB_MOVED

Called when a tab has been moved.

EVENT_TEMP_SAVING

Called when a user is about to save a temporary document. The plug-in is responsible for saving the file. lParam represents a pointer to the TEMP_INFO structure.

EVENT_TOOLBAR_CLOSED

Called when a custom toolbar has been closed. Unlike the EVENT_CUSTOM_BAR_CLOSED message, EmEditor does not destroy the client window. lParam represents a pointer to the TOOLBAR_INFO structure. (Supported in EmEditor Version 7.00 or later)

EVENT_TOOLBAR_SHOW

Called when a custom toolbar has been hidden or displayed (when the RBBS_HIDDEN style is toggled). lParam represents a pointer to the TOOLBAR_INFO structure. (Supported in EmEditor Version 7.00 or later)

EVENT_UI_CHANGED

Called when the UI changed. lParam represents a combination of the following flags: UI_CHANGED_LANGUAGE and UI_CHANGED_TOOLBARS.

These events are used as the nEvents parameter by the OnEvents function.

These constants are defined at the header file (plugin.h).