資源簡介
MFC 子對(duì)話框向父對(duì)話框 Edit內(nèi)容的同步
代碼片段和文件信息
//?One.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“One.h“
#include?“OneDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?COneApp
BEGIN_MESSAGE_MAP(COneApp?CWinApp)
//{{AFX_MSG_MAP(COneApp)
//?NOTE?-?the?ClassWizard?will?add?and?remove?mapping?macros?here.
//????DO?NOT?EDIT?what?you?see?in?these?blocks?of?generated?code!
//}}AFX_MSG
ON_COMMAND(ID_HELP?CWinApp::onhelp)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
//?COneApp?construction
COneApp::COneApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?COneApp?object
COneApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?COneApp?initialization
BOOL?COneApp::InitInstance()
{
AfxEnableControlContainer();
//?Standard?initialization
//?If?you?are?not?using?these?features?and?wish?to?reduce?the?size
//??of?your?final?executable?you?should?remove?from?the?following
//??the?specific?initialization?routines?you?do?not?need.
#ifdef?_AFXDLL
Enable3dControls(); //?Call?this?when?using?MFC?in?a?shared?DLL
#else
Enable3dControlsStatic(); //?Call?this?when?linking?to?MFC?statically
#endif
COneDlg?dlg;
m_pMainWnd?=?&dlg;
int?nResponse?=?dlg.DoModal();
if?(nResponse?==?IDOK)
{
//?TODO:?Place?code?here?to?handle?when?the?dialog?is
//??dismissed?with?OK
}
else?if?(nResponse?==?IDCANCEL)
{
//?TODO:?Place?code?here?to?handle?when?the?dialog?is
//??dismissed?with?Cancel
}
//?Since?the?dialog?has?been?closed?return?FALSE?so?that?we?exit?the
//??application?rather?than?start?the?application‘s?message?pump.
return?FALSE;
}
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2011-03-29?13:55??One\
?????目錄???????????0??2011-03-29?13:55??One\Debug\
?????文件????????5662??2011-03-29?13:55??One\Debug\BuildLog.htm
?????文件??????????60??2011-03-29?13:55??One\Debug\mt.dep
?????文件???????68096??2011-03-29?13:55??One\Debug\One.exe
?????文件?????????920??2011-03-29?11:02??One\Debug\One.exe.em
?????文件?????????984??2011-03-29?11:02??One\Debug\One.exe.em
?????文件?????????861??2011-03-29?13:55??One\Debug\One.exe.intermediate.manifest
?????文件?????1050232??2011-03-29?13:55??One\Debug\One.ilk
?????文件???????21272??2011-03-29?13:21??One\Debug\One.obj
?????文件????24838144??2011-03-29?11:58??One\Debug\One.pch
?????文件?????3492864??2011-03-29?13:55??One\Debug\One.pdb
?????文件????????2560??2011-03-29?12:18??One\Debug\One.res
?????文件???????41051??2011-03-29?13:45??One\Debug\OneDlg.obj
?????文件??????465147??2011-03-29?11:58??One\Debug\StdAfx.obj
?????文件???????26062??2011-03-29?13:55??One\Debug\Two.obj
?????文件??????904192??2011-03-29?13:55??One\Debug\vc90.idb
?????文件?????2002944??2011-03-29?13:55??One\Debug\vc90.pdb
?????文件???????37596??2011-03-29?12:17??One\One.aps
?????文件?????????971??2010-04-28?10:30??One\One.clw
?????文件????????2021??2010-04-28?09:09??One\One.cpp
?????文件????????4119??2010-04-28?09:55??One\One.dsp
?????文件?????????512??2010-04-28?09:09??One\One.dsw
?????文件????????1319??2011-03-29?12:01??One\One.h
?????文件????12733440??2011-03-29?16:07??One\One.ncb
?????文件???????49664??2010-04-28?10:30??One\One.opt
?????文件?????????880??2010-04-28?10:30??One\One.plg
?????文件????????5483??2011-03-29?12:17??One\One.rc
?????文件?????????871??2011-03-29?11:02??One\One.sln
?????文件???????14336??2011-03-29?16:07??One\One.suo
?????文件????????7388??2011-03-29?11:38??One\One.vcproj
............此處省略21個(gè)文件信息
評(píng)論
共有 條評(píng)論