• 大小: 2.55MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-10-28
  • 语言: C/C++
  • 标签:

资源简介

mfc版音乐播放器 odbc access 数据库磁盘存储 vector 内部存储

资源截图

代码片段和文件信息

// ClientInfoView.cpp : 实现文件
//

#include “stdafx.h“
#include “TianceMusic.h“
#include “ClientInfoView.h“


// CClientInfoView

IMPLEMENT_DYNCREATE(CClientInfoView CFormView)

CClientInfoView::CClientInfoView()
: CFormView(CClientInfoView::IDD)
{
m_setRedSkin=100;
m_setGreenSkin=0;
m_setBlueSkin=100;


}

CClientInfoView::~CClientInfoView()
{
}

void CClientInfoView::DoDataExchange(CDataExchange* pDX)
{
CFormView::DoDataExchange(pDX);

DDX_Control(pDX IDC_LIST1 m_listmusic);
DDX_Control(pDX IDC_BTN_LASTMUSIC m_btn_lastMusic);
DDX_Control(pDX IDC_BTN_PLAY m_btn_playMusic);
DDX_Control(pDX IDC_BTN_NEXTMUSIC m_btn_nextMusic);
DDX_Control(pDX IDC_STATIC_VOLUME m_static_volume);
DDX_Control(pDX IDC_STATIC_STEP m_static_Step);
DDX_Control(pDX IDC_SLIDER_VOLUME m_Slider_SetVolume);
DDX_Control(pDX IDC_SLIDER_STEP m_Slider_Step);
DDX_Control(pDX IDC_STATIC_CONTROL m_static_control);
DDX_Control(pDX IDC_STATIC_SET m_static_set);
DDX_Control(pDX IDC_STATIC_SKIN m_Static_ChangeSkin);
DDX_Control(pDX IDC_STATIC_RED m_static_red);
DDX_Control(pDX IDC_STATIC_GREEN m_static_green);
DDX_Control(pDX IDC_STATIC_BLUE m_static_blue);
DDX_Control(pDX IDC_SCROLLBAR_RED m_ScrollBar_Red);
DDX_Control(pDX IDC_SCROLLBAR_GREEN m_ScrollBar_Green);
DDX_Control(pDX IDC_SCROLLBAR_BLUE m_ScrollBar_Blue);
}

BEGIN_MESSAGE_MAP(CClientInfoView CFormView)
ON_WM_SIZE()
ON_WM_PAINT()
ON_WM_CREATE()
ON_WM_HSCROLL()
 
ON_BN_CLICKED(IDC_BTN_PLAY &CClientInfoView::OnBnClickedBtnPlay)
ON_BN_CLICKED(IDC_BTN_LASTMUSIC &CClientInfoView::OnBnClickedBtnLastmusic)
ON_BN_CLICKED(IDC_BTN_NEXTMUSIC &CClientInfoView::OnBnClickedBtnNextmusic)
ON_NOTIFY(NM_CUSTOMDRAW IDC_SLIDER_VOLUME &CClientInfoView::OnNMCustomdrawSliderVolume)
ON_NOTIFY(NM_CUSTOMDRAW IDC_SLIDER_STEP &CClientInfoView::OnNMCustomdrawSliderStep)
ON_WM_TIMER()
END_MESSAGE_MAP()


// CClientInfoView 诊断

#ifdef _DEBUG
void CClientInfoView::AssertValid() const
{
CFormView::AssertValid();
}

#ifndef _WIN32_WCE
void CClientInfoView::Dump(CDumpContext& dc) const
{
CFormView::Dump(dc);
}
#endif
#endif //_DEBUG


// CClientInfoView 消息处理程序


void CClientInfoView::OnSize(UINT nType int cx int cy)
{
CFormView::OnSize(nType cx cy);
CRect rect;
GetClientRect(&rect); // 获取当前客户区view大小




// 将CScrollView的大小设置为当前客户区大小
CSize size;
size.cx = rect.right - rect.left;
size.cy = rect.bottom - rect.top;
SetScrollSizes(MM_HIMETRIC size); 



//设置列表控件的新位置
CRect rcListctrl;
rcListctrl.left=rect.left+10;
rcListctrl.right=rect.right-10;
rcListctrl.top=rect.top+10;
rcListctrl.bottom=rect.bottom*0.8;
if (m_listmusic)
{
m_listmusic.MoveWindow(&rcListctrl TRUE);
}

//设置三个按钮的新位置
CRect rcLast;
CRect rcPlay;
CRect rcNext;

rcLast.left=rect.left+10;
rcLast.top=rcListctrl.bottom+20;
rcLast.right=rcLast.left+60;
rcLast.bottom=rcLast.top+40;

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2013-10-06 14:46  TianceMusic\
     目录           0  2013-10-06 14:46  TianceMusic\DB\
     文件      253952  2013-10-06 14:25  TianceMusic\DB\TianceSong.mdb
     文件         309  2013-10-01 09:50  TianceMusic\DB\TianceSong.mdb.dsn
     目录           0  2013-10-06 14:46  TianceMusic\Debug\
     文件        9533  2009-09-09 20:54  TianceMusic\Debug\QQ2008.she
     文件       86528  2009-09-15 10:29  TianceMusic\Debug\SkinH.dll
     文件       20552  2009-09-09 20:54  TianceMusic\Debug\skinh.she
     文件       83456  2009-09-15 10:26  TianceMusic\Debug\SkinHu.dll
     文件     2377216  2013-10-06 14:21  TianceMusic\Debug\TianceMusic.exe
     目录           0  2013-10-06 14:46  TianceMusic\ImageRes\
     文件      112420  2013-10-01 16:47  TianceMusic\ImageRes\top.jpg
     目录           0  2013-10-06 14:46  TianceMusic\skinH\
     文件        8836  2009-09-09 21:04  TianceMusic\skinH\SkinH.h
     目录           0  2013-10-06 14:46  TianceMusic\skinLib\
     文件        6842  2009-09-09 20:13  TianceMusic\skinLib\SkinH.lib
     文件        6886  2009-09-09 20:54  TianceMusic\skinLib\SkinHu.lib
     目录           0  2013-10-06 14:47  TianceMusic\TianceMusic\
     文件         900  2013-09-30 14:42  TianceMusic\TianceMusic.sln
     文件       32256  2013-10-06 14:22  TianceMusic\TianceMusic.suo
     文件           1  2009-08-31 02:32  TianceMusic\TianceMusic\ClassDiagram1.cd
     文件       18600  2013-10-06 14:14  TianceMusic\TianceMusic\ClientInfoView.cpp
     文件        2023  2013-10-06 14:03  TianceMusic\TianceMusic\ClientInfoView.h
     文件        7928  2013-10-06 12:51  TianceMusic\TianceMusic\LeftInfoWndView.cpp
     文件        1900  2013-10-06 12:50  TianceMusic\TianceMusic\LeftInfoWndView.h
     文件        4281  2013-10-06 13:08  TianceMusic\TianceMusic\MainFrm.cpp
     文件        1135  2013-09-30 23:41  TianceMusic\TianceMusic\MainFrm.h
     文件         687  2013-10-01 17:48  TianceMusic\TianceMusic\MyAboutDlg.cpp
     文件         410  2013-10-01 17:48  TianceMusic\TianceMusic\MyAboutDlg.h
     文件        2188  2013-09-30 15:38  TianceMusic\TianceMusic\MySpliteWnd.cpp
     文件         941  2013-07-29 16:06  TianceMusic\TianceMusic\MySpliteWnd.h
............此处省略39个文件信息

评论

共有 条评论