
// ---------------------------------------------------------------------
//
// Player.hr - Movie Player - QuickTime for Windows
//
//             Version 1.0
//
//             (c) 1988-1992 Apple Computer, Inc. All Rights Reserved.
//
// ---------------------------------------------------------------------


// Prevent multiple inclusion
// --------------------------
   #ifndef PLAYER_HR
      #define PLAYER_HR


// Bitmaps, Icons, Menus, Accelerators
// -----------------
   #define PLAYER_PLAYER_BITMAP          101
   #define PLAYER_PLAYER_DEFICON         102
   #define PLAYER_PLAYER_ICON            103
   #define PLAYER_MOVIE_ICON             104
   #define PLAYER_FRAME_MENU             105
   #define PLAYER_ACCELERATORS           106
   #define PLAYER_CHECKERS_BITMAP        107

// Dialog box ids
       // Frame Window
   #define PLAYER_DLG_ABOUTPLAYER        201
   #define PLAYER_DLG_PRINTCANCEL        202
       // Movie Window
   #define PLAYER_DLG_OPTIONS            203
   #define PLAYER_DLG_GETINFO            204
       // Custom template for "print" common dialog
   #define CUSTOM_DLG_COMN_PRINT         205

       // Localized templates for dialogs needed by qtole.dll.
       // Offsets are defined in qtole.h. Compiler will not allow use
       // of ( OLE_DLG_FIRST + QTOLE_DLG_OFFSET_... ) form as it will in
       // string table
   #define OLE_DLG_FIRST                 230 
   #define OLE_DLG_FILESEARCH            230  // OLE_DLG_FIRST + QTOLE_DLG_OFFSET_SEARCHDLG


// Frame Window
// -----------
   #define PLAYER_FRAME_CLASS         "PlayerFrameClass"
        // Readable class name that is used in registration data base

     // Frame window menu ids
     // See note below these ids !!!
   #define PLAYER_FILE_OPEN               20
   #define PLAYER_FILE_CLOSE              21
   #define PLAYER_FILE_PRINT              22
   #define PLAYER_FILE_PRTSETUP           23
   #define PLAYER_FILE_EXIT               24

   #define PLAYER_EDIT_COPY               30
   #define PLAYER_EDIT_OPTIONS            31
   #define PLAYER_EDIT_CANCELSEL          32

   #define PLAYER_MOVIE_GETINFO           40
   #define PLAYER_MOVIE_STOPATEND         41
   #define PLAYER_MOVIE_LOOP              42
   #define PLAYER_MOVIE_BACKANDFORTH      43
   #define PLAYER_MOVIE_PLAYSELONLY       44
   #define PLAYER_MOVIE_HALFSIZE          45
   #define PLAYER_MOVIE_NORMALSIZE        46
   #define PLAYER_MOVIE_DOUBLESIZE        47
   #define PLAYER_MOVIE_SHOWPOSTER        48

   #define PLAYER_WINDOW_TILE             50
   #define PLAYER_WINDOW_CASCADE          51
   #define PLAYER_WINDOW_ARRANGE          52

   #define PLAYER_HELP_PLAYERHELP         60
   #define PLAYER_HELP_USINGHELP          61
   #define PLAYER_HELP_ABOUTPLAYER        63

// The next define is the menu id of the first movie window. Each new window
// gets an id based on this value. These are the ids used by hwndClient to
// refer to the list of windows in the Windows popup. THIS FIRST ID VALUE
// MUST BE GREATER THAN ANY OF THE FRAME WINDOW MENU IDS ABOVE !!!!
   #define PLAYER_CLIENT_FIRSTCHILD      500


   #define MENU_FILE_POS                0    // position of File menu item
   #define MENU_EDIT_POS                1    // position of Edit menu item
   #define MENU_MOVIE_POS               2    // position of Movie menu item
   #define MENU_WINDOW_POS              3    // position of Windows menu item


// Define the following message in the coalesce range to prevent multiple
// copies of the message from appearing in the message queue
   #define WM_PLAYER_INFO_UPDATE        (WM_COALESCE_FIRST)

