home *** CD-ROM | disk | FTP | other *** search
/ Programming Tool Box / SIMS_2.iso / vb_code2 / printset / prsetup.frm (.txt) < prev    next >
Visual Basic Form  |  1991-07-27  |  6KB  |  150 lines

  1. PrintSetup
  2. Printer Setup
  3. Form1
  4. Label1
  5. &Printer
  6. List1
  7. Command1
  8. Command2
  9. Cancel
  10. Command3
  11.     Setup ...
  12. Label2
  13. fCopyright (c) 1991 Corey Schwartz, Programmer's Warehouse 602-443-0580, 73240,2734 All Rights Reserved
  14. Form_Click
  15. lbLoad
  16. lbGetPrt
  17. cBuff1
  18. SIZETEMPBUFF=
  19. cBuff2
  20. hMem2
  21. hWndList
  22. cchNext
  23.     ichSearcht
  24. lpKey
  25. Index
  26. wIndex
  27. GlobalAllocW
  28. GMEM_MOVABLEl
  29. MAXKEYBUFFERI
  30. GlobalLock
  31. GlobalUnlock
  32. GlobalFree
  33. lbsetup
  34. GetProfileString
  35. StrIndex
  36. NullPos
  37.     lpKeyNameQ
  38.     lpKeyList
  39. DeviceName
  40.     NextCommag
  41. NextComm_
  42. DoneO
  43. List1u
  44. Str10
  45. Command2_Click
  46. PrintSetup
  47. Command1_Click
  48. @    Form_Load!
  49. LPT2~
  50. width
  51.     ListIndex
  52. lbLookup
  53.     ListCount
  54. List1_Click[
  55. List1_DblClick
  56. LoadCursorG
  57. IDC_WAIT
  58.     SetCursor
  59. Screen
  60. MousePointer
  61. pauseT
  62. lbParse
  63. SrcStr
  64. lpName
  65. lpPort~
  66. lpDriver
  67.     SrcString
  68. strlen
  69.     lpPrinter$
  70. OpenFile
  71. fstru
  72. OF_EXIST
  73. OF_READ
  74. TempStr`
  75. TEMPF
  76. OFSTRUCT
  77. LaserJet2
  78. hmemDM;
  79. GetDefaultPrinter
  80. define
  81.     DM_UPDATES
  82. DM_COPY|
  83.     DM_PROMPTm
  84.     DM_MODIFY
  85. CallProc
  86. dmOut[
  87. lpPro
  88. wMode
  89. hDriver,
  90. LoadLibrary
  91. FreeLibrary
  92. lpfnMode
  93. GetProcAddressO
  94. wSizeDM9
  95. LocalAlloc
  96.     LocalLock"
  97. LocalUnlock=
  98. dummy
  99. DM_MODI
  100. Command3_Click~
  101. AccessPrinter
  102. SetDef
  103. Flags
  104.     UpdatePrt
  105. wFlags
  106. FALSE
  107. Label1_Click
  108. kbDaemon
  109. KeyAscii
  110. GotFocus
  111. Command1_KeyPress
  112. Command2_KeyPress
  113. Command3_KeyPress
  114. Form_KeyPress
  115. SIZETEMPBUFFER
  116. MAXBUFFERSIZE
  117. MAXKEYBUFF
  118. CallAddr.DLL2
  119. Kernelt
  120. lbsetup
  121. Devices"
  122. No Devices Available
  123. Devices"
  124. The string Returned should be in the form:
  125.    PCL / HP LaserJet,HPPCL,LPT1:,LPT2:
  126. Get the device Namet
  127. Loop Through the devices adding a string to the listbox Controlx
  128. Get Default Printeri
  129. Windows"
  130. Device
  131. Command2_Click
  132. Command1_Click
  133. Form_Load
  134. lbLookup
  135. List1_DblClick
  136. lbParse
  137. We assume that the input string is
  138. in the form: <Printer> on <Port>
  139. devices"
  140. Command3_Click
  141. AccessPrinter
  142. EXTDEVICEMODE"
  143. WIN.INI"
  144. WIN.INI"
  145. kbDaemon
  146. Command1_KeyPress
  147. Command2_KeyPress
  148. Command3_KeyPress
  149. Form_KeyPress
  150.