home *** CD-ROM | disk | FTP | other *** search
/ Team Palmtops 7 / Palmtops_numero07.iso / WinCE / SDKWindowsCE / AutoPC / apcsdk10.exe / data1.cab / Emulation_Include_Files / asstyles.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-05-13  |  9.7 KB  |  269 lines

  1. //--------------------------------------------------------------------------------------------
  2. //
  3. //    Copyright (c) Microsoft Corporation, 1997 All Rights Reserved
  4. //
  5. //    Description:
  6. //        AutoPC Simple Common Controls style definitions
  7. //
  8. //--------------------------------------------------------------------------------------------
  9.  
  10. #ifndef _ASSTYLE_H
  11. #define _ASSTYLE_H
  12. //--------------------------------------------------------------------------------------------
  13. //
  14. // FLAGS
  15. //
  16. //--------------------------------------------------------------------------------------------
  17. //
  18. // Color definition for use in RC file
  19. //
  20. #define     BC_BLACK                0x0000                     
  21. #define     BC_RED                  0x0001                    
  22. #define     BC_GREEN                0x0002                  
  23. #define     BC_BLUE                 0x0003                       
  24. #define     BC_WHITE                0x0004                     
  25. #define     BC_VIOLET                0x0005                  
  26. #define     BC_CYAN                 0x0006                     
  27. #define     BC_YELLOW               0x0007                    
  28.  
  29. #define     FC_BLACK                0x0000                        
  30. #define     FC_RED                    0x0100                     
  31. #define     FC_GREEN                0x0200 
  32. #define     FC_BLUE                    0x0300                      
  33. #define     FC_WHITE                0x0400                    
  34. #define     FC_VIOLET                0x0500                 
  35. #define     FC_CYAN                    0x0600                    
  36. #define     FC_YELLOW                0x0700                        
  37.  
  38. //
  39. // Alignment for Text on Labels, buttons
  40. //
  41. #define ASFC_ALIGN_TOP          DT_TOP          // draw top aligned
  42. #define ASFC_ALIGN_LEFT         DT_LEFT          // draw left aligned
  43. #define ASFC_ALIGN_CENTER       DT_CENTER       // draw centered
  44. #define ASFC_ALIGN_RIGHT        DT_RIGHT        // draw right aligned
  45. #define ASFC_ALIGN_VCENTER      DT_VCENTER      // draw centered vertically
  46. #define ASFC_ALIGN_BOTTOM       DT_BOTTOM       // draw bottom aligned
  47. #define ASFC_ALIGN_WORDBREAK    DT_WORDBREAK    // draw with word break
  48. #define ASFC_ALIGN_SINGLELINE   DT_SINGLELINE   // draw in a single line
  49. #define ASFC_ALIGN_NOCLIP       DT_NOCLIP        // draw the text without clipping
  50.  
  51. //
  52. // Image alignment on buttons and image controls
  53. //
  54. #define ASFC_IMAGE_HCENTER  0x00          // image is horizontally centered
  55. #define ASFC_IMAGE_LEFT     0x01          // image is flush with left boundary of control
  56. #define ASFC_IMAGE_RIGHT    0x02          // image is flush with right boundary of control    
  57.  
  58. #define ASFC_IMAGE_VCENTER  0x00          // image is vertically centered
  59. #define ASFC_IMAGE_TOP      0x01          // image is flush with top boundary of control
  60. #define ASFC_IMAGE_BOTTOM   0x02          // image is flush with bottom boundary of control
  61. //
  62. // Caption alignment on buttons
  63. //
  64. #define ASFC_CAPTION_ALIGNNONE 0x00       // caption extends from top to bottom of the control
  65. #define ASFC_CAPTION_ALIGNTOP 0x01        // caption aligns with the top of the image
  66. #define ASFC_CAPTION_ALIGNBOTTOM 0x02     // caption is aligned with the bottom of the image
  67. //
  68. // Grouping
  69. //
  70. #define ASFC_BTNGROUP_IDNONE   0x0000      // a control marked thus is in no group
  71. #define ASFC_BTNGROUP_IDMIN    0x0001      // groups must have an ID >= ASFC_GROUP_IDMIN/
  72. //
  73. // Button behaviour
  74. //
  75. #define ASFC_BTN_STICKY     0x00           // button sticks when pressed
  76. #define ASFC_BTN_NOTSTICKY  0x01           // button doesn't stick when pressed, and bounces back
  77. #define ASFC_BTN_NOUNPUSH   0x02             // button does't rebound when un-push  
  78.  
  79. // Power List Box Styles
  80. #define PLBS_PRESERVESTATUSCOLUMNS     0x0001     // leave space for status images which are not displayed
  81.  
  82. // Power List Box item types
  83. #define ASFC_PWRLB_TYPE_COMMAND 0x00
  84. #define ASFC_PWRLB_TYPE_EDIT    0x01
  85. #define ASFC_PWRLB_TYPE_STRINGSPINNER 0x02
  86. #define ASFC_PWRLB_TYPE_INTSPINNER 0x03
  87.  
  88. // Power List Box Item Status Flags
  89. #define PLBIS_USERDEFINED      0x0000ffff   // user must use one of these bits
  90. #define PLBIS_ITEMHIDDEN       0x80000000   // not emplemented
  91. #define PLBIS_ITEMBOLD         0x40000000   // not implemented
  92.  
  93. // Power List Box spinner notification
  94. #define PLBN_SPINCHANGE  6
  95. #define PLBN_BEGINEDIT   40
  96. #define PLBN_ENDEDIT     41
  97.  
  98. // Tabber notification
  99. #define TN_VSELCHANGE  0x6        // the tabber selection has change in response to a voice command
  100.  
  101. // Tab Styles - passed to put_Style on the tabber Control
  102. #define ASTS_DISABLED           0x0001
  103.  
  104.  
  105. // 
  106. // CharSpinner Modes
  107. //
  108. #define ASFC_CHARSPIN_SEQUENTIAL 0x1
  109. #define ASFC_CHARSPIN_DIRSHIFTED 0x2
  110.  
  111. // 
  112. // EditBox Notification flags
  113. //
  114. #define ASFC_EDITNOTIFY_CHANGED 0x1
  115. #define ASFC_EDITNOTIFY_COMMITTED 0x2
  116.  
  117.  
  118.  
  119. // Force leading plus on an Int Spinner PowerListBox Item
  120. #define ASFC_PWRLB_FLAGS_DISPLAYSIGN 0x1
  121.  
  122. // TitleUpdate Mode flags - 
  123. // some controls support updating the forms titlebar dynamicly
  124. #define ASTUM_CAPTION       0x0001  // not yet defined
  125. #define ASTUM_STATUS        0x0002  // set the TB status to that of the current item
  126. #define ASTUM_SUBCAPTION    0x0004  // set the TB SubC to the "x of n" string
  127. #define ASTUM_CAPTIONEDIT   0x0008  // set the TB caption to the edititem caption when editing
  128. #define ASTUM_CAPTIONMENU   0x0010  // set the TB caption to the PLB caption on FM->put_Menu
  129. #define ASTUM_EDITHIDENAV   0x0020  // hide the nav arrows when editing
  130.  
  131.  
  132. // Shell Menu
  133. #define ASFC_SHELLMENU_UNDERLINE 0x01
  134.  
  135. // Image Menu
  136. #define ASFC_IMAGEMENU_OVERLAY 0x02
  137.  
  138. // Edit Box
  139. #define ASFC_EDITBOX_CCHMAX 32000
  140.  
  141.  
  142. //
  143. // HTMLControl Style options
  144. //
  145. // at least one of the two following flags MUST be enabled to get TTS output 
  146. #define ASFC_HTML_SPEAK_TITLE    0x01          // title included in the TTS output
  147. #define ASFC_HTML_SPEAK_BODY    0x02          // all body text is included in the TTS output
  148. #define ASFC_HTML_SHOW_HSCROLL    0x04          // display the horizontal scroll arrows when appropriate
  149. #define ASFC_HTML_SHOW_VSCROLL    0x08          // display the verticle scroll arrows when appropriate
  150. #define ASFC_HTML_SHOW_ANCHORS    0x10          // display/identify the anchors
  151.  
  152.  
  153. #define ASFC_SPEAK_CAPTION      0x00
  154. #define ASFC_SPEAK_FOCUSITEM    0x01
  155. #define ASFC_SPEAK_ALLITEMS     0x02
  156. #define ASFC_SPEAK_ASFORMFOCUS  0x03
  157. #define ASFC_SPEAK_ITEMBYID     0x04    // item ID passen in dwReserved
  158. #define ASFC_SPEAK_ITEMATINDEX  0x05    // item index passed in dwReserved
  159.  
  160.  
  161. // Voice Menu id's for controls
  162. #define IDVM_ASEDIT 0x8000
  163.  
  164. // Voice Command Id's for controls
  165. #define VC_ONE        0x8001        
  166. #define VC_TWO         0x8002
  167. #define VC_THREE    0x8003
  168. #define VC_FOUR        0x8004
  169. #define VC_FIVE        0x8005
  170. #define VC_SIX        0x8006
  171. #define VC_SEVEN    0x8007
  172. #define VC_EIGHT    0x8008
  173. #define VC_NINE        0x8009
  174. #define VC_ZERO        0x8010
  175. #define VC_REVIEW    0x8011
  176. #define VC_DELETE    0x8012
  177. #define VC_OK        0x8013
  178. #define VC_CANCEL    0x8014
  179.  
  180. // Voice Menu States
  181. #define VMS_NUMBERS 0x0001
  182. #define VMS_LETTERS 0x0002
  183. #define VMS_CANCEL  0x0004
  184. #define VMS_OK        0x0008
  185. #define VMS_REVIEW  0x0010
  186. #define VMS_DELETE  0x0020
  187.  
  188. // combined states
  189. #define VMS_NORMALEDIT VMS_NUMBERS | VMS_CANCEL | VMS_OK | VMS_REVIEW | VMS_DELETE
  190.  
  191. // constraint based layout
  192. #define FA_NONE -1
  193.  
  194. #define FA_BASE  10000
  195.  
  196. // Align to edges of the form
  197. #define FA_TOP_OF_FORM         (FA_BASE+1) // Top edge of control to top edge of form
  198. #define FA_BOTTOM_OF_FORM      (FA_BASE+2) // Bottom edge of control to bottom edge of form
  199. #define FA_LEFT_OF_FORM        (FA_BASE+3) // Left edge of control to left edge of form
  200. #define FA_RIGHT_OF_FORM       (FA_BASE+4) // Right edge of control to right edge of form
  201.  
  202. // Center control within form
  203. #define FA_HORIZONTAL_CENTER   (FA_BASE+5)
  204. #define FA_VERTICAL_CENTER     (FA_BASE+6)
  205.  
  206. // Align to an edge of another control
  207. #define FA_TOP_CONTROL         (FA_BASE+7)
  208. #define FA_LEFT_CONTROL        (FA_BASE+8)
  209. #define FA_BOTTOM_CONTROL      (FA_BASE+9)
  210. #define FA_RIGHT_CONTROL       (FA_BASE+10)
  211.  
  212. // Align edge to opposite edge of control
  213. #define FA_TOP_TO_BOTTOM_OF_CONTROL (FA_BASE+11)
  214. #define FA_LEFT_TO_RIGHT_OF_CONTROL (FA_BASE+12)
  215. #define FA_BOTTOM_TO_TOP_OF_CONTROL (FA_BASE+13)
  216. #define FA_RIGHT_TO_LEFT_OF_CONTROL (FA_BASE+14)
  217.  
  218. // Fraction specification on parent form (percentage of width or height follows -- e.g. 25 for 25%)
  219. #define FA_TOP_FRACTION             (FA_BASE+15)
  220. #define FA_LEFT_FRACTION            (FA_BASE+16)
  221. #define FA_BOTTOM_FRACTION          (FA_BASE+17)
  222. #define FA_RIGHT_FRACTION           (FA_BASE+18)
  223.  
  224.  
  225. // Offset ("fudge factors") in pixels
  226. #define FA_TOP_OFFSET               (FA_BASE+19)
  227. #define FA_LEFT_OFFSET              (FA_BASE+20)
  228. #define FA_BOTTOM_OFFSET            (FA_BASE+21)
  229. #define FA_RIGHT_OFFSET             (FA_BASE+22)
  230.  
  231. // Specify exact location in form
  232. #define FA_HORIZONTAL_CENTER_OF_CONTROL       (FA_BASE+23)
  233. #define FA_VERTICAL_CENTER_OF_CONTROL         (FA_BASE+24)
  234. //#define FA_BOTTOM    (FA_BASE+25)
  235. //#define FA_RIGHT     (FA_BASE+26)
  236.  
  237.  
  238. // Fraction specification with respect to another control
  239. #define FA_TOP_CONTROL_FRACTION             (FA_BASE+27)
  240. #define FA_LEFT_CONTROL_FRACTION            (FA_BASE+28)
  241. #define FA_BOTTOM_CONTROL_FRACTION          (FA_BASE+29)
  242. #define FA_RIGHT_CONTROL_FRACTION           (FA_BASE+30)
  243.  
  244.  
  245. // Make the width the same as the width of a control
  246. #define FA_WIDTH_OF_CONTROL (FA_BASE+31)
  247.  
  248. // Make the height the same as the height of a control
  249. #define FA_HEIGHT_OF_CONTROL (FA_BASE+32)
  250.  
  251. // Specify top of title bat
  252. #define FA_TOP_OF_CAPTION (FA_BASE+33)
  253.  
  254. // Horizontal and vertical offsets
  255. #define FA_HORIZONTAL_OFFSET (FA_BASE+34)
  256. #define FA_VERTICAL_OFFSET   (FA_BASE+35)
  257.  
  258.  
  259.  
  260. #define NO_NATURAL_SIZE  (-1)
  261.  
  262. // Manditory application resource IDs
  263.  
  264. #define STR_APP_SHELL_NAME    1
  265. #define ICON_APP_SHELL        1
  266.  
  267. #endif
  268.  
  269.