//  WM_USER ids
   #define WM_PLAYER_CMDLINE              (WM_USER + 1)
   #define WM_PLAYER_MOVIEDELETED         (WM_USER + 2)
   #define WM_PLAYER_PRINTFRAME           (WM_USER + 3)
   #define WM_PLAYER_INITPOPUPS           (WM_USER + 4)
   #define WM_PLAYER_ACTIVATEMOVIE        (WM_USER + 5)
   #define WM_PLAYER_ACTIVATECONTROLLER   (WM_USER + 6)
   #define WM_PLAYER_UPDATEGBBOUNDSRECT   (WM_USER + 7)
   #define WM_PLAYER_PLAYTHEMOVIE         (WM_USER + 8)
   #define WM_PLAYER_INFO_UPDATEFILENAME  (WM_USER + 9)
   #define WM_PLAYER_OLE_OPTIONSDLG       (WM_USER + 10)
   #define WM_PLAYER_OLE_PLAYOBJECT       (WM_USER + 11)

// end WM_USER ids

      // About box control id
   #define PLAYER_ABOUT_BMPFRAME           10

      // Print Cancel dlg control id
   #define PRINT_CANCEL_MOVIENAME          10


// Movie Window specific ids
// -----------
   #define PLAYER_MOVIE_CLASS         "PlayerMovieClass"

     // GetInfo dialog box control ids
   #define MOVIE_INFO_NAME                10
   #define MOVIE_INFO_FILESIZE            11
   #define MOVIE_INFO_DURATION            12
   #define MOVIE_INFO_SELECTION           13
   #define MOVIE_INFO_CURSIZE             14
   #define MOVIE_INFO_WANDH               15
   #define MOVIE_INFO_RESOLUTION          16
   #define MOVIE_INFO_COLORS              17
   #define MOVIE_INFO_COMPRESSOR          18
   #define MOVIE_INFO_SND_NUMCHANNELS     19
   #define MOVIE_INFO_SND_SOUNDQUALITY    20
   #define MOVIE_INFO_LINE1               21
   #define MOVIE_INFO_LINE2               22


// Edit options ids
// -----------

     // Edit options dialog box control ids
   #define EDIT_OPTIONS_SHOWMC            301
   #define EDIT_OPTIONS_CAPTION_TEXT      302
   #define EDIT_OPTIONS_CAPTION           303

   #define EDIT_OPTIONS_PLAYSELONLY       304
   #define EDIT_OPTIONS_DRAWFRAME         305
   #define EDIT_OPTIONS_USEPALETTE        306

   #define EDIT_OPTIONS_COPYICON          307
   #define EDIT_OPTIONS_SHOWTITLEBAR      308
   #define EDIT_OPTIONS_COPYCURRENT       309
   #define EDIT_OPTIONS_COPYPOSTER        310

   #define EDIT_OPTIONS_STOPATEND         311
   #define EDIT_OPTIONS_LOOP              312
   #define EDIT_OPTIONS_PALINDROME        313

   #define EDIT_OPTIONS_SIZECURRENT       314
   #define EDIT_OPTIONS_SIZEHALF          315
   #define EDIT_OPTIONS_SIZENORMAL        316
   #define EDIT_OPTIONS_SIZEDOUBLE        317

   #define EDIT_OPTIONS_SAVEASDEF         318
   #define EDIT_OPTIONS_RESTRDEF          319

