home *** CD-ROM | disk | FTP | other *** search
/ Prima Shareware 3 / DuCom_Prima-Shareware-3_cd1.bin / PROGRAMO / C / MSGDLL / MSGDLL.OVD (.txt)
Encoding:
ObjectVision Datafile  |  1991-11-14  |  4.7 KB  |  124 lines

  1. Message Box DLL Calculator!
  2. Windows API Message Box Constants
  3. Message Box DLL Help
  4. Show Message Box
  5. Register Message Box DLL
  6. Message Box Type
  7. Message Text
  8. Message Title
  9. Message Box Buttons
  10. Message Box Icon
  11. Message Button Value
  12. Message Icon Value
  13. Default Highlight Button
  14. Message Default Button Value
  15. Message Box Return Value
  16. Message Box Mode Value
  17. Message Box Mode
  18. Cancel
  19. View Constants
  20. Close
  21. Courier
  22. System
  23. Courier
  24. Helvetica
  25. Helvetica
  26. /* MessageBox() Constants */
  27.                     Hex    Decimal
  28.  OK               0x0000    0
  29.  OKCANCEL         0x0001    1
  30.  ABORTRETRYIGNORE 0x0002    2
  31.  YESNOCANCEL      0x0003    3
  32.  YESNO            0x0004    4
  33.  RETRYCANCEL      0x0005    5
  34.  NOICON           0X0000    0
  35.  ICONHAND         0x0010    16
  36.  ICONQUESTION     0x0020    32 
  37.  ICONEXCLAMATION  0x0030    48 
  38.  ICONINFORMATION  0x0040    64
  39.  DEFBUTTON1       0x0000    0
  40.  DEFBUTTON2       0x0100    256  
  41.  DEFBUTTON3       0x0200    512
  42.  APPLMODAL        0x0000    0
  43.  SYSTEMMODAL      0x1000    4096
  44. This demo shows how to use the Windows API
  45. MessageBox function with Object Vision 2.0's 
  46. DLL capability.  Although OV 2.0 includes a simple 
  47. Message Box function, there is no built in function for
  48. the other normal Windows Message Boxes such as 
  49. OK Cancel, Abort Retry Ignore, etc.
  50. The DLL Call to USER.EXE is simple.  However
  51. the parameter for the Message Box type normally
  52. uses #defines from the windows.h header file (in C 
  53. and Pascal).  Windows.h substitutes descriptive constants
  54. such as MB_OKCANCEL for the underlying numeric 
  55. constants.  Since there is no windows.h available to 
  56. OV it can get quite tedious to calculate all the numeric 
  57. options to get the Message Box type that you want. 
  58. In this demo the value of MB type is calculated
  59. based on the selection made with the radio buttons.
  60. There are two basic Message Box types that 
  61. are useful with OV:
  62. Application Modal:  allows switching from OV to 
  63. another application.
  64. System Modal:  prevents switching to any other 
  65. application and brings all background processes 
  66. to a halt.  This is generally used for extreme 
  67. situations such as low memory conditions, etc.
  68. @MESSAGEBOX
  69. @MESSAGEBOX
  70. IyCCH
  71. Message Text,Message Title,Message Box Type
  72. USER.EXE
  73. MessageBox
  74. OK  CANCEL
  75. This is the text of the Message Box!
  76. OV Message Box Demo
  77. Message Box Buttons
  78. OK CANCEL
  79. ABORT RETRY IGNORE
  80. YES NO
  81. YES NO CANCEL
  82. RETRY CANCEL
  83. NO ICON
  84. ICON QUESTION
  85. ICON STOP
  86. ICON EXCLAMATION
  87. ICON INFORMATION
  88. NO ICON
  89. RETRY CANCEL
  90. YES NO
  91. YES NO CANCEL
  92. ABORT RETRY IGNORE
  93. OK CANCEL
  94. NO ICON
  95. ICON EXCLAMATION
  96. ICON INFORMATION
  97. ICON STOP
  98. ICON QUESTION
  99. FIRST BUTTON
  100. SECOND BUTTON
  101. THIRD BUTTON
  102. FIRST BUTTON
  103. THIRD BUTTON
  104. SECOND BUTTON
  105. FIRST BUTTON
  106. IGNORE
  107. RETRY
  108. ABORT
  109. CANCEL
  110. NO FOCUS
  111. 32768
  112. TASK MODAL
  113. SYSTEM MODAL
  114. APPLICATION MODAL
  115. APPLICATION MODAL
  116. SYSTEM MODAL
  117. APPLICATION MODAL
  118. Message Box DLL Help
  119. Constants Cancel
  120. Message Box DLL Help
  121. Windows API Message Box Constants
  122. Windows API Message Box Constants
  123. Cancel
  124.