CEPlayer2_20051226

所属分类:Windows CE
开发工具:Visual C++
文件大小:5286KB
下载次数:300
上传日期:2006-02-10 17:39:05
上 传 者pupupupu
说明:  wince5.0模拟器下运行通过,wince5.0自带的媒体播放器,从platform builder下分离出来,用evc4.0编译运行。
(wince5.0 run through the simulator, wince5.0 own media player, from the platform builder under separated with evc4.0 compiler running.)

文件列表:
CEPlayer2_20051226\adddeletedlg.cpp (22793, 2004-07-01)
CEPlayer2_20051226\adddeletedlg.h (1873, 2004-07-01)
CEPlayer2_20051226\addtracksdlg.cpp (10946, 2004-07-01)
CEPlayer2_20051226\addtracksdlg.h (1648, 2004-07-01)
CEPlayer2_20051226\aygshell_helper.cpp (1911, 2004-07-01)
CEPlayer2_20051226\aygshell_helper.h (1134, 2004-07-01)
CEPlayer2_20051226\basedialog.cpp (3093, 2005-12-21)
CEPlayer2_20051226\basedialog.h (1891, 2004-07-01)
CEPlayer2_20051226\CEPlayer.aps (384156, 2006-02-06)
CEPlayer2_20051226\ceplayer.cpp (24609, 2005-12-24)
CEPlayer2_20051226\CEPlayer.rc (17598, 2005-12-26)
CEPlayer2_20051226\CEPlayer.vcb (476160, 2006-02-06)
CEPlayer2_20051226\CEPlayer.vcl (2868, 2006-02-06)
CEPlayer2_20051226\CEPlayer.vco (56832, 2006-02-06)
CEPlayer2_20051226\CEPlayer.vcp (16868, 2006-02-06)
CEPlayer2_20051226\CEPlayer.vcw (544, 2005-12-06)
CEPlayer2_20051226\ceplayerutil.cpp (6549, 2005-12-22)
CEPlayer2_20051226\ceplayerutil.h (1431, 2005-12-22)
CEPlayer2_20051226\decibels.cpp (54921, 2004-07-01)
CEPlayer2_20051226\decibels.h (1284, 2004-07-01)
CEPlayer2_20051226\emulatorDbg\adddeletedlg.obj (37193, 2006-02-06)
CEPlayer2_20051226\emulatorDbg\adddeletedlg.sbr (0, 2006-02-06)
CEPlayer2_20051226\emulatorDbg\addtracksdlg.obj (21283, 2006-02-06)
CEPlayer2_20051226\emulatorDbg\addtracksdlg.sbr (0, 2006-02-06)
CEPlayer2_20051226\emulatorDbg\aygshell_helper.obj (13936, 2006-02-06)
CEPlayer2_20051226\emulatorDbg\aygshell_helper.sbr (0, 2006-02-06)
CEPlayer2_20051226\emulatorDbg\basedialog.obj (13748, 2006-02-06)
CEPlayer2_20051226\emulatorDbg\basedialog.sbr (0, 2006-02-06)
CEPlayer2_20051226\emulatorDbg\CEPlayer.bsc (4129792, 2006-02-06)
CEPlayer2_20051226\emulatorDbg\CEPlayer.exe (374272, 2006-02-06)
CEPlayer2_20051226\emulatorDbg\CEPlayer.ilk (698388, 2006-02-06)
CEPlayer2_20051226\emulatorDbg\ceplayer.obj (36752, 2006-02-06)
CEPlayer2_20051226\emulatorDbg\CEPlayer.pch (5781392, 2006-02-06)
CEPlayer2_20051226\emulatorDbg\CEPlayer.pdb (672768, 2006-02-06)
CEPlayer2_20051226\emulatorDbg\ceplayer.res (162300, 2006-02-06)
CEPlayer2_20051226\emulatorDbg\ceplayer.sbr (0, 2006-02-06)
CEPlayer2_20051226\emulatorDbg\ceplayerutil.obj (16100, 2006-02-06)
CEPlayer2_20051226\emulatorDbg\ceplayerutil.sbr (0, 2006-02-06)
CEPlayer2_20051226\emulatorDbg\decibels.obj (14574, 2006-02-06)
CEPlayer2_20051226\emulatorDbg\decibels.sbr (0, 2006-02-06)
... ...

