home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 1995 January / pcw-0195.iso / lowlevel / saver.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1994-12-31  |  9.4 KB  |  237 lines

  1. Form1
  2. Form1
  3. Form15
  4. Timer1
  5. timer1_timer
  6. form1
  7.     Form_Load
  8. timer1v
  9. Interval
  10. Caption
  11. ControlBoxU
  12.     MaxButtonp
  13.     MinButtonF
  14. Form_MouseDown
  15. ButtonL
  16. Shiftc
  17. Form_MouseMove
  18. NCallsj
  19. NumCalls|
  20. Form_MouseUp
  21. PrevInstance
  22. Width
  23. Height
  24. windowstaet
  25. WindowState
  26. Form_KeyDownJ
  27. KeyCode
  28. Form_KeyPress
  29. KeyAscii3
  30. Form_KeyUp:
  31. SetWindowPos
  32. SWP_NOMOVE<
  33. SWP_NO_SIZE
  34. FLAGS
  35. SWP_NOSIZEZ
  36. HWND_TOPMOST
  37. HWND_NOTOPMOST6
  38. form_resize
  39. MB_OK
  40. MAX_NUM_CALLSV
  41. randomLine
  42. BorderStyle
  43.     BackColorK
  44. colour
  45. MousePointer]
  46. GetModuleHandle=
  47. lpModuleName
  48. GetClassWord
  49. nIndex
  50. ExtractIconv
  51. hInste
  52. lpszExeNameo
  53. hIconH
  54. DrawIcon
  55. GWW_HINSTANCE
  56. GCW_HMODULE
  57. Command1_Click
  58. picture1
  59. Picture$
  60. progName
  61. picture2
  62. AutoRedrawv
  63. KeyStops
  64. KeyHitStops
  65. MouseMoveStopsr
  66. Enabled(
  67. Command2_Click
  68. ATTR_DIRECTORY
  69. Form_Click
  70. ListSubDirsU
  71. Count-
  72. dirName
  73. List1
  74.     SaverType
  75. SAVER_ICONS
  76.     EndSelectB
  77. SubDirs"
  78. SAVER_LINES
  79. SaverInited
  80. randomIconb
  81. Picture1_Click1
  82. direcw
  83.     NumDirecs
  84. Command3_Click
  85. GetPrivateProfileStringj
  86. lpApplicationName
  87.     lpKeyNamef
  88.     lpDefault
  89. lpReturnedString6
  90. nSize
  91. lpFileName
  92. WritePrivateProfileString
  93. lpString
  94. lplFileName&
  95. INIGetk
  96. vsINISection
  97. vsINIVar
  98.     vsDefaultV
  99. sINIFileA
  100. sRetStr
  101. EXEName
  102. INIPut
  103. vsValue
  104. sINIPathName
  105. numIconsu
  106.     ICON_SIZE
  107. SCALE_PIXEL
  108. GetPrivateProfileIntO
  109.     lpAppName
  110. nDefault
  111. IconsAllGet
  112. IconsInPathGet
  113. hCurIcon
  114. IconsLineDraw
  115. template
  116. dNumV
  117. form2
  118. ScaleWidth3
  119. ScaleHeight
  120.     ScaleMode
  121. Hscroll1
  122. Value
  123. GetINI
  124. timer
  125. Form_LinkError
  126. LinkErr
  127. Sequence
  128.     SetCursor
  129. hCursor
  130. Form_Unload
  131. Cancel
  132. Form_Paint:
  133. API declarations
  134. API function used to get form on top
  135. API functions used to get hold of program icons
  136. Kernel
  137. Field offsets for the above...
  138. Shell
  139. Miscellaneous Constants
  140. Used with VB's MsgBoxM
  141. Used with VB's Dir
  142. contains directories on current drive*
  143. gets redimd
  144. size of it
  145. hIcon() handle on icons in EXEs on drive
  146. pixels
  147. API functions used to get hold of program icons
  148. Kernel
  149. Shell
  150. Kernel
  151. Kernel
  152. Kernel
  153. Form_Load
  154. First port of call for the application. Checks it is not running
  155. already and sets up basic form characteristics, etcs
  156. Stop a second copy of this program from being run concurrently...)
  157. Check if we are doing a setup..
  158. Get Profile Info...#
  159. Initialisation
  160. Speed
  161. Set up basic form properties....
  162. form1.BorderStyle = 0
  163.  ..theses
  164. form1.ControlBox = False   are set
  165. form1.MaxButton = False
  166.  at designe
  167. form1.MinButton = False
  168.  time..
  169. maximised
  170. black 
  171. Form_MouseDown
  172. FORM_MOUSEDOWN: As for Form_MouseUp - 
  173. we don't 'End' until this is called twice.
  174. Form_MouseMove
  175. FORM_MOUSEMOVE: As for Form_MouseUp --
  176. we don't 'End' until this is called twice.
  177. Form_MouseUp
  178. FORM_MOUSEUP: First couple of mouse events are a result of loading
  179. the app - so we don't 'End' until this is called twice. 
  180. Form_Paint
  181. Get rid of mouse pointer
  182. form_resize
  183. FORM_RESIZE Gets called after form load or as result ofi
  184. minimize/maximize - makes sure that our form is on top and
  185. clears screen tooo
  186. Should never happen...
  187. 'TopMost' API call failed
  188. Form_Unload
  189. Restore old cursor
  190. IconsAllGet
  191. Get all subdirectories in the Windows directory on the current drive
  192. Could do whole current drive instead, but the scan is slow for big drives
  193. windows\
  194. windows\
  195. Probably "C:\windows\"
  196. Get hInst from current form's hWmd..
  197. Now load all icons from EXEs in these directoriesa
  198. IconsInPathGet
  199. ICONS IN PATH GET: Gets all icons embedded in EXEs in path f
  200. Current program name
  201. handle to program's icon (if any)c
  202. Iterate through all EXEs in the path..
  203. *.exe
  204. Resize the array.h
  205. Increment NumIcons
  206.  Get another program name.
  207. IconsLineDraw
  208. SubDirs
  209. SUBDIRS - loads all sub-directories of path into direc() and calls
  210. itself recursively to load those sub-dirs in too..
  211. lo..hi are index into Direc().. 
  212. ..defining window of directories dixcovered here
  213. current (possible) directory
  214. Get first possible directory name...
  215. Iterate through entries in path, saving all subdirectories in Direc()..
  216.  Resize the array.
  217.  Increment NumDirecs.a
  218. Get another directory name
  219. Recursively iterate through each of 'our' subdirectories.s
  220. timer1_timer
  221. TIMER1_TIMER - called every so often - simply does the bit of the drawing*
  222. Does initialisation first if SaverInited is falses
  223. hInst of this programe
  224. handle for retrieved icont
  225. Do initialisation if necessary...e
  226. pixels
  227. Now do the screen ...t
  228.  make sure our window is on top
  229. get rid of mouse pointer
  230. Get my hInst from form1's hWmd..
  231. select an icon at random
  232. select a display method and do it)
  233. Icons drawn in rows..
  234. Drawn in cols..
  235. Drawn in chequered rows..
  236. Drawn in chequered cols..
  237.