home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / i / ivb92b.zip / WINEND.FRM (.txt) < prev    next >
Visual Basic Form  |  1992-09-09  |  3KB  |  76 lines

  1. Form1
  2. Exit Windows
  3. wwwwp
  4. wwwww
  5. Form1
  6. Form_Click
  7. ExitWindows
  8. dwReservedq
  9. wReturnCode
  10. EW_REBOOTSYSTEM
  11. EW_RESTARTWINDOWS
  12. Form_Resize
  13. Form1
  14. WindowState
  15.     Form_Load
  16. State8
  17. Form1_Click
  18. State1
  19. EW_EXITWINDOWSg
  20. value
  21. level
  22. react
  23. resize
  24. events
  25. based
  26. which
  27. event
  28. occurs
  29. fails
  30. whatever
  31. reason
  32. displaying
  33. EW_CURRENTEXITTYPE
  34. demonstration
  35. program
  36. Userw
  37. Return to DOSu
  38. Reboot computer
  39. Exit to DOS & restart WindowsR
  40. Keep track of why Resize event
  41. is being triggered.e
  42. We set the EW_CURRENTEXITTYPE constant
  43. to the type of exit we want for this
  44. demonstration program.
  45. Form_Click
  46. Mark that program is in Click eventa
  47. Minimize WinEnd'
  48.     MsgBox "Windows Reboot aborted by an application.", 16, "Message from WinEnd"
  49. Reset program since it was aborted
  50. Form_Resize
  51.  The Form_Resize event procedure
  52.  uses the form level variable State%
  53.  to let it react to resize eventse
  54.  based on the point at which the
  55.  resize event occurs.
  56. State%'s
  57.  Purpose
  58.  Value
  59.  Used to ignore initial
  60.      resize event when program
  61.      launched.
  62.  Used to activate Form_Click 
  63.      event when you want to exit
  64.      windows. WinEnd resets 
  65.      State% to 2 if the exit
  66.      fails (for whatever
  67.      reason).o
  68.  Used while trying to shutc
  69.      down Windows to avoid
  70.      displaying the WinEnd form.
  71. After FORM_LOADC
  72. After activatedC
  73. During FORM_CLICKE
  74. Form_Load
  75. Minimize the formn
  76.