freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內容

dvd仿真程序設計_面向對象程序課程設計說明書(更新版)

2024-09-10 10:28上一頁面

下一頁面
  

【正文】 de //}}AFX_INCLUDES if !defined(AFX_DLG1_H__15EEADF6_D4B1_469E_B24C_30872496AF0D__INCLUDED_) define AFX_DLG1_H__15EEADF6_D4B1_469E_B24C_30872496AF0D__INCLUDED_ if _MSC_VER 1000 pragma once endif // _MSC_VER 1000 // : header file // ///////////////////////////////////////////////////////////////////////////// // Dlg1 dialog class Dlg1 : public CDialog { // Construction public: Dlg1(CWnd* pParent = NULL)。 //int a=()。 } void CAaDlg::OnBUTTONDown() { // TODO: Add your control notification handler code here ()。 (nIndex,PathName)。*.ifo)|*.vob。pt)。 GetDlgItem(IDC_BUTTONJIeKou)SetWindowText(接口關 )。 (i)。 // CFileDialog fileDialog( TRUE,NULL,NULL,NULL,szFileFilter,this)。 ()。rect)。 ()。 if (!()) { pSysMenuAppendMenu(MF_SEPARATOR)。 (None)。 (BoxIcon)。 DDX_Control(pDX, IDC_BUTTOClose, m_Close)。 DDX_Control(pDX, IDC_BUTTONStop, m_Stop)。 //{{AFX_DATA_MAP(CAboutDlg) //}}AFX_DATA_MAP } BEGIN_MESSAGE_MAP(CAboutDlg, CDialog) //{{AFX_MSG_MAP(CAboutDlg) // No message handlers //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CAaDlg dialog CAaDlg::CAaDlg(CWnd* pParent /*=NULL*/) : CDialog(CAaDlg::IDD, pParent) { //{{AFX_DATA_INIT(CAaDlg) //}}AFX_DATA_INIT // Note that LoadIcon does not require a subsequent DestroyIcon in Win32 t=1。 afx_msg void OnDblclkList1()。 afx_msg void OnBUTTONVolSmall()。 // Generated message map functions //{{AFX_MSG(CAaDlg) virtual BOOL OnInitDialog()。 CWMPPlayer4 m_WMp。 CButton m_Forhead。 CButton m_Down1。這次設計使我進步很大,收獲頗豐。 解決辦法:沒有把 wmpcontrol 類的頭文件包含,加入頭文件即可。非模態(tài)對話框的建立需要 (IDD_DIALOG1,this)。在窗口的過程( WNDPROC)中可以對消息進行分析,對自己感興趣的消息進行處理。 afx_msg void OnButton2()。 virtual BOOL OnInitDialog()。 類 SmallPlayer 實現(xiàn)把 DVD 光碟的小窗口播放。 CWMPDVD m_dvd。 DECLARE_MESSAGE_MAP() }。 protected: afx_msg void OnButton1()。 CButton m_btn2。 DECLARE_MESSAGE_MAP() }。 afx_msg void OnBUTTONJIeKou()。 afx_msg void OnSysCommand(UINT nID, LPARAM lParam)。 CString str1。 CButton m_Close。 int t。 三.任務設計 1.類的劃分: ( 1)類 1: class CAaDlg : public CDialog { public: CAaDlg(CWnd* pParent = NULL)。 區(qū)域 1:可以點擊對應的菜單實現(xiàn)對應的音影的播放功能。點擊按鈕可以打開數(shù)據(jù)中心倉庫, 區(qū)域 1:可以點擊此按鈕打開光碟數(shù)據(jù)存儲倉庫,打開后的界面如下圖所示。還模擬了一個 DVD 的電源開關。此外模擬了一個接口按鈕,用于 DVD向顯示設備的數(shù)據(jù)輸入。③光碟數(shù)據(jù)的存儲區(qū)域模擬。 區(qū)域 5:點擊此按鈕可以查看播放器支持的文件格式。 4. 運行環(huán)境: 硬件: Windows7 操作系統(tǒng)平臺 軟件: Visual C++ 5.條件與限制:條件是由于播放 DVD 的文件解碼較苛刻,系統(tǒng)必須安裝有 DVD 格式的解碼器。 CButton m_Down1。 CButton m_Forhead。 CWMPPlayer4 m_WMp。 virtual BOOL OnInitDialog()。 afx_msg void OnBUTTONVolSmall()。 afx_msg void OnDblclkList1()。 CButton m_btn3。 // DDX/DDV support virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam)。 afx_msg void OnDblclkList1()。 CWMPControls m_control。 DECLARE_MESSAGE_MAP() }。 protected: afx_msg void OnButton1()。 DECLARE_MESSAGE_MAP() ( 3)類 3: protected: afx_msg void OnButton1()。一個消息必須由一個窗口接收。模態(tài)可以使用 Domal()函數(shù)實現(xiàn)。 CAaDlg 類 SmallPlayer 類 Dlg1 類 2. 類的構造順序:先構造類 CAaDlg ,然后構造類 Dlg1. 3. 錯誤描述及其解決辦法 ( 1)問題 1: 問題描述:點擊音量增加按鈕音量無法增加,代碼已經(jīng)添加。更使得我對于對面向對象的封裝,繼承以及多態(tài)性等特點以及優(yōu)點理 解,也讓自己對微軟 MFC 編程有了一定的認識,通過封裝類我們把想要現(xiàn)的功能封裝起來,通過繼承我們可以對已有類進行擴充,通過多態(tài)性我可以讓不同對象面對同一消息有各自的響應。 CButton m_Stop。 CButton m_JieKou。 CWMPMedia m_media。 //}}AFX_VIRTUAL // Implementation protected: HICON m_hIcon。 afx_msg void OnBUTTONVolBig()。 afx_msg void OnOpen()。 CAboutDlg::CAboutDlg() : CDialog(CAboutDlg::IDD) { //{{AFX_DATA_INIT(CAboutDlg) //}}AFX_DATA_INIT } void CAboutDlg::DoDataExchange(CDataExchange* pDX) { CDialog::DoDataExchange(pDX)。 DDX_Control(pDX, IDC_BUTTONUP, m_Up)。 DDX_Control(pDX, IDC_BUTTONForhead, m_Forhead)。 SetIcon(DVDIcon,TRUE)。 m_wmpDVD=()。 (IDS_ABOUTBOX)。 0xFFF0) == IDM_ABOUTBOX) { CAboutDlg dlgAbout。 GetClientRect(amp。 GetDlgItem(IDC_BUTTOClose)SetWindowText(電源開 )。*.rmi| // Wma File(*.wma)|*.wma| // All File(*.*)|*.*||。 i++。 } else { t=1。 ::GetCursorPos(amp。 char szFileFilter[]= DVD 光碟 (*.vob。 int nIndex = ()。 } return CDialog::OnCommand(wParam, lParam)。 int select。 //SetDlgItemText(IDC_EDIT1,tr)。 CButton m_btn1。 virtual BOOL OnInitDialog()。 //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. endif // !defined(AFX_DLG1_H__15EEADF6_D4B1_469E_B24C_30872496AF0D__INCLUDED_) 文件 // : implementation file // include include include ifdef _DEBUG define new DEBUG_NEW undef THIS_FILE static char THIS_FILE[] = __FILE__。 DDX_Control(pDX, IDC_BUTTON1, m_btn1)。 SetIcon(DVDIcon,TRUE)。 (SW_SHOW)。 } void Dlg1::OnButton5() { // TODO: Add your control notification handler code here CString str3(所支持的非格式: mp3,wma, Avi, MP4,mpeg,asf,dat,mpga,wav,mov,mid,rmi)。r1)。r5)。Rt1,pt)) { (IDR_MENU1)。 } } } // TODO: 在此添加專用代碼和 /或調用基類 if (pMsgmessage==WM_RBUTTONDOWN) { if (PtInRect(amp。 pPopupTrackPopupMenu(TPM_LEFTALIGN | TPM_RIGHTBUTTON, , ,this)。//因為 point 的位置是從屏幕的左上角為起點開始計算的,要想讓菜單在正確的位置顯示就要使用這個 ClientToScreen 函數(shù)將屏幕菜單轉化成為正確的 view 坐標。 char szFileFilter[]= Mp3 File(*.mp3)|*.mp3| MPEG File(*.mpeg)|*.mpeg| Media File(*.asf)|*.asf| Video File(*.dat)|*.dat| MPGA File(*.mpga)|*.mpga| Wave File(*.wav)|*.wav| AVI File(*.avi)|*.avi| Movie File(*.mov)|*.mov| Mid File(*.mid。pt)。 } } if (uMsg==ID_MENUITEM32772) { int nIndex=()。r2,pt)) { (((CAaApp *)AfxGetApp())str2)。 } if (uMsg==ID_MENUITEM32776) { CFileDialog dlg(TRUE,NULL,NULL,OFN_HIDEREADONLY,szFileFilter)。*.rmi)|*.m
點擊復制文檔內容
研究報告相關推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1