
  Assembly Editor control - messages reference

------------------------------------------------------------------------------

  WM_COPY
  WM_CUT
  WM_PASTE
  WM_CLEAR
  WM_SETTEXT
  WM_GETTEXTLENGTH
  WM_GETTEXT
  WM_SETFONT
  WM_GETFONT
  WM_UNDO / EM_UNDO
  EM_CANUNDO
  EM_EMPTYUNDOBUFFER
  EM_REPLACESEL

  Parameters:
    As for standard messages of those names.

  Return:
    As for standard messages of those names.

------------------------------------------------------------------------------

  AEM_SETMODE

  Parameters:
    wparam = new mode value
    lparam = ignored, should be zero

  Return:
    Always returns zero.

  Remarks:
    Mode value can be zero or any combination of the following constants:
      AEMODE_OVERWRITE   - overwrite mode,
      AEMODE_VERTICALSEL - vertical selection mode.

------------------------------------------------------------------------------

  AEM_GETMODE

  Parameters:
    wparam = ignored, should be zero
    lparam = ignored, should be zero

  Return:
    Current mode value.

------------------------------------------------------------------------------

  AEM_SETSYNTAXHIGHLIGHT

  Parameters:
    wparam = pointer to table of syntax colors
    lparam = pointer to syntax highlight procedure

  Return:
    Always returns zero.

  Remarks:
    Syntax procedure is SyntaxProc(lpLine,uChars,lpColors), lpLine and 
    lpColors are pointers to buffers of length given by the uChars parameter.
    The lpLine is the pointer to the data of line that has to be syntax 
    highlighted (it may be padded with spaces to the full length given by 
    uChars), lpColors points to the list of colors for the each character in 
    line, initially filled with zeros. Each color value occupies one byte and
    is index to the table of syntax colors (each field in that table is the 
    standard 32-bit color value, table is indexed from 1) or zero for the
    unhighlighed color.

------------------------------------------------------------------------------

  AEM_SETRIGHTCLICKMENU

  Parameters:
    wparam = handle of the shortcut menu
    lparam = handle of owner window, which should receive WM_COMMAND messages

  Return:
    Always returns zero.

  Remarks:
    Sets up the shortcut menu, which appears when someone right-clicks on the
    control or presses the menu key.

------------------------------------------------------------------------------

  AEM_GETLINELENGTH

  Parameters:
    wparam = line number
    lparam = ignored, shuould be zero

  Return:
    Length of line data in bytes.

  Remarks:
    If line number is zero, current line is selected, if it's -1, the last
    line is selected.

------------------------------------------------------------------------------

  AEM_GETLINE

  Parameters:
    wparam = line number
    lparam = pointer to buffer for the line data

  Return:
    Count of bytes copied to the buffer.

  Remarks:
    If line number is zero, current line is selected, if it's -1, the last
    line is selected. To determine how large buffer is needed, call the
    AEM_GETLINELENGTH first.

------------------------------------------------------------------------------

  AEM_SETPOS

  Parameters:
    wparam = pointer to AEPOS structure
    lparam = ignored, should be zero

  Return:
    Always returns zero.

  Remarks:
    Fields of AEPOS should be set to the following values:
      caretLine         = number of line in which caret has to be placed,
                          zero means current line, -1 means last line;
      caretPosition     = position in line where caret has to be placed,
                          zero means current position;
      selectionLine     = number of line where the selection has to begin,
                          zero means current line, -1 means last line;
                          the end of selection is marked by caret position,
      selectionPosition = position in line where selection has to begin,
                          zero means current position.

------------------------------------------------------------------------------

  AEM_GETPOS

  Parameters:
    wparam = pointer to AEPOS structure
    lparam = ignored, should be zero

  Return:
    Always returns zero.

  Remarks:
    Fields of AEPOS are filled with the following information:
      caretLine         = number of line in which caret is placed;
      caretPosition     = position in line where caret is placed;
      selectionLine     = number of line where the selection begins;
      selectionPosition = position in line where selection begins.

------------------------------------------------------------------------------

  AEM_FINDFIRST

  Parameters:
    wparam = search flags
    lparam = pointer to string to search for

  Return:
    TRUE if string was found, FALSE otherwise.

  Remarks:
    Flags can zero or any combination of the following values:
      AEFIND_CASESENSITIVE - case sensitive search,
      AEFIND_WHOLEWORDS    - accept whole words only,
      AEFIND_BACKWARD      - search backward from current position.

------------------------------------------------------------------------------

  AEM_FINDNEXT

  Parameters:
    wparam = ignored, should be zero
    lparam = ignored, should be zero

  Return:
    TRUE if string was found, FALSE otherwise.

  Remarks:
    AEM_FINDFIRST has to be called first.

------------------------------------------------------------------------------

  AEM_CANFINDNEXT

  Parameters:
    wparam = ignored, should be zero
    lparam = ignored, should be zero

  Return:
    TRUE if there is some search to be completed, FALSE otherwise.

------------------------------------------------------------------------------

  AEM_GETWORDATCARET

  Parameters:
    wparam = size of buffer
    lparam = pointer to buffer

  Return:
    Length of the string copied to the buffer (not including the terminating
    zero).

  Remarks:
    The buffer is filled with the string containing word in which the caret
    is placed.

------------------------------------------------------------------------------

  AEM_SETTEXTCOLOR

  Parameters:
    wparam = color for text
    lparam = color for text background

  Return:
    Always returns zero.

------------------------------------------------------------------------------

  AEM_SETSELCOLOR

  Parameters:
    wparam = color for selected text
    lparam = color for selected background

  Return:
    Always returns zero.

------------------------------------------------------------------------------
