home *** CD-ROM | disk | FTP | other *** search
/ Shareware 1 2 the Maxx / sw_1.zip / sw_1 / WINDOWS / UTILS / WSHEL202.ZIP / ADD_CMDS.ZIP / WSTDIO.H < prev   
Text File  |  1992-05-12  |  2KB  |  53 lines

  1. #ifndef WSTDIO_H
  2. #define WSTDIO_H
  3.  
  4. //-------------------------------- DISPLAY MESSAGES ---------------------
  5. #define DM_PUTS               (WM_USER + 0)
  6. // lParam  : LPSTR
  7.  
  8. #define DM_GETS               (WM_USER + 1)
  9. // wParam  : MAXCHARS 
  10. // lParam  : LPSTR
  11. // returns : -1 if application should be terminated
  12.  
  13. #define DM_CLEAR              (WM_USER + 2)
  14.  
  15. #define DM_SETFONT            (WM_USER + 3)
  16. // wParam  : FONTTYPE
  17.  
  18. #define DM_GETNUMCOLUMNS      (WM_USER + 5)
  19. // returns : approximate number of columns on the display. A column is space 
  20. //           enough for about 12 characters and a tab, not single char's
  21.  
  22. #define DM_GETMARKEDTEXT      (WM_USER + 6)
  23. // returns : Global handle to memory block containg marked text.  This
  24. //           memory must be freed by the user
  25.  
  26. #define DM_SETMORE            (WM_USER + 7)
  27. // wParam  : TRUE = ON, FALSE = OFF
  28.  
  29. #define DM_APPENDTOCOMMANDLINE (WM_USER + 8)
  30. // lParam - LPSTR string to append
  31.  
  32. #define DM_COPYTEXTTOCLIPBOARD   (WM_USER + 9)
  33. // no parameters
  34.  
  35. #define DM_PASTETEXTFROMCLIPBOARD (WM_USER + 10)
  36. // no parameters
  37.  
  38. #define dputs(hwnd,szStr)      (SendMessage (hwnd, DM_PUTS, 0, (LONG) (LPSTR) szStr))
  39. #define dgets(hwnd,szStr,nLen) (SendMessage (hwnd, DM_GETS, (WORD) nLen, (LONG) (LPSTR) szStr))
  40. #define dClear(hwnd)           (SendMessage (hwnd, DM_CLEAR, 0, 0L))
  41. #define dSetFont(hwnd,wFont)   (SendMessage (hwnd, DM_SETFONT, wFont, 0L))
  42. #define dGetNumColumns(hwnd)   ((int)SendMessage (hwnd, DM_GETNUMCOLUMNS, 0, 0L))
  43. #define dGetMarkedText(hwnd)   (SendMessage (hwnd, DM_GETMARKEDTEXT, 0, 0L))
  44. #define dSetMore(hwnd,state)   (SendMessage (hwnd, DM_SETFONT, state, 0L))
  45. #define dCopyTextToClipboard(hwnd) (SendMessage (hwnd, DM_COPYTEXTTOCLIPBOARD, 0, 0L))
  46. #define dPasteTextFromClipboard(hwnd) (SendMessage (hwnd, DM_PASTETEXTFROMCLIPBOARD, 0, 0L))
  47.  
  48. //---------------------------- EXPORTED FUNCTIONS -------------------------
  49. HWND CreateDisplay (HWND hwndParent, int id, HANDLE hInstance, HANDLE hacc);
  50.  
  51. #endif
  52.  
  53.