home *** CD-ROM | disk | FTP | other *** search
/ Computer Buyer 1998 August / DPCB0898.iso / Home / Etutor / 32BITVER / Frmmsg.h < prev    next >
Text File  |  1996-09-18  |  7KB  |  147 lines

  1. /***************************************************************************\
  2. *                                                                           *
  3. *      Program Name:           CRT Application Framework.                   *
  4. *                                                                           *
  5. *      Copyright:              (c) CRT Multimedia 1994/1995                 *
  6. *                                                                           *
  7. *      Module Name:            FRMMSG.H                                     *
  8. *                                                                           *
  9. *      Module Description:                                                  *
  10. *            Standard framework display object message definitions          *
  11. *                                                                           *
  12. *      Creation Date:          19th June 1994                               *
  13. *                                                                           *
  14. *      Developer Name(s):      Martin Packer                                *
  15. *                              Duncan Lowe                                  *
  16. *                              Richard Jermyn                               *
  17. *                                                                           *
  18. \***************************************************************************/
  19.  
  20. // ---------------------------------
  21. // define a flag value for all the 
  22. // different possible button states.
  23. // ---------------------------------
  24. #define BS_UP       0
  25. #define BS_DOWN     1
  26. #define BS_DISABLED 2
  27. #define BS_UMOUSE   3
  28. #define BS_FOCUS    4
  29. #define BS_DONE     5
  30. #define BS_ENABLE   6
  31.  
  32. // -------------------
  33. // framework messages
  34. // -------------------
  35. #define DO_LOW_FRAME_MESSAGE                -32767
  36.  
  37. #define DO_HIDE                             -32767
  38. #define DO_SHOW                             -32766
  39. #define DO_MOVE                             -32765
  40. #define DO_SIZE                             -32764
  41. #define DO_UPDATE                           -32763
  42. #define DO_DEACTIVATE                       -32762
  43. #define DO_ACTIVATE                         -32761
  44. #define DO_DEACTIVATE_ALL                   -32760                      
  45. #define DO_ACTIVATE_ALL                     -32759
  46. #define DO_DESTROY                          -32758
  47. #define DO_CREATE_CHILD_FROM_CRATE          -32757
  48. #define DO_CREATE_CHILD_FROM_MEMBER         -32756  
  49. #define DO_DESTROY_CHILD                    -32755
  50. #define DO_ASSOCIATE_NEW_CRATE              -32754
  51. #define DO_ASSOCIATE_NEW_MEMBER             -32753
  52. #define DO_INVALIDATE                       -32752
  53. #define DO_GET_CHILD                        -32751
  54. #define DO_MAKE_PARENT                      -32750
  55.  
  56. #define DO_HIGH_FRAME_MESSAGE               -32750
  57.  
  58.  
  59.  
  60. /////////////////////////////////////////////////////////////////////////////
  61. //   Graphic Item Display Object Messages - range: 100 - 199                
  62.  
  63. #define DO_ADD_ITEM                         100
  64. #define DO_REMOVE_ITEM                      101
  65. #define DO_INVALIDATE_ITEM                  102
  66. #define DO_SHOW_ITEM                        103
  67.  
  68.  
  69. /////////////////////////////////////////////////////////////////////////////
  70. //   Hotspot Window Display Object Messages - range: 200 - 299                                        
  71.              
  72. // sent by a hotspot window when the mouse moves over it
  73. #define DO_HOTSPOT_MOUSEMOVE                201 
  74.  
  75. // sent by a hotspot window when the left button is pressed
  76. #define DO_HOTSPOT_LBUTTONDOWN              202
  77.  
  78. // sent by a hotspot window when the left button is released
  79. #define DO_HOTSPOT_LBUTTONUP                203
  80.  
  81. // causes all the hotspots in a given hotspot window to be deactivated
  82. #define DO_HOTSPOT_DEACTIVATE_ALL           204
  83.  
  84. // causes all the hotspots in a given hotspot window to be deactivated
  85. #define DO_HOTSPOT_ACTIVATE_ALL             205
  86.                                             
  87. // causes the hotspot indicated by the first parameter to be deactivated
  88. #define DO_HOTSPOT_DEACTIVATE               206
  89.  
  90. // causes the hotspot indicated by the first parameter to activated
  91. #define DO_HOTSPOT_ACTIVATE                 207
  92.  
  93. // indicates to the DO that a timer event set up to delay presses has completed
  94. #define DO_HOTSPOT_TIMER_COMPLETE           208
  95.  
  96.  
  97.  
  98. /////////////////////////////////////////////////////////////////////////////
  99. //   MCI (Video and Audio) Display Object Messages - range: 300 - 399                                                    
  100.  
  101. // MCI notification messages
  102. #define DO_MCI_NOTIFY_ABORTED               301
  103. #define DO_MCI_NOTIFY_SUCCESSFUL            302
  104. #define DO_MCI_NOTIFY_SUPERSEDED            303
  105. #define DO_MCI_NOTIFY_FAILURE               304
  106.  
  107. // MCI command messages
  108. #define DO_MCI_STOP                         305
  109. #define DO_MCI_PAUSE                        306
  110. #define DO_MCI_RESUME                       307
  111. #define DO_MCI_SEEK                         308
  112. #define DO_MCI_PLAY                         309
  113.  
  114. // other MCI targetted messages
  115. #define DO_MCI_DESTROY                      310
  116. #define DO_MCI_HIDE                         311
  117. #define DO_MCI_SHOW                         312
  118. #define DO_MCI_HIDE_ON_SUCCESS              313
  119. #define DO_MCI_SHOW_PLAY_HIDE               314
  120.  
  121.  
  122. /////////////////////////////////////////////////////////////////////////////
  123. //   Animating Button Display Object Messages - range: 400 - 499 
  124.  
  125. #define    DO_ANIMATING_BUTTON_PLAY            400                                                   
  126. #define    DO_ANIMATING_BUTTON_STOP            401                                                   
  127. #define    DO_ANIMATING_BUTTON_PAUSE            402                                                   
  128. #define    DO_ANIMATING_BUTTON_RESUME            403
  129. #define DO_ANIMATING_BUTTON_FINISHED        404                                                   
  130.  
  131. /////////////////////////////////////////////////////////////////////////////
  132. //   Misc.  Display Object Messages - range: 500 - 599 
  133.  
  134. // informs parent of CXGRichEdit object that RTF action has been done
  135. #define    DO_RTF_ACTION_DONE                  500     
  136. #define WM_RTF_ACTION_DONE                  501
  137.  
  138. // repeat the last audio instruction in the demo or tryit
  139. #define    DO_REPEAT_LAST_AUDIO                  502  
  140. #define WM_REPEAT_LAST_AUDIO                503
  141.  
  142.  
  143. // opens a popup screen over the current screen
  144. #define DO_SCREEN_OPEN_POPUP                        1015
  145.  
  146. // closes any popup screen over the current screen
  147. #define DO_SCREEN_CLOSE_POPUP                       1016