Description: 1. 创建基于对话框的程序
2. 在对话框添加Windows Media Player控件
3. 在对话框中为该控件添加一个控件型类变量CMp m_ctrlMPlayer 它负责传递媒体文件到播放器, 如: m_ctrlMPlayer.put_URL(dlg.GetPathName())
4. 为按钮添加事件响应函数, 在函数中打开音频文件, 并调用函数put_URL()把媒体文件传到播放器中播放
-1. To create the procedures based on the dialog box 2. In the dialog box to add Windows Media Player control 3. In the dialog box for the control to add a control variable types CMp m_ctrlMPlayer it is responsible for transmission of media files to the player, such as: m_ctrlMPlayer.put_URL ( dlg.GetPathName ()) 4. for the button to add the incident response functions, in function to open an audio file and call functions put_URL () reached the media files player Platform: |
Size: 28672 |
Author:潘芝茂 |
Hits:
Description: 文件——》新建——》项目,选择MFC应用程序——》名称为player——》确定。
点击应用程序类型——》基于对话框——》完成。
在DIALOG中右击——》插入ACTIVEX控件——》选Windows Media Player ,添加了Windows Media Player 控件ID为IDC_OCX1。
对Windows Media Player控件右击——》添加变量——》变量名为m_wmplayer——》完成。
拉二个按钮到DIALOG中“打开”和“暂停”,双击“打开”输入以下代码:
-Paper- " New-" item, choose MFC applications- " known as the player-" determined. Click on application type- " based on the dialog box-" to complete. Right-click in the DIALOG- " ACTIVEX control insert-" choose Windows Media Player, added the Windows Media Player control ID for IDC_OCX1. Windows Media Player control on the right-click- " add variable-" variable named m_wmplayer- " completed. DIALOG two buttons to pull of " open" and " suspended" , double-click " Open" , enter the following code: Platform: |
Size: 159744 |
Author:陈冉 |
Hits:
Description: 一直以来,Windows应用程序是基于GDI/User 窗口结构的,而这个结构限制了不少地方。当你尝试使用这个内建的控件集,然后简单迅速地得到了一个非常非常漂亮的应用程序的之后,你就会理解这个限制。
一个无窗体的用户界面并不使用原始的Win32控件。取而代之的是,给屏幕上的每个控件定制图像显示:包括标签、按钮、列表框等等。使用这一种接口以及不是最新的了:大部分很酷的程序都开始“皮肤”,比如WinAmp和MS Media Player。不过skinning只适合一些小的应用程序,它们拥有很少的对话框。如果你正在做一个数据库驱动的程序,你需要一个固定的框架.-All along, Windows applications are based on GDI/User window structure, and this structure limits in many areas. When you try to use the built-in control set, and then simply and rapidly got a very, very nice application, you ll understand this limit.
A free form user interface does not use the original Win32 controls. Instead, to customize the on-screen image display for each control: including labels, buttons, list boxes and so on. Use this kind of interface and not up to date: the majority of programs have begun to cool "skin" such as WinAmp, and MS Media Player. But skinning is only suitable for small applications, they have very little dialog box. If you re doing a database-driven program, you need a fixed framework. Platform: |
Size: 222208 |
Author:邱鹏 |
Hits:
Description: 平台:tq2440+wince5.0+VS2005(MFC编写)+Directx 9.0B
在wince上一个简单的视频播放器,有播放界面、菜单、播放列表、按钮、滑块,基于对话框,能够大小化、控制播放列表-Platform: tq2440+ wince5.0+ VS2005 (MFC write)+ Directx 9.0B in wince on a simple video player, a player interface, menus, play lists, buttons, sliders, based on the dialog box that size, control Playlists Platform: |
Size: 6952960 |
Author: |
Hits:
Description: 基于MFC对话框中,利用微软提供的空间Media plyer实现音频播放盒对制定格式视频的播放,这比较适合对初学者的学习,代码不复杂,先添加到列表,再双击就可以实现播放-MFC dialog-based, using Microsoft Media plyer space provided for the development of audio player box format video playback, which is more suitable for beginners to learn, the code is not complicated, first added to the list, and then double-click the playback can be achieved Platform: |
Size: 2044928 |
Author:苏青源 |
Hits: