home *** CD-ROM | disk | FTP | other *** search
/ Planet Source Code Jumbo …e CD Visual Basic 1 to 7 / 1_2002.ISO / Data / Zips / CODE_UPLOAD14522242001.psc / codemax.bas < prev    next >
Encoding:
BASIC Source File  |  2000-12-23  |  24.2 KB  |  359 lines

  1. '///////////////////////////////////////////////////////////////////////////////
  2. '//
  3. '//  CodeMax Code Editor Control
  4. '//
  5. '//  Copyright ⌐ 2000  WinMain Software
  6. '//
  7. '//  This header file declares common values used in various CodeMax object 
  8. '//  methods and properties.  For a complete description of all declarations 
  9. '//  below, please refer to the CodeMax documentation.
  10. '//
  11. '///////////////////////////////////////////////////////////////////////////////
  12.  
  13. '///////////////////////////////////////////////////////////
  14. '//
  15. '// General Limitations
  16. '//
  17. '//
  18. Const cmMaxFindreplText As Integer = 100         ' maximum size (TCHARs) of text to find or replace
  19. Const cmFindReplaceMRUMax As Integer = 10        ' maximum MRU size in find and find/replace dialogs
  20. Const cmFindReplaceMRUBuffSize As Integer = 1010 ' required buffer size for pszMRUList argument CMSetFindReplaceMRUList() and CMGetFindReplaceMRUList() 
  21. Const cmMaxMacros As Integer = 10                ' maximum number of keystroke macros supported by CodeMax
  22. Const cmMaxCmdString As Integer = 50             ' maximum size of command string returned in pszBuff param of CMGetCommandString() if bDescription is FALSE
  23. Const cmMaxCmdDescription As Integer = 100       ' maximum size of command string returned in pszBuff param of CMGetCommandString() if bDescription is TRUE
  24. Const cmMaxLanguageName As Integer = 30          ' maximum size of a language name set with CMRegisterLanguage
  25. Const cmMaxTabsize As Integer = 100              ' maximum tab size (characters)
  26. Const cmMinTabsize As Integer = 2                ' minimum tab size (characters)
  27. Const cmLeftMarginWidth As Integer = 24          ' left margin width (pixels)
  28.  
  29. '/////////////////////////////////////////////////////////////
  30. '//
  31. '// hotkey modifier values used by CodeMax.HotKey.  These
  32. '// values can be OR'd together to form keystroke combinations
  33. '//
  34. '//
  35. Const HOTKEYF_SHIFT As Integer = 1
  36. Const HOTKEYF_CONTROL As Integer = 2
  37. Const HOTKEYF_ALT As Integer = 4
  38. Const HOTKEYF_EXT As Integer = 8
  39.  
  40. '/////////////////////////////////////////////////////////////
  41. '//
  42. '// Edit commands passed to:
  43. '// 
  44. '// CodeMax.Globals.GetHotKeysForCmd()
  45. '// CodeMax.Globals.RegisterHotKey()
  46. '// CodeMax.Globals.UnregisterHotKey()
  47. '// 
  48.  
  49. Const cmCmdFirst As Integer = 100                    ' The first command id (not an actual command)
  50. Const cmCmdWordUpperCase As Integer = 100            ' Makes the current word uppercase
  51. Const cmCmdWordTranspose As Integer = 101            ' Swaps the current and previous words
  52. Const cmCmdWordRightExtend As Integer = 102          ' Extends the selection forward to the start of the next word
  53. Const cmCmdWordRight As Integer = 103                ' Moves forward to the start of the next word
  54. Const cmCmdWordEndRight As Integer = 104             ' Moves forward to the end of the next word
  55. Const cmCmdWordEndRightExtend As Integer = 105       ' Extends the selection forward to the start of the next word
  56. Const cmCmdWordLowerCase As Integer = 106            ' Makes the current word lowercase
  57. Const cmCmdWordLeftExtend As Integer = 107           ' Extends the selection backward to the start of the previous word
  58. Const cmCmdWordLeft As Integer = 108                 ' Moves backward to the start of the previous word
  59. Const cmCmdWordEndLeft As Integer = 109              ' Moves backward to the end of the previous word
  60. Const cmCmdWordEndLeftExtend As Integer = 110        ' Extends the selection backward to the end of the previous word
  61. Const cmCmdWordDeleteToStart As Integer = 111        ' Deletes a word to the left
  62. Const cmCmdWordDeleteToEnd As Integer = 112          ' Deletes a word to the right
  63. Const cmCmdWordCapitalize As Integer = 113           ' Makes the first character uppercase
  64. Const cmCmdWindowStart As Integer = 114              ' Moves to the top of the text window
  65. Const cmCmdWindowScrollUp As Integer = 115           ' Scrolls the file contents up one line
  66. Const cmCmdWindowScrollToTop As Integer = 116        ' Scrolls the line to the top of the window
  67. Const cmCmdWindowScrollToCenter As Integer = 117     ' Scrolls the line to the center of the window
  68. Const cmCmdWindowScrollToBottom As Integer = 118     ' Scrolls the line to the bottom of the window
  69. Const cmCmdWindowScrollRight As Integer = 119        ' Scrolls the window to the right
  70. Const cmCmdWindowScrollLeft As Integer = 120         ' Scrolls the window to the left
  71. Const cmCmdWindowScrollDown As Integer = 121         ' Scrolls the file contents down one line
  72. Const cmCmdWindowRightEdge As Integer = 122          ' Moves to the right edge of the text window
  73. Const cmCmdWindowLeftEdge As Integer = 123           ' Moves to the left edge of the text window
  74. Const cmCmdWindowEnd As Integer = 124                ' Moves to the bottom of the text window
  75. Const cmCmdUpperCaseSelection As Integer = 125       ' Makes the selection all uppercase
  76. Const cmCmdUntabifySelection As Integer = 126        ' Replaces tabs with spaces in the selection
  77. Const cmCmdUnindentSelection As Integer = 127        ' Indents the selected text left one tab stop
  78. Const cmCmdUndoChanges As Integer = 128              ' Undoes the last action, ignoring movement commands
  79. Const cmCmdUndo As Integer = 129                     ' Undoes the last action
  80. Const cmCmdTabifySelection As Integer = 130          ' Replaces spaces with tabs in the selection
  81. Const cmCmdSentenceRight As Integer = 131            ' Moves to the beginning of the next sentence
  82. Const cmCmdSentenceLeft As Integer = 132             ' Moves to the beginning of the previous sentence
  83. Const cmCmdSentenceCut As Integer = 133              ' Deletes the remainder of the sentence
  84. Const cmCmdSelectSwapAnchor As Integer = 134         ' Swaps the anchor and the cursor in a selection
  85. Const cmCmdSelectPara As Integer = 135               ' Selects the current paragraph
  86. Const cmCmdSelectLine As Integer = 136               ' Selects lines of text
  87. Const cmCmdSelectAll As Integer = 137                ' Selects the entire document
  88. Const cmCmdRedoChanges As Integer = 138              ' Redoes the last action, ignoring movement commands
  89. Const cmCmdRedo As Integer = 139                     ' Redoes the previously undone action
  90. Const cmCmdPaste As Integer = 140                    ' Inserts the Clipboard contents at the insertion point
  91. Const cmCmdParaUp As Integer = 141                   ' Moves to the beginning of the previous paragraph
  92. Const cmCmdParaDown As Integer = 142                 ' Moves to the beginning of the next paragraph
  93. Const cmCmdPageUpExtend As Integer = 143             ' Extends the selection up one page
  94. Const cmCmdPageUp As Integer = 144                   ' Moves the cursor up one page
  95. Const cmCmdPageDownExtend As Integer = 145           ' Extends the selection down one page
  96. Const cmCmdPageDown As Integer = 146                 ' Moves the cursor down one page
  97. Const cmCmdLowerCaseSelection As Integer = 147       ' Makes the selection all lowercase
  98. Const cmCmdLineUpExtend As Integer = 148             ' Extends the selection up one line
  99. Const cmCmdLineUp As Integer = 149                   ' Moves the cursor up one line
  100. Const cmCmdLineTranspose As Integer = 150            ' Swaps current and previous lines
  101. Const cmCmdLineStart As Integer = 151                ' Moves to the start of the current line
  102. Const cmCmdLineOpenBelow As Integer = 152            ' Opens a new line below the cursor
  103. Const cmCmdLineOpenAbove As Integer = 153            ' Opens a new line above the cursor
  104. Const cmCmdLineEndExtend As Integer = 154            ' Extends the selection to the end of the current line
  105. Const cmCmdLineEnd As Integer = 155                  ' Moves the cursor to the end of the current line
  106. Const cmCmdLineDownExtend As Integer = 156           ' Extends the selection down one line
  107. Const cmCmdLineDown As Integer = 157                 ' Moves the cursor down one line
  108. Const cmCmdLineDeleteToStart As Integer = 158        ' Deletes to the beginning of the current line
  109. Const cmCmdLineDeleteToEnd As Integer = 159          ' Deletes to the end of the current line
  110. Const cmCmdLineDelete As Integer = 160               ' Deletes the selected line
  111. Const cmCmdLineCut As Integer = 161                  ' Deletes the selected lines and places the text on the clipboard
  112. Const cmCmdIndentToPrev As Integer = 162             ' Indents to the position of the next text on the previous line
  113. Const cmCmdIndentSelection As Integer = 163          ' Indents the selected text right one tab stop
  114. Const cmCmdHomeExtend As Integer = 164               ' Extends the selection to either the start of the current line or the start of the text on that line
  115. Const cmCmdHome As Integer = 165                     ' Moves to either the start of the current line or the start of the text on that line
  116. Const cmCmdGoToMatchBrace As Integer = 166           ' Finds the matching brace
  117. Const cmCmdGoToIndentation As Integer = 167          ' Moves to the end of the indentation
  118. Const cmCmdGoToLine As Integer = 168                 ' Moves to a user-specified line
  119. Const cmCmdFindReplace As Integer = 169              ' Displays the find & replace dialog box
  120. Const cmCmdReplace As Integer = 170                  ' Replaces the first occurrence of the find text after the current position with the replace text and finds the next occurrence of the find text
  121. Const cmCmdReplaceAllInBuffer As Integer = 171       ' Replaces the find text with the replace text in the entire buffer
  122. Const cmCmdReplaceAllInSelection As Integer = 172    ' Replaces the find text with the replace text in the selection
  123. Const cmCmdFindPrevWord As Integer = 173             ' Finds the previous occurrence of the selected text
  124. Const cmCmdFindPrev As Integer = 174                 ' Finds the previous occurrence of the specified text
  125. Const cmCmdFindNextWord As Integer = 175             ' Finds the next occurrence of the selected text
  126. Const cmCmdFindNext As Integer = 176                 ' Finds the next occurrence of the specified text
  127. Const cmCmdFindMarkAll As Integer = 177              ' Finds the specified text and sets a bookmark at the found locations
  128. Const cmCmdFind As Integer = 178                     ' Finds the specified text
  129. Const cmCmdSetFindKeyWord As Integer = 179           ' Sets the text to search for in subsequent find commands
  130. Const cmCmdSetReplaceKeyWord As Integer = 180        ' Sets the text to substitute for the find text in subsequent find & replace commands
  131. Const cmCmdToggleWholeWord As Integer = 181          ' Toggles intelligent case preservation when replacing text
  132. Const cmCmdTogglePreserveCase As Integer = 182       ' Toggles whole word searching on and off
  133. Const cmCmdToggleCaseSensitive As Integer = 183      ' Toggles case sensitive searching on and off
  134. Const cmCmdEnd As Integer = 184                      ' Moves to the end of the current line, bottom of the text window, or end of the file
  135. Const cmCmdToggleWhitespaceDisplay As Integer = 185  ' Shows or hides whitespace indicators
  136. Const cmCmdToggleOvertype As Integer = 186           ' Toggles between inserting and replacing text
  137. Const cmCmdSetRepeatCount As Integer = 187           ' Sets the repeat count for the next command
  138. Const cmCmdDocumentStartExtend As Integer = 188      ' Extends the selection to the beginning of the file
  139. Const cmCmdDocumentStart As Integer = 189            ' Moves to the beginning of the file
  140. Const cmCmdDocumentEndExtend As Integer = 190        ' Extends the selection to the end of the file
  141. Const cmCmdDocumentEnd As Integer = 191              ' Moves to the end of the file
  142. Const cmCmdDeleteHorizontalSpace As Integer = 192    ' Deletes the spaces and tabs around the cursor
  143. Const cmCmdDeleteBlankLines As Integer = 193         ' Deletes the blank lines adjacent to the cursor
  144. Const cmCmdDeleteBack As Integer = 194               ' Deletes the selection or, if there is no selection, the character to the left of the cursor
  145. Const cmCmdDelete As Integer = 195                   ' Deletes the selection
  146. Const cmCmdCutSelection As Integer = 196             ' Cuts the selection and puts it on the Clipboard
  147. Const cmCmdCut As Integer = 197                      ' Cuts the selection and puts it on the Clipboard
  148. Const cmCmdCopy As Integer = 198                     ' Copies the selection to the Clipboard
  149. Const cmCmdCharTranspose As Integer = 199            ' Swap characters around the insertion point
  150. Const cmCmdCharRightExtend As Integer = 200          ' Extends the selection one character to the right
  151. Const cmCmdCharRight As Integer = 201                ' Moves the cursor one character to the right
  152. Const cmCmdCharLeftExtend As Integer = 202           ' Extends the selection one character to the left
  153. Const cmCmdCharLeft As Integer = 203                 ' Moves the cursor one character to the left
  154. Const cmCmdBookmarkToggle As Integer = 204           ' Toggles a bookmark for the current line on and off
  155. Const cmCmdBookmarkPrev As Integer = 205             ' Moves to the line containing the previous bookmark
  156. Const cmCmdBookmarkNext As Integer = 206             ' Moves to the line containing the next bookmark
  157. Const cmCmdBookmarkClearAll As Integer = 207         ' Clears all bookmarks in the window
  158. Const cmCmdBookmarkJumpToFirst As Integer = 208      ' Moves to the first line containing a bookmark
  159. Const cmCmdBookmarkJumpToLast As Integer = 209       ' Moves to the last line containing a bookmark
  160. Const cmCmdAppendNextCut As Integer = 210            ' Adds the next cut text to end of the Clipboard
  161. Const cmCmdInsertChar As Integer = 211               ' Inserts a character at the current location
  162. Const cmCmdNewLine As Integer = 212                  ' Inserts a new-line character at the current location
  163. Const cmCmdRecordMacro As Integer = 213              ' Begins/ends keystroke macro-recording
  164. Const cmCmdPlayMacro1 As Integer = 214               ' Plays keystroke macro 1
  165. Const cmCmdPlayMacro2 As Integer = 215               ' Plays keystroke macro 2
  166. Const cmCmdPlayMacro3 As Integer = 216               ' Plays keystroke macro 3
  167. Const cmCmdPlayMacro4 As Integer = 217               ' Plays keystroke macro 4
  168. Const cmCmdPlayMacro5 As Integer = 218               ' Plays keystroke macro 5
  169. Const cmCmdPlayMacro6 As Integer = 219               ' Plays keystroke macro 6
  170. Const cmCmdPlayMacro7 As Integer = 220               ' Plays keystroke macro 7
  171. Const cmCmdPlayMacro8 As Integer = 221               ' Plays keystroke macro 8
  172. Const cmCmdPlayMacro9 As Integer = 222               ' Plays keystroke macro 9
  173. Const cmCmdPlayMacro10 As Integer = 223              ' Plays keystroke macro 10
  174. Const cmCmdProperties As Integer = 224               ' Displays the properties dialog
  175. Const cmCmdToggleRegExp As Integer = 228             ' Toggles regular expression searching on and off
  176. Const cmCmdClearSelection As Integer = 229           ' Empties the selection
  177. Const cmCmdRegExpOn As Integer = 230                 ' Turns on regular expression searching
  178. Const cmCmdRegExpOff As Integer = 231                ' Turns off regular expression searching
  179. Const cmCmdWholeWordOn As Integer = 232              ' Turns on whole word searching
  180. Const cmCmdWholeWordOff As Integer = 233             ' Turns off whole word searching
  181. Const cmCmdPreserveCaseOn As Integer = 234           ' Turns on case preservation when replacing text
  182. Const cmCmdPreserveCaseOff As Integer = 235          ' Turns off case preservation when replacing text
  183. Const cmCmdCaseSensitiveOn As Integer = 236          ' Turns on case sensitive searching
  184. Const cmCmdCaseSensitiveOff As Integer = 237         ' Turns off case sensitive searching
  185. Const cmCmdWhitespaceDisplayOn As Integer = 238      ' Turns on whitespace display
  186. Const cmCmdWhitespaceDisplayOff As Integer = 239     ' Turns off whitespace display
  187. Const cmCmdOvertypeOn As Integer = 240               ' Turns on overtype mode
  188. Const cmCmdOvertypeOff As Integer = 241              ' Turns off overtype mode
  189. Const cmCmdLast As Integer = 241                     ' The last command id (not an actual command)
  190.  
  191. '////////////////////////////////////////////////////////////////////////////////////////
  192. '//
  193. '// command failure codes returned via CmdFailure notification:
  194. '//
  195.  
  196. Const cmErrFailure As Integer = 1                     ' general failure
  197. Const cmErrInput As Integer = 2                         ' bad input
  198. Const cmErrSelection As Integer = 3                     ' bad selection
  199. Const cmErrNotFound As Integer = 4                     ' data not found
  200. Const cmErrEmptyBuf As Integer = 5                     ' buffer is empty
  201. Const cmErrReadOnly As Integer = 6                     ' buffer is read-only
  202.  
  203. '////////////////////////////////////////////////////////////////////////////////////////
  204. '//
  205. '// Stock languages that can be passed to:
  206. '//
  207. '// CodeMax.Control.SetLanguage(), 
  208. '// CodeMax.Globals.RegisterLanguage()
  209. '// CodeMax.Globals.UnregisterLanguage()
  210. '//
  211. Const cmLangCPP    As String = "C/C++"
  212. Const cmLangPascal As String = "Pascal"
  213. Const cmLangBasic  As String = "Basic"
  214. Const cmLangSQL    As String = "SQL"
  215. Const cmLangJava   As String = "Java"
  216. Const cmLangHTM    As String = "HTML"
  217. Const cmLangXML    As String = "XML"
  218.  
  219. '/////////////////////////////////////////////////////////////
  220. '//
  221. '// Color settings for:
  222. '//
  223. '// CodeMax.Control.GetColors()
  224. '// CodeMax.Control.SetColors()
  225. '//
  226. Const cmClrWindow As Integer = 0             ' window background color          
  227. Const cmClrLeftMargin As Integer = 1         ' left margin background color     
  228. Const cmClrBookmark As Integer = 2             ' bookmark foreground color        
  229. Const cmClrBookmarkBk As Integer = 3         ' bookmark background color        
  230. Const cmClrText As Integer = 4                 ' plain text foreground color      
  231. Const cmClrTextBk As Integer = 5             ' plain text background color      
  232. Const cmClrNumber As Integer = 6             ' numeric literal foreground color 
  233. Const cmClrNumberBk As Integer = 7             ' numeric literal background color 
  234. Const cmClrKeyword As Integer = 8             ' keyword foreground color         
  235. Const cmClrKeywordBk As Integer = 9             ' keyword background color         
  236. Const cmClrOperator As Integer = 10             ' operator foreground color        
  237. Const cmClrOperatorBk As Integer = 11         ' operator background color        
  238. Const cmClrScopeKeyword As Integer = 12         ' scope keyword foreground color   
  239. Const cmClrScopeKeywordBk As Integer = 13     ' scope keyword background color   
  240. Const cmClrComment As Integer = 14             ' comment foreground color         
  241. Const cmClrCommentBk As Integer = 15         ' comment background color         
  242. Const cmClrString As Integer = 16             ' string foreground color          
  243. Const cmClrStringBk As Integer = 17             ' string background color          
  244. Const cmClrTagText As Integer = 18             ' plain tag text foreground color      
  245. Const cmClrTagTextBk As Integer = 19         ' plain tag text background color      
  246. Const cmClrTagEntity As Integer = 20         ' tag entity foreground color
  247. Const cmClrTagEntityBk As Integer = 21         ' tag entity background color
  248. Const cmClrTagElementName As Integer = 22     ' tag element name foreground color
  249. Const cmClrTagElementNameBk As Integer = 23     ' tag element name background color
  250. Const cmClrTagAttributeName As Integer = 24     ' tag attribute name foreground color
  251. Const cmClrTagAttributeNameBk As Integer = 25 ' tag attribute name background color
  252. Const cmClrLineNumber As Integer = 26         ' line number foreground color
  253. Const cmClrLineNumberBk As Integer = 27         ' line number background color
  254. Const cmClrHDividerLines As Integer = 28     ' line number separate line color
  255. Const cmClrVDividerLines As Integer = 29     ' left margin separate line color
  256. Const cmClrHighlightedLine As Integer = 30     ' highlighted line color
  257.  
  258. '/////////////////////////////////////////////////////////////
  259. '//
  260. '// language properties supporting font styles.  Used in:
  261. '//
  262. '// CodeMax.Control.GetFontStyle()
  263. '// CodeMax.Control.SetFontStyle()
  264. '//
  265. Const cmStyText As Integer = 0                 ' plain text font style
  266. Const cmStyNumber As Integer = 1             ' numeric literal font style
  267. Const cmStyKeyword As Integer = 2             ' keyword font style
  268. Const cmStyOperator As Integer = 3             ' operator font style
  269. Const cmStyScopeKeyword As Integer = 4         ' scope keyword font style
  270. Const cmStyComment As Integer = 5             ' comment font style
  271. Const cmStyString As Integer = 6             ' string font style
  272. Const cmStyTagText As Integer = 7             ' plain tag text font style
  273. Const cmStyTagEntity As Integer = 8             ' tag entity font style
  274. Const cmStyTagElementName As Integer = 9     ' tag element name font style
  275. Const cmStyTagAttributeName As Integer = 10     ' attribute name font style
  276. Const cmStyLineNumber As Integer = 11         ' line number font style
  277.  
  278. '/////////////////////////////////////////////////////////////
  279. '//
  280. '// font style settings ffor:
  281. '//
  282. '// CodeMax.Control.GetFontStyle()
  283. '// CodeMax.Control.SetFontStyle()
  284. '//
  285. Const cmFontNormal As Integer = 0             ' normal font
  286. Const cmFontBold As Integer = 1                 ' bold font
  287. Const cmFontItalic As Integer = 2             ' italic font
  288. Const cmFontBoldItalic As Integer = 3         ' bold + italic font
  289. Const cmFontUnderline As Integer = 4         ' normal weight, underline
  290.  
  291. '/////////////////////////////////////////////////////////////
  292. '//
  293. '// AutoIndent options in CodeMax.Control.AutoIndentMode
  294. '//
  295. '//
  296. Const cmIndentOff As Integer = 0         ' auto-indent off -- new line begins at column 0                 
  297. Const cmIndentScope As Integer = 1       ' new line begins at correct language scope indentation level    
  298. Const cmIndentPrevLine As Integer = 2    ' new line has identical indentation of previous line            
  299.  
  300. '/////////////////////////////////////////////////////////////
  301. '//
  302. '// CodeMax.Control.HitTest() return codes
  303. '//
  304. '//
  305.  
  306. Const cmNowhere As Integer = 0       ' Not over the CodeMax control                                     
  307. Const cmHSplitter As Integer = 1     ' Over the horizontal splitter bar                                 
  308. Const cmVSplitter As Integer = 2     ' Over the vertical splitter bar                                   
  309. Const cmHVSplitter As Integer = 3    ' Over the intersection of the horizontal and vertical splitter bar
  310. Const cmEditSpace As Integer = 4     ' Over the buffer contents (code)                                  
  311. Const cmHScrollBar As Integer = 5    ' Over the horizontal scrollbar                                    
  312. Const cmVScrollBar As Integer = 6    ' Over the vertical scrollbar                                      
  313. Const cmSizeBox As Integer = 7       ' Over the sizebox visible when both scrollbars are visible        
  314. Const cmLeftMargin As Integer = 8    ' Over the left margin area                                        
  315.  
  316. '/////////////////////////////////////////////////////////////
  317. '//
  318. '// line numbering style values for LineNumberStyle property
  319. '//
  320. '//
  321. Const cmDecimal As Integer = 10         ' base 10 numbering
  322. Const cmHexadecimal As Integer = 16     ' base 16 numbering
  323. Const cmBinary As Integer = 2         ' base 2 numbering
  324. Const cmOctal As Integer = 8         ' base 8 numbering
  325.  
  326. '/////////////////////////////////////////////////////////////
  327. '//
  328. '// print flags used with Print()  Can be Or'd together
  329. '//
  330. '//
  331. Const cmPrnPromptDlg As Integer = &H0         ' display the print common dialog
  332. Const cmPrnDefaultPrn As Integer = &H1         ' use default printer (no print dialog displayed)
  333. Const cmPrnHDC As Integer = &H2                 ' use HDC provided
  334. Const cmPrnRichFonts As Integer = &H4         ' use bold, italics, underline, etc. when appropriate
  335. Const cmPrnColor As Integer = &H8             ' print in color
  336. Const cmPrnPageNums As Integer = &H10         ' print 'page # of #' at the bottom of the page
  337. Const cmPrnDateTime As Integer = &H20         ' print date and time at top of the page
  338. Const cmPrnBorderThin As Integer = &H40         ' surround text with a thin border
  339. Const cmPrnBorderThick As Integer = &H80     ' surround text with a thick border
  340. Const cmPrnBorderDouble As Integer = &H100     ' surround text with two thin borders
  341. Const cmPrnBorderDouble As Integer = &H100     ' surround text with two thin borders
  342. Const cmPrnSelection = &H200                 ' print the selection rather than entire edit contents
  343.  
  344. '/////////////////////////////////////////////////////////////
  345. '//
  346. '// style flags used with SetLineStyle()  Can be Or'd together
  347. '//
  348. '//
  349. Const cmNotifyDel As Integer = &H2         ' parent window should receive LineDeleted notification
  350.  
  351. '/////////////////////////////////////////////////////////////
  352. '//
  353. '// Button flags used with mouse notifications.
  354. '//
  355. '//
  356. Const cmBtnLeft As Integer = &H1         ' left mouse button
  357. Const cmBtnRight As Integer = &H2         ' right mouse button
  358. Const cmBtnMiddle As Integer = &H4         ' middle mouse button
  359.