資源簡介
MPC-HC播放器一個經(jīng)典的影音播放器,可播放CD、VCD、DVD、及MP3、MP4、AVI、AAC等多種影音格式。與此同時,它還是開源的。很多知名的視頻播放器都是在它的基礎(chǔ)上建立起來的,在這里就不例舉了。
代碼片段和文件信息
/*
?*?(C)?2003-2006?Gabest
?*?(C)?2006-2013?see?Authors.txt
?*
?*?This?file?is?part?of?MPC-HC.
?*
?*?MPC-HC?is?free?software;?you?can?redistribute?it?and/or?modify
?*?it?under?the?terms?of?the?GNU?General?Public?License?as?published?by
?*?the?Free?Software?Foundation;?either?version?3?of?the?License?or
?*?(at?your?option)?any?later?version.
?*
?*?MPC-HC?is?distributed?in?the?hope?that?it?will?be?useful
?*?but?WITHOUT?ANY?WARRANTY;?without?even?the?implied?warranty?of
?*?MERCHANTABILITY?or?FITNESS?FOR?A?PARTICULAR?PURPOSE.??See?the
?*?GNU?General?Public?License?for?more?details.
?*
?*?You?should?have?received?a?copy?of?the?GNU?General?Public?License
?*?along?with?this?program.??If?not?see? .
?*
?*/
//?CmdUI.cpp?:?implementation?file
//
#include?“stdafx.h“
#include?
#include?“CmdUI.h“
//?CCmdUIDialog?dialog
IMPLEMENT_DYNAMIC(CCmdUIDialog?CDialog)
CCmdUIDialog::CCmdUIDialog()
{
}
CCmdUIDialog::CCmdUIDialog(UINT?nIDTemplate?CWnd*?pParent?/*=nullptr*/)
????:?CDialog(nIDTemplate?pParent)
{
}
CCmdUIDialog::CCmdUIDialog(LPCTSTR?lpszTemplateName?CWnd*?pParentWnd)
????:?CDialog(lpszTemplateName?pParentWnd)
{
}
CCmdUIDialog::~CCmdUIDialog()
{
}
LRESULT?CCmdUIDialog::DefWindowProc(UINT?message?WPARAM?wParam?LPARAM?lParam)
{
????LRESULT?ret?=?__super::DefWindowProc(message?wParam?lParam);
????if?(message?==?WM_INITDIALOG)?{
????????SendMessage(WM_KICKIDLE);
????}
????return?ret;
}
BEGIN_MESSAGE_MAP(CCmdUIDialog?CDialog)
????ON_MESSAGE_VOID(WM_KICKIDLE?OnKickIdle)
????ON_WM_INITMENUPOPUP()
END_MESSAGE_MAP()
//?CCmdUIDialog?message?handlers
void?CCmdUIDialog::OnKickIdle()
{
????UpdateDialogControls(this?false);
????//?TODO:?maybe?we?should?send?this?call?to?modeless?child?cdialogs?too
}
//?Q242577
void?CCmdUIDialog::OnInitMenuPopup(CMenu*?pPopupMenu?UINT?/*nIndex*/?BOOL?/*bSysMenu*/)
{
????ASSERT(pPopupMenu?!=?nullptr);
????//?Check?the?enabled?state?of?various?menu?items.
????CCmdUI?state;
????state.m_pMenu?=?pPopupMenu;
????ASSERT(state.m_pOther?==?nullptr);
????ASSERT(state.m_pParentMenu?==?nullptr);
????//?Determine?if?menu?is?popup?in?top-level?menu?and?set?m_pOther?to
????//?it?if?so?(m_pParentMenu?==?nullptr)?indicates?that?it?is?secondary?popup.
????if?(AfxGetThreadState()->m_hTrackingMenu?==?pPopupMenu->m_hMenu)?{
????????state.m_pParentMenu?=?pPopupMenu;????//?Parent?==?child?for?tracking?popup.
????}?else?if?(::GetMenu(m_hWnd)?!=?nullptr)?{
????????HMENU?hParentMenu;
????????CWnd*?pParent?=?this;
????????//?Child?windows?don‘t?have?menus--need?to?go?to?the?top!
????????if?(pParent?!=?nullptr?&&
????????????????(hParentMenu?=?::GetMenu(pParent->m_hWnd))?!=?nullptr)?{
????????????int?nIndexMax?=?::GetMenuItemCount(hParentMenu);
????????????for?(int?nIndex?=?0;?nIndex?????????????????if?(::GetSubMenu(hParentMenu?nIndex)?==?pPopupMenu->m_hMenu)?{
???????
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????313??2018-08-27?17:16??.editorconfig
?????文件?????????16??2018-08-27?17:16??.gitattributes
?????文件????????646??2018-08-27?17:16??.gitignore
?????文件???????1704??2018-08-27?17:16??.gitmodules
?????文件????????117??2018-08-27?17:16??.mailmap
?????文件??????20335??2018-08-27?17:16??build.bat
?????文件????????693??2018-08-27?17:02??build.user.bat
?????文件???????6523??2018-08-27?17:16??common.bat
?????文件???????3191??2018-08-27?17:16??CONTRIBUTING.md
?????文件??????35821??2018-08-27?17:16??COPYING.txt
?????文件?????107378??2018-08-27?17:16??mpc-hc.sln
?????文件???????1334??2018-08-28?10:58??mpciconlib.sln
?????文件???????1816??2018-08-27?17:16??mpcresources.sln
?????文件???????5481??2018-08-27?17:16??Readme.md
?????文件???????1361??2018-08-27?17:16??update_version.bat
?????文件???????4261??2018-08-27?17:16??version.sh
?????文件?????????75??2018-08-27?17:16??build\About.txt
?????文件???????1946??2018-08-27?17:16??build\BuildConfig.vcxproj
?????文件????????221??2018-08-27?19:46??build\version_rev.h
?????文件???????1985??2018-08-27?17:16??contrib\ast
?????文件???????4066??2018-08-27?17:16??contrib\coverity.bat
?????文件???????1553??2018-08-27?17:16??contrib\hash2rev.sh
?????文件????????664??2018-08-27?17:16??contrib\mpc-hc.cppcheck
?????文件???????5920??2018-08-27?17:16??contrib\pre-commit.sh
?????文件???????2293??2018-08-27?17:16??contrib\rev2hash.sh
?????文件???????1671??2018-08-27?17:16??contrib\run_ast
?????文件???????2078??2018-08-27?17:16??contrib\sign.bat
?????文件???????2160??2018-08-27?17:16??distrib\custom_messages.iss
?????文件??????50914??2018-08-27?17:16??distrib\custom_messages_translated.iss
?????文件??????16572??2018-08-27?17:16??distrib\Languages\Arabic.isl
............此處省略13591個文件信息
評論
共有 條評論