// // Copyright (c) Microsoft Corporation. All rights reserved. // // // Use of this source code is subject to the terms of the Microsoft end-user // license agreement (EULA) under which you licensed this SOFTWARE PRODUCT. // If you did not accept the terms of the EULA, you are not authorized to use // this source code. For a copy of the EULA, please see the LICENSE.RTF on your // install media. // /////////////////////////////////////////////////////////////////////////////// // // Sample Name: CEPlayer Sample // /////////////////////////////////////////////////////////////////////////////// Description =========== CEPlayer demonstrates the tasks required to initialize and run an application that hosts the Windows Media Player ActiveX control for audio and video playback. User's Guide ============ Input is accepted either through the menus or buttons on the player. If the player is started from a command line or with the Run command off of the Start Menu an optional paramater of a file to be played may be used, in which case playback will begin automatically once the file is loaded. The playlist dialogs maybe started from the File menu by selecting the Playlists item. The first dialog displayed presents a view of the current playlist (or all local content if no playlists exist). This dialog allows items to be added, removed, or re-ordered. Playback and track info is also available. Selecting the Organize Playlists option from the drop down menu allows playlists to be created, deleted from the system, or renamed. When a new playlist is created the user is given the opportunity to add content to that playlist. General Notes ============= By default, the \Windows directory is scanned by the Playlist Manager for local content. To exclude that directory simply un-comment the line in PlaylistMgr.cpp containing "\\Windows" in the exclude path. The registry key [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\CEPlayer\HomePage] contains the web pages launched by the [-> Web] button. Programming Notes ================= FILES: AddDeleteDlg.h - The Organize Playlists dialog is defined in this file. It is used to add, delete, or rename playlists. AddDeleteDlg.cpp - This file implements the member functions for the Organize Playlists dialog. AddTracksDlg.h - The Add Tracks dialog is defined in this file. It allows content to be added to an existing playlist. AddTracksDlg.cpp - This file implements the member functions for the Add Tracks dialog. BaseDialog.h - All of the playlist dialogs derive from this class. BaseDialog.cpp - The base class for all playlist dialogs is implemented in this file. CEPlayer.cpp - WinMain and WinProc are contained in this file CEPlayer.rc - The menu structure is defined in this resouce file CEPlayerUtil.h - This file contains the function prototypes for functions required by multiple components. CEPlayerUtil.cpp - The utility functions are implemented here. MPContainer.h - This file defines a class (CMPContainer) that is used as the ActiveX container for the WMP ActiveX control MPContainer.cpp - The implementation of CMPContainer MPEventSink.h - In order to handle events, an EventSink must be defined this class (CMPEventSink) will handle MediaPlayer events MPEventSink.cpp - The implementation of CMPEventSink OpenURLDlg.h - The DialogProc for the OpenURL dialog box is declared in this header. OpenURLDlg.cpp - The only function implemented in this file is the main DialogProc for the OpenURL dialog. OptionsDlg.h - This dialog has three options. The network share option is used by the playlist manager to discover content on a remote computer. OptionsDlg.cpp - This file implements the functions for the dialog. PlayerWindow.h - This class (CPlayerWindow) derives from CMPContainer and CMPEventSink to provide a fully functional environment for housing the WMP ActiveX control PlayerWindow.cpp - The implementation of CPlayerWindow PlaylistDlg.h - This dialog is used to view the contents of a playlist. PlaylistDlg.cpp - The various dialog methods are implemented in this file. PlaylistMgr.h - The Playlist Manager class is used to discover content and keep track of all of the playlists on the device. PlaylistMgr.cpp - The playlist manager is implemeneted in this file. PList.h - A class encapsulating a playlist is defined in this file along with a class for an individual media clip. PList.cpp - The implementations for the playlist and media clip classes are contained in this file. PropertyDlg.h - The class encapsulating the Property dialog is defined in this file. PropertyDlg.cpp - This file implements the member functions of the CPropertyDlg class as well as the DialogProc for this dialog. SelectPlaylistDlg.h - The class used to display the Select Playlist dialog. SelectPlaylistDlg.cpp - The DialogProc for this class is implemented in this file. StatisticsDlg.h - The class encapsulating the Statistics dialog is defined in this file. StatisticsDlg.cpp - This file implements the member functions of the CStatisticsDlg class as well as the DialogProc for this dialog. makefile - This is a dummy makefile to ensure the use of the build command readme.txt - This file contains information relating the the CEPlayer application not found in the source comments newres.h - Addition resource definitions. resource.h - The resource header contains the ID's of menus and menu items sources - This is the file that is used by build to compile and link the CEPlayer application NOTES: There are several function that are required to make the WMP control function properly that do not seem necessary at first. The CMPContainer's methods GetDC() and ReleaseDC() are required to allow the control to update it's tracker bar and status bar. Without these two methods the WMP control can only update those two items when it is redrawn by the container. In order to allow the control to respond to mouse events any event that is not handled by the main WinProc must be passed to the control to allow it a chance to respond to the event. Handling accelerator keys is handled in a similar manner. Any key event must be passed to the IControl::TranslateAccelerator() function. If that function can translate the accelerator, then the OnMnemonic() function should be passed the key event. It is this function that actually responds to the accelerator key.

近期下载者

相关文件


收藏者