資源簡(jiǎn)介
MFC c++ 編程13個(gè)例子 適合初學(xué)者學(xué)習(xí)

代碼片段和文件信息
//?Demo.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“Demo.h“
#include?“DemoDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CDemoApp
BEGIN_MESSAGE_MAP(CDemoApp?CWinApp)
//{{AFX_MSG_MAP(CDemoApp)
//?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()
/////////////////////////////////////////////////////////////////////////////
//?CDemoApp?construction
CDemoApp::CDemoApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CDemoApp?object
CDemoApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CDemoApp?initialization
BOOL?CDemoApp::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
CDemoDlg?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í)間???名稱(chēng)
-----------?---------??----------?-----??----
?????文件???????2035??2008-02-18?09:46??MFC界面編程實(shí)例13個(gè)\如何為控件添加工具提示\Demo\Demo.cpp
?????文件???????4123??2008-02-18?09:46??MFC界面編程實(shí)例13個(gè)\如何為控件添加工具提示\Demo\Demo.dsp
?????文件????????533??2008-02-18?09:46??MFC界面編程實(shí)例13個(gè)\如何為控件添加工具提示\Demo\Demo.dsw
?????文件???????1302??2008-02-18?09:46??MFC界面編程實(shí)例13個(gè)\如何為控件添加工具提示\Demo\Demo.h
?????文件????????693??2008-04-28?09:07??MFC界面編程實(shí)例13個(gè)\如何為控件添加工具提示\Demo\Demo.plg
?????文件???????5119??2008-04-28?09:07??MFC界面編程實(shí)例13個(gè)\如何為控件添加工具提示\Demo\Demo.rc
?????文件???????4280??2008-03-10?11:14??MFC界面編程實(shí)例13個(gè)\如何為控件添加工具提示\Demo\DemoDlg.cpp
?????文件???????1403??2008-03-10?10:39??MFC界面編程實(shí)例13個(gè)\如何為控件添加工具提示\Demo\DemoDlg.h
?????文件???????3543??2008-02-18?09:46??MFC界面編程實(shí)例13個(gè)\如何為控件添加工具提示\Demo\ReadMe.txt
?????文件???????1078??2008-02-18?09:46??MFC界面編程實(shí)例13個(gè)\如何為控件添加工具提示\Demo\res\Demo.ico
?????文件????????396??2008-02-18?09:46??MFC界面編程實(shí)例13個(gè)\如何為控件添加工具提示\Demo\res\Demo.rc2
?????文件????????682??2008-03-10?11:05??MFC界面編程實(shí)例13個(gè)\如何為控件添加工具提示\Demo\resource.h
?????文件????????206??2008-02-18?09:46??MFC界面編程實(shí)例13個(gè)\如何為控件添加工具提示\Demo\StdAfx.cpp
?????文件???????1054??2008-02-18?09:46??MFC界面編程實(shí)例13個(gè)\如何為控件添加工具提示\Demo\StdAfx.h
?????文件???????2035??2007-12-06?14:48??MFC界面編程實(shí)例13個(gè)\如何在列表控件中插入列\(zhòng)Demo\Demo.cpp
?????文件???????4123??2007-12-06?14:48??MFC界面編程實(shí)例13個(gè)\如何在列表控件中插入列\(zhòng)Demo\Demo.dsp
?????文件????????533??2007-12-06?16:53??MFC界面編程實(shí)例13個(gè)\如何在列表控件中插入列\(zhòng)Demo\Demo.dsw
?????文件???????1302??2007-12-06?14:48??MFC界面編程實(shí)例13個(gè)\如何在列表控件中插入列\(zhòng)Demo\Demo.h
?????文件???????1655??2008-08-11?16:47??MFC界面編程實(shí)例13個(gè)\如何在列表控件中插入列\(zhòng)Demo\Demo.plg
?????文件???????5177??2007-12-28?17:31??MFC界面編程實(shí)例13個(gè)\如何在列表控件中插入列\(zhòng)Demo\Demo.rc
?????文件???????4455??2008-08-11?16:47??MFC界面編程實(shí)例13個(gè)\如何在列表控件中插入列\(zhòng)Demo\DemoDlg.cpp
?????文件???????1308??2008-03-18?11:11??MFC界面編程實(shí)例13個(gè)\如何在列表控件中插入列\(zhòng)Demo\DemoDlg.h
?????文件???????3543??2007-12-06?14:48??MFC界面編程實(shí)例13個(gè)\如何在列表控件中插入列\(zhòng)Demo\ReadMe.txt
?????文件???????1078??2007-12-06?14:48??MFC界面編程實(shí)例13個(gè)\如何在列表控件中插入列\(zhòng)Demo\res\Demo.ico
?????文件????????396??2007-12-06?14:48??MFC界面編程實(shí)例13個(gè)\如何在列表控件中插入列\(zhòng)Demo\res\Demo.rc2
?????文件????????682??2007-12-06?14:49??MFC界面編程實(shí)例13個(gè)\如何在列表控件中插入列\(zhòng)Demo\resource.h
?????文件????????206??2007-12-06?14:48??MFC界面編程實(shí)例13個(gè)\如何在列表控件中插入列\(zhòng)Demo\StdAfx.cpp
?????文件???????1054??2007-12-06?14:48??MFC界面編程實(shí)例13個(gè)\如何在列表控件中插入列\(zhòng)Demo\StdAfx.h
?????文件???????2035??2007-12-06?14:48??MFC界面編程實(shí)例13個(gè)\如何在列表控件中插入行\(zhòng)Demo\Demo.cpp
?????文件???????4123??2007-12-06?14:48??MFC界面編程實(shí)例13個(gè)\如何在列表控件中插入行\(zhòng)Demo\Demo.dsp
............此處省略205個(gè)文件信息
評(píng)論
共有 條評(píng)論