home *** CD-ROM | disk | FTP | other *** search
/ cyber.net 2 / cybernet2.ISO / qtw111 / mplayer / player.hr < prev    next >
Text File  |  1993-09-30  |  13KB  |  310 lines

  1.  
  2. // ---------------------------------------------------------------------
  3. //
  4. // Player.hr - Movie Player - QuickTime for Windows
  5. //
  6. //             Version 1.0
  7. //
  8. //             (c) 1988-1992 Apple Computer, Inc. All Rights Reserved.
  9. //
  10. // ---------------------------------------------------------------------
  11.  
  12.  
  13. // Prevent multiple inclusion
  14. // --------------------------
  15.    #ifndef PLAYER_HR
  16.       #define PLAYER_HR
  17.  
  18.  
  19. // Bitmaps, Icons, Menus, Accelerators
  20. // -----------------
  21.    #define PLAYER_PLAYER_BITMAP          101
  22.    #define PLAYER_PLAYER_DEFICON         102
  23.    #define PLAYER_PLAYER_ICON            103
  24.    #define PLAYER_MOVIE_ICON             104
  25.    #define PLAYER_FRAME_MENU             105
  26.    #define PLAYER_ACCELERATORS           106
  27.    #define PLAYER_CHECKERS_BITMAP        107
  28.  
  29. // Dialog box ids
  30.        // Frame Window
  31.    #define PLAYER_DLG_ABOUTPLAYER        201
  32.    #define PLAYER_DLG_PRINTCANCEL        202
  33.        // Movie Window
  34.    #define PLAYER_DLG_OPTIONS            203
  35.    #define PLAYER_DLG_GETINFO            204
  36.        // Custom template for "print" common dialog
  37.    #define CUSTOM_DLG_COMN_PRINT         205
  38.  
  39.        // Localized templates for dialogs needed by qtole.dll.
  40.        // Offsets are defined in qtole.h. Compiler will not allow use
  41.        // of ( OLE_DLG_FIRST + QTOLE_DLG_OFFSET_... ) form as it will in
  42.        // string table
  43.    #define OLE_DLG_FIRST                 230 
  44.    #define OLE_DLG_FILESEARCH            230  // OLE_DLG_FIRST + QTOLE_DLG_OFFSET_SEARCHDLG
  45.  
  46.  
  47. // Frame Window
  48. // -----------
  49.    #define PLAYER_FRAME_CLASS         "PlayerFrameClass"
  50.         // Readable class name that is used in registration data base
  51.  
  52.      // Frame window menu ids
  53.      // See note below these ids !!!
  54.    #define PLAYER_FILE_OPEN               20
  55.    #define PLAYER_FILE_CLOSE              21
  56.    #define PLAYER_FILE_PRINT              22
  57.    #define PLAYER_FILE_PRTSETUP           23
  58.    #define PLAYER_FILE_EXIT               24
  59.  
  60.    #define PLAYER_EDIT_COPY               30
  61.    #define PLAYER_EDIT_OPTIONS            31
  62.    #define PLAYER_EDIT_CANCELSEL          32
  63.  
  64.    #define PLAYER_MOVIE_GETINFO           40
  65.    #define PLAYER_MOVIE_STOPATEND         41
  66.    #define PLAYER_MOVIE_LOOP              42
  67.    #define PLAYER_MOVIE_BACKANDFORTH      43
  68.    #define PLAYER_MOVIE_PLAYSELONLY       44
  69.    #define PLAYER_MOVIE_HALFSIZE          45
  70.    #define PLAYER_MOVIE_NORMALSIZE        46
  71.    #define PLAYER_MOVIE_DOUBLESIZE        47
  72.    #define PLAYER_MOVIE_SHOWPOSTER        48
  73.  
  74.    #define PLAYER_WINDOW_TILE             50
  75.    #define PLAYER_WINDOW_CASCADE          51
  76.    #define PLAYER_WINDOW_ARRANGE          52
  77.  
  78.    #define PLAYER_HELP_PLAYERHELP         60
  79.    #define PLAYER_HELP_USINGHELP          61
  80.    #define PLAYER_HELP_ABOUTPLAYER        63
  81.  
  82. // The next define is the menu id of the first movie window. Each new window
  83. // gets an id based on this value. These are the ids used by hwndClient to
  84. // refer to the list of windows in the Windows popup. THIS FIRST ID VALUE
  85. // MUST BE GREATER THAN ANY OF THE FRAME WINDOW MENU IDS ABOVE !!!!
  86.    #define PLAYER_CLIENT_FIRSTCHILD      500
  87.  
  88.  
  89.    #define MENU_FILE_POS                0    // position of File menu item
  90.    #define MENU_EDIT_POS                1    // position of Edit menu item
  91.    #define MENU_MOVIE_POS               2    // position of Movie menu item
  92.    #define MENU_WINDOW_POS              3    // position of Windows menu item
  93.  
  94.  
  95. // Define the following message in the coalesce range to prevent multiple
  96. // copies of the message from appearing in the message queue
  97.    #define WM_PLAYER_INFO_UPDATE        (WM_COALESCE_FIRST)
  98.  
  99. //  WM_USER ids
  100.    #define WM_PLAYER_CMDLINE              (WM_USER + 1)
  101.    #define WM_PLAYER_MOVIEDELETED         (WM_USER + 2)
  102.    #define WM_PLAYER_PRINTFRAME           (WM_USER + 3)
  103.    #define WM_PLAYER_INITPOPUPS           (WM_USER + 4)
  104.    #define WM_PLAYER_ACTIVATEMOVIE        (WM_USER + 5)
  105.    #define WM_PLAYER_ACTIVATECONTROLLER   (WM_USER + 6)
  106.    #define WM_PLAYER_UPDATEGBBOUNDSRECT   (WM_USER + 7)
  107.    #define WM_PLAYER_PLAYTHEMOVIE         (WM_USER + 8)
  108.    #define WM_PLAYER_INFO_UPDATEFILENAME  (WM_USER + 9)
  109.    #define WM_PLAYER_OLE_OPTIONSDLG       (WM_USER + 10)
  110.    #define WM_PLAYER_OLE_PLAYOBJECT       (WM_USER + 11)
  111.  
  112. // end WM_USER ids
  113.  
  114.       // About box control id
  115.    #define PLAYER_ABOUT_BMPFRAME           10
  116.  
  117.       // Print Cancel dlg control id
  118.    #define PRINT_CANCEL_MOVIENAME          10
  119.  
  120.  
  121. // Movie Window specific ids
  122. // -----------
  123.    #define PLAYER_MOVIE_CLASS         "PlayerMovieClass"
  124.  
  125.      // GetInfo dialog box control ids
  126.    #define MOVIE_INFO_NAME                10
  127.    #define MOVIE_INFO_FILESIZE            11
  128.    #define MOVIE_INFO_DURATION            12
  129.    #define MOVIE_INFO_SELECTION           13
  130.    #define MOVIE_INFO_CURSIZE             14
  131.    #define MOVIE_INFO_WANDH               15
  132.    #define MOVIE_INFO_RESOLUTION          16
  133.    #define MOVIE_INFO_COLORS              17
  134.    #define MOVIE_INFO_COMPRESSOR          18
  135.    #define MOVIE_INFO_SND_NUMCHANNELS     19
  136.    #define MOVIE_INFO_SND_SOUNDQUALITY    20
  137.    #define MOVIE_INFO_LINE1               21
  138.    #define MOVIE_INFO_LINE2               22
  139.  
  140.  
  141. // Edit options ids
  142. // -----------
  143.  
  144.      // Edit options dialog box control ids
  145.    #define EDIT_OPTIONS_SHOWMC            301
  146.    #define EDIT_OPTIONS_CAPTION_TEXT      302
  147.    #define EDIT_OPTIONS_CAPTION           303
  148.  
  149.    #define EDIT_OPTIONS_PLAYSELONLY       304
  150.    #define EDIT_OPTIONS_DRAWFRAME         305
  151.    #define EDIT_OPTIONS_USEPALETTE        306
  152.  
  153.    #define EDIT_OPTIONS_COPYICON          307
  154.    #define EDIT_OPTIONS_SHOWTITLEBAR      308
  155.    #define EDIT_OPTIONS_COPYCURRENT       309
  156.    #define EDIT_OPTIONS_COPYPOSTER        310
  157.  
  158.    #define EDIT_OPTIONS_STOPATEND         311
  159.    #define EDIT_OPTIONS_LOOP              312
  160.    #define EDIT_OPTIONS_PALINDROME        313
  161.  
  162.    #define EDIT_OPTIONS_SIZECURRENT       314
  163.    #define EDIT_OPTIONS_SIZEHALF          315
  164.    #define EDIT_OPTIONS_SIZENORMAL        316
  165.    #define EDIT_OPTIONS_SIZEDOUBLE        317
  166.  
  167.    #define EDIT_OPTIONS_SAVEASDEF         318
  168.    #define EDIT_OPTIONS_RESTRDEF          319
  169.  
  170. // Strings
  171. // -------
  172.    #define PLAYER_STRING_NOMEMORY          0x0100
  173.    #define PLAYER_STRING_CAPTION           0x0101
  174.    #define PLAYER_STRING_NOACCELORMENU     0x0102
  175.    #define PLAYER_STRING_NOWINDOW          0x0103
  176.    #define PLAYER_STRING_NODC              0x0104
  177.  
  178.    #define PLAYER_STRING_FILEEXT           0x0110
  179.    #define PLAYER_STRING_OPENMOVIEFILTER   0x0111
  180.    #define PLAYER_STRING_CDLG_FINDRESFAIL  0x0112
  181.    #define PLAYER_STRING_CDLG_INITFAIL     0x0113
  182.    #define PLAYER_STRING_CDLG_LOADRESFAIL  0x0114
  183.    #define PLAYER_STRING_CDLG_LOCKRESFAIL  0x0115
  184.    #define PLAYER_STRING_CDLG_MEMALLOCFAIL 0x0116
  185.    #define PLAYER_STRING_CDLG_MEMLOCKFAIL  0x0117
  186.    #define PLAYER_STRING_CDLG_STRUCTSIZE   0x0118
  187.    #define PLAYER_STRING_CDLG_BADFILENAME  0x0119
  188.    #define PLAYER_STRING_CDLG_PRTINITFAIL  0x011a
  189.    #define PLAYER_STRING_CDLG_LOADDRVFAIL  0x011b
  190.    #define PLAYER_STRING_CDLG_NODEFPRINTER 0x011c
  191.    #define PLAYER_STRING_CDLG_NODEVICES    0x011d
  192.    #define PLAYER_STRING_CDLG_NOFINDPNTR   0x011e
  193.    #define PLAYER_STRING_CDLG_SETUPFAIL    0x011f
  194.    #define PLAYER_STRING_CDLG_GENFAILURE   0x0120
  195.    #define PLAYER_STRING_CDLG_FORMAT       0x0121
  196.    #define PLAYER_STRING_CDLG_CAP          0x0122
  197.  
  198.    #define PLAYER_STRING_CANCELDLG         0x0130
  199.    #define PLAYER_STRING_ABORTPROC         0x0131
  200.    #define PLAYER_STRING_PRT_OUTOFDISK     0x0132
  201.    #define PLAYER_STRING_PRT_NOMEMORY      0x0133
  202.    #define PLAYER_STRING_PRT_GENERROR      0x0134
  203.    #define PLAYER_STRING_PRT_CAPTION       0x0135
  204.  
  205.    #define PLAYER_STRING_NOHELPFILE        0x0140
  206.  
  207.    #define PLAYER_STRING_SIZEBYTES         0x0150
  208.    #define PLAYER_STRING_SIZEKBYTES        0x0151
  209.    #define PLAYER_STRING_DURATION          0x0152
  210.    #define PLAYER_STRING_SELECTION         0x0153
  211.    #define PLAYER_STRING_NOSELECTION       0x0154
  212.    #define PLAYER_STRING_WANDH