home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / NOTEPAD2.ZIP / MLE.H < prev    next >
C/C++ Source or Header  |  1989-02-08  |  2KB  |  63 lines

  1. /*
  2.  * mle.h -- MLE interface to the outside world
  3.  *
  4.  * Created by Microsoft Corporation, 1989
  5.  */
  6.  
  7. /********* New messages and constants. ************/
  8.  
  9. #define EM_SETWRAP        (WM_USER+1)
  10. #define EM_QTL            (WM_USER+2)
  11. #define EM_LINEFROMCHAR        (WM_USER+3)
  12. #define EM_CHARFROMLINE        (WM_USER+4)
  13. #define EM_SETFONT        (WM_USER+5)
  14. #define EM_QUERYFONT        (WM_USER+6)
  15. #define EM_SETCHANGED        (WM_USER+7)
  16. #define EM_QUERYTYPING        (WM_USER+8)
  17. #define EM_SETTYPING        (WM_USER+9)
  18. #define EM_FORMAT        (WM_USER+10)
  19. #define EM_SETTABSIZE        (WM_USER+11)
  20. #define EM_QUERYTABSIZE        (WM_USER+12)
  21.  
  22. #define EM_SETIMPORTEXPORT    (WM_USER+20)
  23. #define EM_IMPORT        (WM_USER+21)
  24. #define EM_EXPORT        (WM_USER+22)
  25. #define EM_REPLACE        (WM_USER+23)
  26. #define EM_DELETE        (WM_USER+24)
  27. #define EM_GETTEXT        (WM_USER+25)
  28.  
  29. #define EN_HSCROLL        EN_SCROLL
  30. #define EN_VSCROLL        0x0020
  31.  
  32.  
  33. #define SLIDER_MIN 0             // range of valid scroll bar positions.
  34.                                  // This shouldn't be too wide, since for very
  35.                                  // long documents it could cause an overflow
  36.                                  // when calculating the position of the
  37.                                  // vertical slider.
  38. #define SLIDER_MAX 200
  39.  
  40. // buffer import/export formats
  41. #define MLE_CFTEXT 0
  42. #define MLE_CSTD 1
  43. #define MLE_WINFMT 2
  44.  
  45. /********* Types needed for certain messages. ***********/
  46.  
  47. // WARNING:  These must match definitions in mtypes.h.
  48.  
  49. typedef LONG IPT;       // insertion point in text (between two chars)
  50. typedef SHORT LINE;     // line number
  51. #define MLE        // We've made the definitions...
  52.  
  53.  
  54. /* External variables provided by MLE routines. */
  55.  
  56. extern PSZ cdecl WC_MLE;
  57.  
  58.  
  59. /* Calls to MLE routines. */
  60.  
  61. BOOL EXPENTRY MleInit (HAB hab);     // initialize the MLE by registering
  62.                                      // the MLE class
  63.