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

正文內(nèi)容

多媒體編程基礎(chǔ)課程綜合作業(yè)說明書-資料下載頁

2025-06-22 03:40本頁面
  

【正文】 ndex,strfilename)。 SetDlgItemText(IDC_filename,strfilename)。 ()。 (thism_hWnd,strfilename)。 ()。 SetTimer(0,1000,NULL)。}給“上一首”按鈕添加單擊響應(yīng)void MUSIC::Onlast() { // TODO: Add your control notification handler code here CString str_1。 int index1 = () 1。 if ( index1 0 ) { index1 = () 1。 } (index1, str_1)。 CString strfilename。 (index1,strfilename)。 SetDlgItemText(IDC_filename,strfilename)。 ()。 (thism_hWnd,strfilename)。 ()。 SetTimer(0,1000,NULL)。 (index1)。//自動置光標(biāo)}給“上一首”按鈕添加單擊響應(yīng)void MUSIC::Onnext() { // TODO: Add your control notification handler code here CString str_1。 int index1 = () + 1。 if ( index1 = ()) { index1 = 0 。 } (index1, str_1)。 CString strfilename。 (index1,strfilename)。 SetDlgItemText(IDC_filename,strfilename)。 ()。 (thism_hWnd,strfilename)。 ()。 SetTimer(0,1000,NULL)。 (index1)。//自動置光標(biāo)}插入背景圖片和開頭步驟一樣,這里不再介紹將靜態(tài)文本區(qū)域改為鑲嵌到背景圖片中去:添加MUSIC的WM_CTLCOLOR響應(yīng):HBRUSH MUSIC::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 ) { pDCSetBkMode(TRANSPARENT)。//設(shè)置背景透明 pDCSetTextColor(RGB(0,0,255))。//設(shè)置字體為黃色 return (HBRUSH)::GetStockObject(NULL_BRUSH)。 } // TODO: Return a different brush if the default is not desired return hbr。}(5)音頻播放:音頻播放設(shè)計框架圖音頻播放界面 打開刪除列表刪除選中享快進(jìn)快退下一首上一首播放暫停停止隨機(jī)播放單曲循環(huán)順序播放設(shè)計如下:控件名稱ID打開IDC_OPEN播放IDC_play暫停IDC_stop停止IDC_stop快進(jìn)IDC_ahead快退IDC_backIDC_lastIDC_next順序播放IDC_shunxu隨機(jī)播放IDC_suji循環(huán)播放IDC_xunhuan列表IDC_LIST1刪除選中項IDC_delchoosed刪除列表dellist退出IDC_exit在建立好工程之后,首先是Windows Media Player控件的添加:建立空白對話框之后,在對話框的空白處單擊鼠標(biāo)右鍵,選擇Insert ActiveX Control菜單項。選擇Windows Media Player控件,之后你會看見資源列表會多出很多的類給IDC_OCX添加變量m_Player:其中最主要的類為Cwmpplayer4,Cwmpcontrols,Cwmpmedia,Cwmpplaylist,Cwmpsettings五大類。Cwmpplayer4類主要是關(guān)于對其他類的對象的調(diào)用以及基本的控件功能的實現(xiàn),提供了與Windows Media Player控件進(jìn)行交互的基本方法,其中部分成員函數(shù)還能夠進(jìn)一步獲取得到其他相關(guān)類對象的實例;Cwmpcontrols類主要是對控件的更多的操作;Cwmpmedia類主要是對于媒體文件資源的一些操作;Cwmpplaylist類主要是關(guān)于播放列表的操作;Cwmpsettings類主要是對于媒體文件中的一些基本設(shè)置的操作。include include include 添加變量:給按鈕“打開”添加單擊響應(yīng):void MOVIE::OnOpen() { // TODO: Add your control notification handler code here char szFileFilter[]= All File(*.*)|*.*| AVI File(*.avi)|*.avi| Mp3 File(*.mp3)|*.mp3| MPEG File(*.mpeg)|*.mpeg| Media File(*.asf)|*.asf| Video File(*.dat)|*.dat| MPGA File(*.mpga)|*.mpga| Wave File(*.wav)|*.wav| Movie File(*.mov)|*.mov| Mid File(*.mid。*,rmi)|*.mid。*.rmi| Wma File(*.wma)|*.wma| Rmvb File(*.rmvb)|*.rmvb| All File(*.*)|*.*||。 //可選的文件類型 CFileDialog dlg(true,NULL,NULL,OFN_HIDEREADONLY|OFN_ALLOWMULTISELECT|OFN_NOCHANGEDIR,szFileFilter)。//OFN_ALLOWMULTISELECT是允許選擇多個文件 OFN_NOCHANGEDIR是不改變當(dāng)前目錄 POSITION pos=()。 if(()==IDOK) { while(pos!=NULL) { m_pathname=(pos)。//得到完整的文件名,包括目錄名和擴(kuò)展名 (m_pathname)。//增加到播放列表 } }}給列表添加單擊響應(yīng):void MOVIE::OnDblclkList1() { // TODO: Add your control notification handler code here CString str。 int index=()。//獲取選擇的行數(shù) (index,str)。 (str)。//播放 m_pathname=str。 SetTimer(1,1000,NULL)。 }給按鈕“播放”添加單擊響應(yīng):void MOVIE::Onplay() { // TODO: Add your control notification handler code here int index=()。 if(index==1) { MessageBox(請?zhí)砑右魳坊蛞曨l)。 return。 } ()。 (0)。//選擇第一行 ((),m_pathname)。 ((CButton *)GetDlgItem(IDC_shunxu))SetCheck(true)。 }給按鈕“暫?!碧砑訂螕繇憫?yīng):void MOVIE::Onpause() { // TODO: Add your control notification handler code here //()。 CString strtemp。 GetDlgItemText(IDC_pause,strtemp)。//獲取按鈕狀態(tài) int index=()。 if(index==1) { MessageBox(請?zhí)砑右魳坊蛞曨l)。 return。 } if ((暫停)==0) { ()。 SetDlgItemText(IDC_pause,繼續(xù))。 } if ((繼續(xù))==0) { ()。 SetDlgItemText(IDC_pause,暫停)。 }}給按鈕“停止”添加單擊響應(yīng):void MOVIE::Onstop() { // TODO: Add your control notification handler code here ()。 KillTimer(1)。}給按鈕“快進(jìn)”添加單擊響應(yīng):void MOVIE::Onahead() { // TODO: Add your control notification handler code here ()。}給按鈕“后退”添加單擊響應(yīng):void MOVIE::Onback() { // TODO: Add your control notification handler code here ()。}給按鈕“”添加單擊響應(yīng):void MOVIE::Onlast() { // TODO: Add your control notification handler code here //()。 CString str_1。 int index1 = () 1。 if ( index1 0 ) { index1 = () 1。 } (index1, str_1)。 (str_1)。 (index1)。//自動置光標(biāo)}給按鈕“”添加單擊響應(yīng):void MOVIE::Onnext() { // TODO: Add your control notification handler code here// ()。 CString str_1。 int index1 = () + 1。 if ( index1 = ()) { index1 = 0 。 } (index1, str_1)。 (str_1)。 (index1)。//自動置光標(biāo)}循環(huán)模式要用到定時器添加OnTimer響應(yīng)并添加代碼:void MOVIE::OnTimer(UINT nIDEvent) { // TODO: Add your message handler code here and/or call default int index=()。//獲取播放狀態(tài) if(index==1)//如果播放完成{if(((CButton *)GetDlgItem(IDC_shunxu))GetCheck())//如果是順序播放{ CString str。 int index=()+1。 if(index=()) index=0。//如果播放完最后一曲就自動播放第一首 (index,str)。 (str)。 (index)。//自動置光標(biāo)}//這樣就實現(xiàn)了順序播放if(((CButton *)GetDlgItem(IDC_suiji))GetCheck())//隨機(jī)播放{ srand(time(0))。//目的在于每次都能產(chǎn)生不同的隨機(jī)數(shù)序列 (rand()%())。 //()1的任意一個數(shù)即隨即選擇m_list里的文件 ((),m_pathname)。 (m_pathname)。}if(((CButton *)GetDlgItem(IDC_xunhuan))GetCheck())//單曲循環(huán){ ((),m_pathname)。 (m_pathname)。}} CDialog::OnTimer(nIDEvent)。}設(shè)順序循環(huán)為默認(rèn)模式,在OnInitDialog()添加如下代碼:BOOL MOVIE::OnInitDialog() { CDialog::OnInitDialog()。 // TODO: Add extra initialization here m_control=static_castCWMPControls(())。 CheckRadioButton(IDC_shunxu,IDC_suij
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1