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