home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 22 / CD_ASCQ_22_0695.iso / win / prg / photov11 / photov.h < prev    next >
Text File  |  1995-01-02  |  4KB  |  132 lines

  1. /***************************************************************
  2.  
  3.    Copyright 1994  Northeast Data Corp.  All Rights Reserved
  4.  
  5. ****************************************************************/
  6.  
  7. /***************************************************************
  8.  
  9.  
  10.    PhotoV.h
  11.  
  12.    Public definitions for applications that use the PhotoV
  13.    control.
  14.  
  15.     - Messages
  16.     - Notification codes.
  17.     - Control Styles.
  18.  
  19. ****************************************************************/
  20.  
  21. // The one callable function to force the DLL to load
  22. void FAR PASCAL registerPhotoV(void);
  23.  
  24. //Max and min scale percentages
  25. #define MAXSCALE           400
  26. #define MINSCALE           3.3
  27.  
  28. //Number of menu characters in the menus property
  29. #define MAXMENUS           14
  30.  
  31. //Menu items to enable/disable (offsets into the menu property string)
  32. #define MENUCOPY              0
  33. #define MENUBESTFIT           1
  34. #define MENUFITVERT           2
  35. #define MENUFITHORZ           3
  36. #define MENU1TO1              4
  37. #define MENUINCREASECONTRAST  5
  38. #define MENUDECREASECONTRAST  6
  39. #define MENUZOOMIN            7
  40. #define MENUZOOMOUT           8
  41. #define MENUPRINT             9
  42. #define MENUROTATE0           10
  43. #define MENUROTATE90          11
  44. #define MENUROTATE180         12
  45. #define MENUROTATE270         13
  46.  
  47.  
  48. //Control specific styles.
  49. #define CS_TABSTOP              0x0080L
  50.  
  51. //Base for all messages to and from the VicCtl                                       
  52. #define PHOTOV_BASE               WM_USER+2000
  53.  
  54.   
  55.    //Messages interface for the PhotoV Control
  56. #define ICM_SETFILE           PHOTOV_BASE+1
  57. #define ICM_SETCOMMAND        PHOTOV_BASE+2
  58. #define ICM_SETBACKCOLOR      PHOTOV_BASE+3
  59. #define ICM_SETROTATION       PHOTOV_BASE+4
  60. #define ICM_SETSCALE          PHOTOV_BASE+5
  61. #define ICM_SETSCALEPERCENT   PHOTOV_BASE+6  
  62. #define ICM_SETVSCROLLPOS     PHOTOV_BASE+7
  63. #define ICM_SETHSCROLLPOS     PHOTOV_BASE+8
  64. #define ICM_GETPROPERTY       PHOTOV_BASE+9
  65. #define ICM_SETHDCPRN         PHOTOV_BASE+10
  66.  
  67.    // wParam values for the ICM_SETCOMMAND message
  68. #define COMMANDZOOMIN      1
  69. #define COMMANDZOOMOUT     2
  70. #define COMMANDINCREASE    3
  71. #define COMMANDDECREASE    4
  72. #define COMMANDPRINT       5
  73. #define COMMANDCOPY        6
  74. #define COMMANDMAX         6
  75.  
  76.    // wParam values for the ICM_SETROTATION message
  77. #define ROTATE0      0
  78. #define ROTATE90     1
  79. #define ROTATE180    2
  80. #define ROTATE270    3
  81. #define ROTATEMAX    3
  82.  
  83.    // wParam values for the ICM_SETBACKCOLOR message
  84. #define COLORBLACK      0
  85. #define COLORWHITE      1
  86. #define COLORGRAY       2
  87. #define COLORMAX        2
  88.  
  89.    // wParam values for the ICM_SETSCALE message
  90. #define SCALEFITVERT       0
  91. #define SCALEFITHORZ       1
  92. #define SCALE1TO1          2
  93. #define SCALEBESTFIT       3
  94. #define SCALEPERCENT       4    
  95. #define SCALEMAX           4
  96.  
  97.    // Enumerated values used in the ICM_GETPROPERTY 
  98.    //   wParam to specify
  99.    //   which property is to be accessed
  100. #define IVAL_ROTATION       1
  101. #define IVAL_SCALE          3
  102. #define IVAL_SCALEPERCENT   4
  103. #define IVAL_FILENAME       5
  104. #define IVAL_SCROLLBARS     6
  105. #define IVAL_BACKCOLOR      7
  106. #define IVAL_VSCROLLPOS     8
  107. #define IVAL_HSCROLLPOS     9
  108. #define IVAL_HDCPRN         10
  109.  
  110.    // Notifications
  111. #define ICN_MENUCHANGE      1
  112.  
  113.    //Error codes
  114. #define VBERR_BASE            30001 // Messages get numbered from here
  115. #define VBERR_FILEOPEN        VBERR_BASE
  116. #define VBERR_COMMANDFAILED   VBERR_BASE+1
  117. #define VBERR_BACKCOLOR       VBERR_BASE+2
  118. #define VBERR_SCROLLBARS      VBERR_BASE+3
  119. #define VBERR_ROTATION        VBERR_BASE+4
  120. #define VBERR_POLARITY        VBERR_BASE+5
  121. #define VBERR_SCALE           VBERR_BASE+6
  122. #define VBERR_SCALEPERCENT    VBERR_BASE+7
  123. #define VBERR_CONTRAST        VBERR_BASE+8
  124. #define VBERR_VSCROLLPOS      VBERR_BASE+9
  125. #define VBERR_HSCROLLPOS      VBERR_BASE+10
  126. #define VBERR_BADMODE         VBERR_BASE+11
  127. #define VBERR_MOREMEM         VBERR_BASE+12
  128. #define VBERR_INVALIDCOMMAND  VBERR_BASE+13
  129. #define VBERR_PROPERTY        VBERR_BASE+14
  130.  
  131.  
  132.