资源简介

基于 Windows Media Play 开发的视频播放器以及完整源代码

资源截图

代码片段和文件信息

// AboutDlg.cpp : implementation file
//

#include “stdafx.h“
#include “VideoPlayer.h“
#include “AboutDlg.h“

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

CAboutDlg::CAboutDlg() : CDialog(CAboutDlg::IDD)
{
//{{AFX_DATA_INIT(CAboutDlg)
//}}AFX_DATA_INIT
}

void CAboutDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CAboutDlg)
//}}AFX_DATA_MAP
}

BEGIN_MESSAGE_MAP(CAboutDlg CDialog)
//{{AFX_MSG_MAP(CAboutDlg)
ON_WM_LBUTTONDOWN()
ON_WM_SETCURSOR()
ON_WM_CTLCOLOR()
ON_BN_CLICKED(IDS_MAIL OnMail)
ON_BN_CLICKED(IDS_HTTP OnHttp)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()

void CAboutDlg::OnMail() 
{
ShellExecute(0 NULL “mailto:softown@softown.com?subject=%C4%E3%BA%C3“ NULLNULL SW_NORMAL);
}

void CAboutDlg::OnHttp() 
{
ShellExecute(0 NULL “http://www.softown.com“ NULLNULL SW_NORMAL);
}

void CAboutDlg::OnLButtonDown(UINT nFlags CPoint point) 
{
// TODO: Add your message handler code here and/or call default
OnOK();

CDialog::OnLButtonDown(nFlags point);
}
HBRUSH CAboutDlg::OnCtlColor(CDC* pDC CWnd* pWnd UINT nCtlColor) 
{
HBRUSH hbr = CDialog::OnCtlColor(pDC pWnd nCtlColor);

// TODO: Change any attributes of the DC here
if(nCtlColor==CTLCOLOR_STATIC) // 静态控件
{
int nID=pWnd->GetDlgCtrlID();
if(nID==IDS_MAIL || nID==IDS_HTTP)
{
pDC->SetTextColor(RGB(00255));
pDC->SetBkMode(TRANSPARENT);
}
}
// TODO: Return a different brush if the default is not desired
return hbr;
}

BOOL CAboutDlg::OnSetCursor(CWnd* pWnd UINT nHitTest UINT message) 
{
#define IDC_HAND MAKEINTRESOURCE(32649)
HCURSOR hCurHand = AfxGetApp()->LoadStandardCursor(IDC_HAND);
if(!hCurHand) hCurHand = AfxGetApp()->LoadStandardCursor(IDC_ARROW);

switch(pWnd->GetDlgCtrlID())
{
case IDS_MAIL:
case IDS_HTTP:
SetCursor(hCurHand); 
return TRUE;
    }

return CDialog::OnSetCursor(pWnd nHitTest message);
}

/////////////////////////////////////////////////////////////////////////////
// CAboutDlg message handlers

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2012-12-03 12:18  VideoPlayer\
     文件        2148  2007-07-24 13:35  VideoPlayer\AboutDlg.cpp
     文件        1370  2004-08-04 21:05  VideoPlayer\AboutDlg.h
     文件       13696  2004-02-25 21:39  VideoPlayer\activemovie.cpp
     文件        4296  2004-02-25 21:39  VideoPlayer\activemovie.h
     文件        1773  2004-02-26 17:36  VideoPlayer\BalanceDlg.cpp
     文件        1421  2004-02-26 08:55  VideoPlayer\BalanceDlg.h
     文件        3669  2004-02-25 21:16  VideoPlayer\ReadMe.txt
     目录           0  2012-12-03 12:18  VideoPlayer\res\
     文件        2238  2004-05-14 08:32  VideoPlayer\res\VideoPlayer.ico
     文件         403  2004-02-25 21:16  VideoPlayer\res\VideoPlayer.rc2
     文件        1663  2007-07-19 17:06  VideoPlayer\RESOURCE.H
     文件         213  2004-02-25 21:16  VideoPlayer\StdAfx.cpp
     文件        1054  2004-02-25 21:16  VideoPlayer\StdAfx.h
     文件        2133  2004-02-25 21:16  VideoPlayer\VideoPlayer.cpp
     文件        5219  2004-05-08 16:25  VideoPlayer\VideoPlayer.dsp
     文件         589  2004-02-25 21:41  VideoPlayer\VideoPlayer.dsw
     文件        1379  2004-02-25 21:16  VideoPlayer\VideoPlayer.h
     文件        7764  2007-07-24 13:35  VideoPlayer\VideoPlayer.rc
     文件        7208  2008-05-21 23:23  VideoPlayer\VideoPlayerDlg.cpp
     文件        2278  2004-03-04 16:06  VideoPlayer\VideoPlayerDlg.h
     文件        1690  2004-03-02 14:48  VideoPlayer\VolumeDlg.cpp
     文件        1412  2004-02-26 08:54  VideoPlayer\VolumeDlg.h
     目录           0  2018-09-05 08:48  VideoPlayer\bin\
     文件       32768  2005-12-23 14:24  VideoPlayer\bin\视频播放器(VideoPlayer) v1.00.exe

评论

共有 条评论