//
// 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.
没有合适的资源?快使用搜索试试~ 我知道了~
wince5.0下MEDIA PLAYER全部完整的源代码
共131个文件
bmp:40个
h:19个
sbr:18个
3星 · 超过75%的资源 需积分: 10 90 下载量 94 浏览量
2008-11-05
11:34:40
上传
评论
收藏 2.35MB RAR 举报
温馨提示
wince5.0下MEDIA PLAYER全部完整的源代码
资源推荐
资源详情
资源评论
收起资源包目录
wince5.0下MEDIA PLAYER全部完整的源代码 (131个子文件)
ceplayer.aps 304KB
seek_bkg.bmp 3KB
seek_fore.bmp 3KB
thumb_dwn.bmp 2KB
play_disabled.bmp 2KB
thumb_up.bmp 2KB
pause_up.bmp 2KB
bitmap1.bmp 2KB
bmp00001.bmp 2KB
play_up.bmp 2KB
play_down.bmp 2KB
pause_down.bmp 2KB
error.bmp 2KB
playlistmb.bmp 2KB
vol_sldr_bkg.bmp 2KB
vol_sldr_fore.bmp 2KB
location.bmp 2KB
stop_up.bmp 2KB
stop_disabled.bmp 2KB
stop_down.bmp 2KB
slider_down.bmp 1KB
slider_up.bmp 1KB
forward_down.bmp 1KB
forward_up.bmp 1KB
next_disabled.bmp 1KB
FF_rewind_up.bmp 1KB
FF_rewind_disabled.bmp 1KB
prev_up.bmp 1KB
FF_rewind_down.bmp 1KB
next_down.bmp 1KB
next_up.bmp 1KB
prev_down.bmp 1KB
prev_disabled.bmp 1KB
forward_disabled.bmp 1KB
sound_down.bmp 1KB
sound_disabled.bmp 1KB
sound_up.bmp 1KB
mainmenu.bmp 886B
goweb.bmp 822B
playlist.bmp 780B
folders.bmp 374B
2008_3_5_CE50_DirectX_WMP_example_test.bsc 2.73MB
playerwindow.cpp 133KB
decibels.cpp 54KB
playlistdlg.cpp 52KB
propertydlg.cpp 47KB
mpcontainer.cpp 40KB
plist.cpp 32KB
playlistmgr.cpp 31KB
statisticsdlg.cpp 25KB
ceplayer.cpp 23KB
adddeletedlg.cpp 22KB
addtracksdlg.cpp 11KB
mpeventsink.cpp 10KB
openurldlg.cpp 8KB
optionsdlg.cpp 8KB
ceplayerutil.cpp 6KB
basedialog.cpp 3KB
selectplaylistdlg.cpp 3KB
aygshell_helper.cpp 2KB
2008_3_5_CE50_DirectX_WMP_example_test.exe 185KB
resource.h 9KB
playerwindow.h 7KB
mpcontainer.h 6KB
playlistmgr.h 6KB
mpeventsink.h 3KB
plist.h 3KB
statisticsdlg.h 3KB
propertydlg.h 2KB
playlistdlg.h 2KB
basedialog.h 2KB
adddeletedlg.h 2KB
openurldlg.h 2KB
addtracksdlg.h 2KB
ceplayerutil.h 1KB
decibels.h 1KB
selectplaylistdlg.h 1KB
newres.h 1KB
optionsdlg.h 1KB
aygshell_helper.h 1KB
audio.ico 10KB
video.ico 10KB
icon1.ico 10KB
makefile 662B
playerwindow.obj 69KB
mpcontainer.obj 32KB
propertydlg.obj 26KB
playlistmgr.obj 23KB
playlistdlg.obj 21KB
plist.obj 20KB
statisticsdlg.obj 14KB
ceplayer.obj 14KB
adddeletedlg.obj 12KB
addtracksdlg.obj 7KB
optionsdlg.obj 7KB
mpeventsink.obj 6KB
decibels.obj 5KB
ceplayerutil.obj 4KB
openurldlg.obj 4KB
aygshell_helper.obj 4KB
共 131 条
- 1
- 2
资源评论
- 晓灬佩恩2013-09-05编译不成功.
- pyw12092012-11-26挺好的小工具,学习了,谢谢了
猫大技师
- 粉丝: 29
- 资源: 10
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- IMG_2976.jpg
- cesiumVersionChanges1.117
- MI4953-VB一款SOP8封装2个P-Channel场效应MOS管
- MI4946-VB一款SOP8封装2个N-Channel场效应MOS管
- MI4904-VB一款SOP8封装2个N-Channel场效应MOS管
- 企业数字化转型顶层设计与企业架构TOGAF 9.2
- 01-basic-sample-20220716164705
- Serial Port Utility(1).zip
- MI4825-VB一款SOP8封装P-Channel场效应MOS管
- 基于Django实现配置管理系统 资产管理系统源码+在线演示+运行说明.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功