// Strings
// -------
   #define PLAYER_STRING_NOMEMORY          0x0100
   #define PLAYER_STRING_CAPTION           0x0101
   #define PLAYER_STRING_NOACCELORMENU     0x0102
   #define PLAYER_STRING_NOWINDOW          0x0103
   #define PLAYER_STRING_NODC              0x0104

   #define PLAYER_STRING_FILEEXT           0x0110
   #define PLAYER_STRING_OPENMOVIEFILTER   0x0111
   #define PLAYER_STRING_CDLG_FINDRESFAIL  0x0112
   #define PLAYER_STRING_CDLG_INITFAIL     0x0113
   #define PLAYER_STRING_CDLG_LOADRESFAIL  0x0114
   #define PLAYER_STRING_CDLG_LOCKRESFAIL  0x0115
   #define PLAYER_STRING_CDLG_MEMALLOCFAIL 0x0116
   #define PLAYER_STRING_CDLG_MEMLOCKFAIL  0x0117
   #define PLAYER_STRING_CDLG_STRUCTSIZE   0x0118
   #define PLAYER_STRING_CDLG_BADFILENAME  0x0119
   #define PLAYER_STRING_CDLG_PRTINITFAIL  0x011a
   #define PLAYER_STRING_CDLG_LOADDRVFAIL  0x011b
   #define PLAYER_STRING_CDLG_NODEFPRINTER 0x011c
   #define PLAYER_STRING_CDLG_NODEVICES    0x011d
   #define PLAYER_STRING_CDLG_NOFINDPNTR   0x011e
   #define PLAYER_STRING_CDLG_SETUPFAIL    0x011f
   #define PLAYER_STRING_CDLG_GENFAILURE   0x0120
   #define PLAYER_STRING_CDLG_FORMAT       0x0121
   #define PLAYER_STRING_CDLG_CAP          0x0122

   #define PLAYER_STRING_CANCELDLG         0x0130
   #define PLAYER_STRING_ABORTPROC         0x0131
   #define PLAYER_STRING_PRT_OUTOFDISK     0x0132
   #define PLAYER_STRING_PRT_NOMEMORY      0x0133
   #define PLAYER_STRING_PRT_GENERROR      0x0134
   #define PLAYER_STRING_PRT_CAPTION       0x0135

   #define PLAYER_STRING_NOHELPFILE        0x0140

   #define PLAYER_STRING_SIZEBYTES         0x0150
   #define PLAYER_STRING_SIZEKBYTES        0x0151
   #define PLAYER_STRING_DURATION          0x0152
   #define PLAYER_STRING_SELECTION         0x0153
   #define PLAYER_STRING_NOSELECTION       0x0154
   #define PLAYER_STRING_WANDH             0x0155
   #define PLAYER_STRING_RESOLUTION        0x0156
   #define PLAYER_STRING_NORESOLUTION      0X0157
   #define PLAYER_STRING_SND_NOSOUND       0x0158
   #define PLAYER_STRING_SND_NOCARD        0x0159
   #define PLAYER_STRING_SND_MONO          0x015a
   #define PLAYER_STRING_SND_STEREO        0x015b
   #define PLAYER_STRING_SND_SOUNDQUALITY  0x015c
   #define PLAYER_STRING_NOVIDEO           0x015d

   #define PLAYER_STRING_CODEC_NONE        0x0170
   #define PLAYER_STRING_CODEC_PHOTO       0x0171
   #define PLAYER_STRING_CODEC_ANIMATION   0x0172
   #define PLAYER_STRING_CODEC_GRAPHICS    0x0173
   #define PLAYER_STRING_CODEC_VIDEO       0x0174
   #define PLAYER_STRING_CODEC_CVID        0x0175

   #define PLAYER_STRING_COLORS            0x0180
   #define PLAYER_STRING_CLRS_BANDW        0x0181
   #define PLAYER_STRING_CLRS_2GRAYS       0x0182
   #define PLAYER_STRING_CLRS_4COLORS      0x0183
   #define PLAYER_STRING_CLRS_4GRAYS       0x0184
   #define PLAYER_STRING_CLRS_16COLORS     0x0185
   #define PLAYER_STRING_CLRS_16GRAYS      0x0186
   #define PLAYER_STRING_CLRS_256COLORS    0x0187
   #define PLAYER_STRING_CLRS_256GRAYS     0x0188
   #define PLAYER_STRING_CLRS_THOUSANDS    0x0189
   #define PLAYER_STRING_CLRS_MILLIONS     0x018a
   #define PLAYER_STRING_CLRS_MILLNSPLUS   0x018b

   #define PLAYER_STRING_QTWNOEXIST        0x0190
   #define PLAYER_STRING_QTWBADDLL         0x0191
   #define PLAYER_STRING_QTW286            0x0192
   #define PLAYER_STRING_QTWWIN30          0x0193
   #define PLAYER_STRING_QTWFAILED         0x0194
   #define PLAYER_STRING_ENTMOVFAILED      0x0195
   #define PLAYER_STRING_OLEINITFAILED     0x0196

   #define PLAYER_STRING_NOMAKEMOVIEWND    0x01a0
   #define PLAYER_STRING_NOOPENFILE        0x01a1
   #define PLAYER_STRING_NOINFO            0x01a2
   #define PLAYER_STRING_NOMOVIEDATA       0x01a3

   #define PLAYER_STRING_NEWMOVIEERR       0x01b0
   #define PLAYER_STRING_INVALIDDATAREF    0x01b1
   #define PLAYER_STRING_NOCONTROLLER      0x01b2

   #define PLAYER_STRING_COPYFAILED        0x01c0
   #define PLAYER_STRING_GETPICTFAILED     0x01c1
   #define PLAYER_STRING_DRAWPICFAILED     0x01c2
   #define PLAYER_STRING_FACENAME          0x01c3


