随笔 - 46  文章 - 39  trackbacks - 0
<2009年3月>
22232425262728
1234567
891011121314
15161718192021
22232425262728
2930311234

常用链接

留言簿(2)

随笔分类

随笔档案

友情链接

搜索

  •  

最新评论

阅读排行榜

评论排行榜

1、打开一个音乐文件

HWND MCIWndCreate(
  HWND hwndParent,                                                              //父窗口句柄  GetSafeHwnd();                        
  HINSTANCE hInstance,                                                        //与MCIWnd窗口关联的模块实例句柄  AfxGetInstanceHandle()
  DWORD dwStyle,                                                                   //WS_CHILD | MCIWNDF_NOMENU
  LPSTR szFile                                                                          //音乐文件路径 
);


成功:返回MCI窗口句柄。
失败:返加0。

要求:

  Windows NT/2000/XP: Included in Windows NT 3.1 and later.
  Windows 95/98/Me: Included in Windows 95 and later.
  Header: Declared in Vfw.h.
  Library: Use Vfw32.lib.
  Unicode: Implemented as Unicode and ANSI versions on Windows NT/2000/XP.




LONG MCIWndPlay( hwnd  );       //播放
LONG MCIWndPause( hwnd );     //暂停

LONG MCIWndSetVolume(
hwnd,
iVol                          //  New volume level. Specify 1000 for normal volume level. Specify a higher value for a louder volume or a lower value for a quieter volume.
);                                                    //音量设置

LONG MCIWndResume(  hwnd  );          //从暂停恢复播放

LONG MCIWndStop(  hwnd  );              //停止播放
posted on 2009-03-02 10:14 canaan 阅读(1228) 评论(0)  编辑 收藏 引用 所属分类: MSDN

只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理