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

正文內(nèi)容

dvd仿真程序設(shè)計(jì)_面向?qū)ο蟪绦蛘n程設(shè)計(jì)說明書-文庫吧

2025-06-16 10:28 本頁面


【正文】 id OnButton2()。 virtual BOOL OnInitDialog()。 DECLARE_MESSAGE_MAP() }。 類 SmallPlayer 實(shí)現(xiàn)把 DVD 光碟的小窗口播放。 2.類的接口設(shè)計(jì): ( 1)類 1: public: virtual BOOL PreTranslateMessage(MSG* pMsg)。 protected: virtual void DoDataExchange(CDataExchange* pDX)。 // DDX/DDV support virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam)。 ( 2) 類 2: public: virtual BOOL PreTranslateMessage(MSG* pMsg)。 protected: virtual void DoDataExchange(CDataExchange* pDX)。 // DDX/DDV support virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam)。 protected: afx_msg void OnButton1()。 virtual BOOL OnInitDialog()。 afx_msg void OnButton3()。 afx_msg void OnButton2()。 afx_msg void OnButton5()。 afx_msg void OnButton4()。 afx_msg void OnSelchangeList1()。 afx_msg void OnDblclkList1()。 DECLARE_MESSAGE_MAP() ( 3)類 3: protected: afx_msg void OnButton1()。 afx_msg void OnButton2()。 virtual BOOL OnInitDialog()。 DECLARE_MESSAGE_MAP() 說明 protected 是 windows 機(jī)制的消息函數(shù)。 Windows 消息機(jī)制 Windows 系統(tǒng)是一個(gè)消息驅(qū)動(dòng)的 OS,一個(gè)消息由一個(gè)消息名稱( UINT),和兩個(gè)參數(shù)( WPARAM, LPARAM)。當(dāng)用戶進(jìn)行了輸入或是窗口的狀態(tài)發(fā)生改變時(shí)系統(tǒng)都會(huì)發(fā)送消息到某一 個(gè)窗口。例如當(dāng)菜單轉(zhuǎn)中之后會(huì)有 WM_COMMAND 消息發(fā)送, WPARAM 的高字中( HIWORD(wParam))是命令的 ID 號(hào),對(duì)菜單來講就是菜單 ID。當(dāng)然用戶也可以定義自己的消息名稱,也可以利用自定義消息來發(fā)送通知和傳送數(shù)據(jù)。一個(gè)消息必須由一個(gè)窗口接收。在窗口的過程( WNDPROC)中可以對(duì)消息進(jìn)行分析,對(duì)自己感興趣的消息進(jìn)行處理。例如你希望對(duì)菜單選擇進(jìn)行處理那么你可以定義對(duì)WM_COMMAND 進(jìn)行 處理的代碼,如果希望在窗口中進(jìn)行圖形輸出就必須對(duì) WM_PAINT進(jìn)行處理。 也相當(dāng)于與用戶交互的接口。 3. 類 之間的關(guān)系: 類 CAboutDlg、類 SmallPlayer 、 類 Dlg 類 CAaDlg ,都是繼承自 CDialog 類。 類CAaDlg 和 類 Dlg1 是包含關(guān)系,類 Dlg1 和類 SmallPlayer 也是包含關(guān)系 CDialog 類 四.編寫代碼 1.問題 1 ( 1)問題描述: 點(diǎn)擊按鈕新的窗體無法彈出。 ( 2)解決辦法: 新的窗體類沒有加到父窗體的頭文件中 。且關(guān)于模態(tài)對(duì)話框與非模態(tài)對(duì)話框的顯示機(jī)制不同。模態(tài)可以使用 Domal()函數(shù)實(shí)現(xiàn)。非模態(tài)對(duì)話框的建立需要 (IDD_DIALOG1,this)。即類創(chuàng)建顯示的窗體 UI; (SW_SHOW)。然后顯示窗體。這樣才完成一個(gè)非模態(tài)對(duì)話框的建立。問題得以解決。 2.問題 2 ( 1)問題描述: 播放文件時(shí),列表中選中的文件播放的是列表中其他的文件 ( 2)解決辦法:使用 ()設(shè)置列表索引號(hào),這樣索引順序正確,問題得到解決。 五.運(yùn)行結(jié)果與分析 1.程序運(yùn)行的過程:程序先執(zhí)行主對(duì)話框,當(dāng)用戶點(diǎn)擊代開 DVD 數(shù)據(jù)按鈕程序響應(yīng) windows 消息映射,通過 windows 機(jī)制在內(nèi)存中建立新的類 dlg1,此類是主窗體中包含的成員函數(shù)。 CAaDlg 類 SmallPlayer 類 Dlg1 類 2. 類的構(gòu)造順序:先構(gòu)造類 CAaDlg ,然后構(gòu)造類 Dlg1. 3. 錯(cuò)誤描述及其解決辦法 ( 1)問題 1: 問題描述:點(diǎn)擊音量增加按鈕音量無法增加,代碼已經(jīng)添加。 解決辦法:沒有把 wmpcontrol 類的頭文件包含,加入頭文件即可。 ( 2)問題 2 問題描述:點(diǎn)擊 list 區(qū)域鼠標(biāo)點(diǎn)擊的位置 和右鍵菜單出現(xiàn)的位置有距離差; 解決辦法:在 ClientToScreen(amp。pt)這一句不需要把坐標(biāo)轉(zhuǎn)換成客戶區(qū)域坐標(biāo)。 ……………………………………… 六、 感想認(rèn)識(shí) 這次課程設(shè)計(jì)對(duì)于面向?qū)ο蟮乃枷胗猩羁痰捏w會(huì)。這次課程設(shè)計(jì)無論是我需找 DVD 格式文件的創(chuàng)建刻錄,等等功能,自己沒有接觸過剛開始一頭霧水自己的想法不好實(shí)現(xiàn)。通過網(wǎng)絡(luò)的搜索需找,得到解決的途徑。,這樣不僅培養(yǎng)了遇到問題的思考方法,而且更培養(yǎng)了我編程中分析問題,解決問題的方法途徑等等。更使得我對(duì)于對(duì)面向?qū)ο蟮姆庋b,繼承以及多態(tài)性等特點(diǎn)以及優(yōu)點(diǎn)理 解,也讓自己對(duì)微軟 MFC 編程有了一定的認(rèn)識(shí),通過封裝類我們把想要現(xiàn)的功能封裝起來,通過繼承我們可以對(duì)已有類進(jìn)行擴(kuò)充,通過多態(tài)性我可以讓不同對(duì)象面對(duì)同一消息有各自的響應(yīng)。這次設(shè)計(jì)使我進(jìn)步很大,收獲頗豐。 七.程序代碼 文件 include include include include include include include include //}}AFX_INCLUDES if !defined(AFX_AADLG_H__C8019617_E9EB_4714_B667_009BB531DE6E__INCLUDED_) define AFX_AADLG_H__C8019617_E9EB_4714_B667_009BB531DE6E__INCLUDED_ if _MSC_VER 1000 pragma once endif // _MSC_VER 1000 ///////////////////////////////////////////////////////////////////////////// // CAaDlg dialog class CAaDlg : public CDialog { // Construction public: CAaDlg(CWnd* pParent = NULL)。 // standard constructor // Dialog Data //{{AFX_DATA(CAaDlg) enum { IDD = IDD_AA_DIALOG }。 CListBox m_list。 CButton m_Open。 CButton m_Play。 CButton m_Up。 CButton m_Stop。 CButton m_Down1。 int t。 bool t1。 CButton m_Slow。 CButton m_VolSmall。 CButton m_VolBig。 CButton m_Menu。 CButton m_JieKou。 CButton m_Forhead。 CButton m_Close。 CWMPPlayer4 m_WMPlayer。 CWMPControls m_Control。 CWMPDVD m_wmpDVD。 CWMPSettings m_set。 CWMPPlaylist m_playlist。 CWMPMedia m_media。 CWMPPlayer4 m_WMp。 CString str1。 Dlg1 dlg1。 int k。 //}}AFX_DATA // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CAaDlg) public: virtual BOOL PreTranslateMessage(MSG* pMsg)。 protected: virtual void DoDataExchange(CDataExchange* pDX)。 // DDX/DDV support virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam)。 //}}AFX_VIRTUAL // Implementation protected: HICON m_hIcon。 // Generated message map functions //{{AFX_MSG(CAaDlg) virtual BOOL OnInitDialog()。 afx_msg void OnSysCommand(UINT nID, LPARAM lParam)。 afx_msg void OnPaint()。 afx_msg HCURSOR OnQueryDragIcon()。 afx_msg void OnBUTTOClose()。 afx_msg void OnBUTTONForhead()。 afx_msg void OnBUTTOSlow()。 afx_msg void OnBUTTONVolBig()。 afx_msg void OnBUTTONVolSmall()。 afx_msg void OnBUTTONJIeKou()。 afx_msg void OnBUTTONDown()。 afx_msg void OnBUTTOPlay()。 afx_msg void OnBUTTONStop()。 afx_msg void OnButtonup()。 afx_msg void OnBUTTONMenu()。 afx_msg void OnOpen()。 afx_msg void OnDblclkList1()。 //}}AFX_MSG DECLARE_MESSAGE_MAP() }。 文件 include include include ifdef _DEBUG define new DEBUG_NEW undef THIS_FILE static char THIS_FILE[] = __FILE__。 endif ///////////////////////////////////////////////////////////////////////////// // CAboutDlg dialog used for App About class CAboutDlg : public CDialog { public: CAboutDlg()。 // Dialog Data //{{AFX_DATA(CAboutDlg) enum { IDD = IDD_ABOUTBOX }。 //}}AFX_DATA // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CAboutDlg) protected: virtual void DoDataExchange(CDataExchange* pDX)。 // DDX/DDV support //}}AFX_VIRTUAL // Implementation protected: //{{AFX_MSG(CAboutDlg) //}}AFX_MSG DECLARE_MESSAGE_MAP() }。 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) //
點(diǎn)擊復(fù)制文檔內(nèi)容
研究報(bào)告相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1