//  These are the ids for the file menu popup OLE protocol strings
   #define PLAYER_STRING_CLOSE             0x01d0
   #define PLAYER_STRING_EXIT              0x01d1
   #define PLAYER_STRING_OLECLOSE          0x01d2
   #define PLAYER_STRING_OLEEXIT           0x01d3


//  These are strings use to access the default copy options in qtw.ini
   #define PLAYER_STRING_OPTIONS_NAME           0x01e0
   #define PLAYER_STRING_OPTIONS_SHOWMC         0x01e1
   #define PLAYER_STRING_OPTIONS_PLAYSELONLY    0x01e2
   #define PLAYER_STRING_OPTIONS_DRAWFRAME      0x01e3
   #define PLAYER_STRING_OPTIONS_USEPALETTE     0x01e4
   #define PLAYER_STRING_OPTIONS_COPYICON       0x01e5
   #define PLAYER_STRING_OPTIONS_SHOWTITLE      0x01e6
   #define PLAYER_STRING_OPTIONS_CURRENTFRAME   0x01e7
   #define PLAYER_STRING_OPTIONS_LOOP           0x01e8
   #define PLAYER_STRING_OPTIONS_LOOPPALIND     0x01e9
   #define PLAYER_STRING_OPTIONS_SIZEHALF       0x01ea
   #define PLAYER_STRING_OPTIONS_SIZENORMAL     0x01eb
   #define PLAYER_STRING_OPTIONS_SIZEDOUBLE     0x01ec


// These are the ids for the strings that must be supplied for QTOLE.DLL
   #define OLE_STRING_FIRST                     0x01f0  
   #define OLE_STRING_READABLENAME     ( OLE_STRING_FIRST + QTOLE_STR_OFFSET_READABLENAME )
   #define OLE_STRING_PLAY             ( OLE_STRING_FIRST + QTOLE_STR_OFFSET_PLAY )
   #define OLE_STRING_EDIT             ( OLE_STRING_FIRST + QTOLE_STR_OFFSET_EDIT )
   #define OLE_STRING_OPTIONS          ( OLE_STRING_FIRST + QTOLE_STR_OFFSET_OPTIONS )
   #define OLE_STRING_UPDATE           ( OLE_STRING_FIRST + QTOLE_STR_OFFSET_UPDATA )
   #define OLE_STRING_ALREADYINSERTING ( OLE_STRING_FIRST + QTOLE_STR_OFFSET_ALREADYINSERTING )

   #define OLE_STRING_WHEREFILE        ( OLE_STRING_FIRST + QTOLE_STR_OFFSET_WHEREFILE )
   #define OLE_STRING_UPDATEPATH       ( OLE_STRING_FIRST + QTOLE_STR_OFFSET_UPDATEPATH )
   #define OLE_STRING_NOTFILESIZE      ( OLE_STRING_FIRST + QTOLE_STR_OFFSET_NOTFILESIZE )
   #define OLE_STRING_NOTFILENAME      ( OLE_STRING_FIRST + QTOLE_STR_OFFSET_NOTFILENAME )

   #define OLE_STRING_SEARCHDIRS       ( OLE_STRING_FIRST + QTOLE_STR_OFFSET_SEARCHDIRS )
   #define OLE_STRING_FILENOTFOUND     ( OLE_STRING_FIRST + QTOLE_STR_OFFSET_FILENOTFOUND )

// End of player.hr
// -----------------
   #endif


