home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / c / library / mslang / cscrap / scraper.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-05-11  |  1.6 KB  |  56 lines

  1. /***************************************************************
  2.  
  3.    Copyright 1993  Northeast Data Corp.  All Rights Reserved
  4.  
  5. ****************************************************************/
  6.  
  7. /***************************************************************
  8.  
  9.  
  10.    Scraper.h
  11.  
  12.    Public definitions for applications that use the Scraper 
  13.    control.
  14.  
  15.     - Messages
  16.     - Notification codes.
  17.     - Control Styles.
  18.  
  19. ****************************************************************/
  20.  
  21.    // Maximum length of "Scrape ID" string
  22. #define MAXSCRAPEID     8
  23.  
  24.    //Control-specific messages
  25. #define SCM_SETCOMMAND        (WM_USER+1)
  26. #define SCM_SETSCRAPEID       (WM_USER+2)
  27. #define SCM_GETSCRAPEID       (WM_USER+3)
  28. #define SCM_SETACTION         (WM_USER+4)
  29. #define SCM_GETDATA           (WM_USER+5)
  30.  
  31.    // Commands (sent in wParam of the SCM_SETCOMMAND message
  32. #define SCC_CONFIGURE         1
  33. #define SCC_SCRAPE            2
  34. #define COMMANDMAX            2
  35.  
  36.    // Scrape actions - sent in wParam of SCM_SETACTION message
  37. #define ACTION_GETTEXT              0
  38. #define ACTION_GETBUTTONSTATE       1
  39. #define ACTION_GETLISTBOXTEXT       2
  40. #define ACTION_GETEDITTEXT          3
  41. #define ACTIONMAX                   3
  42.  
  43.    // The one callable function to force the DLL to load
  44. void FAR PASCAL registerScraper(void);
  45.  
  46.    // C Error codes
  47. #define ERR_TASKNOTFOUND      1
  48. #define ERR_WINDOWNOTFOUND    2
  49. #define ERR_INVALIDACTION     3
  50. #define ERR_INVALIDLPARAM     4
  51. #define ERR_NODATA            5
  52.  
  53.    // Visual Basic error codes
  54. #define VBERR_TASKNOTFOUND    20001
  55. #define VBERR_WINDOWNOTFOUND  20002
  56.