資源簡(jiǎn)介
用MFC編界面 介紹 介紹了登陸和注冊(cè)等按鈕的方法

代碼片段和文件信息
//?emter.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“emter.h“
#include?“emterDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CEmterApp
BEGIN_MESSAGE_MAP(CEmterApp?CWinApp)
//{{AFX_MSG_MAP(CEmterApp)
//?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()
/////////////////////////////////////////////////////////////////////////////
//?CEmterApp?construction
CEmterApp::CEmterApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CEmterApp?object
CEmterApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CEmterApp?initialization
BOOL?CEmterApp::InitInstance()
{
AfxEnableControlContainer();
//AfxOleInit();
if(!AfxOleInit())?
{
AfxMessageBox(“初始化OLE?DLL失敗!“);
return?FALSE;
}
//?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.
//?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
CEmterDlg?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í)間???名稱
-----------?---------??----------?-----??----
?????文件?????122880??2011-06-26?21:42??emter\db.mdb
?????文件?????122880??2011-06-26?21:42??emter\Debug\db.mdb
?????文件?????127025??2011-06-30?19:05??emter\Debug\emter.exe
?????文件?????286884??2011-06-30?19:05??emter\Debug\emter.ilk
?????文件??????17786??2011-06-26?21:41??emter\Debug\emter.obj
?????文件????7699796??2011-06-20?10:42??emter\Debug\emter.pch
?????文件?????631808??2011-06-30?19:05??emter\Debug\emter.pdb
?????文件???????2660??2011-06-26?21:33??emter\Debug\emter.res
?????文件??????96291??2011-06-30?19:05??emter\Debug\emterDlg.obj
?????文件??????90665??2010-11-09?22:51??emter\Debug\msado15.tlh
?????文件??????76637??2010-11-09?22:51??emter\Debug\msado15.tli
?????文件?????133173??2011-06-20?10:42??emter\Debug\StdAfx.obj
?????文件?????246784??2011-06-30?19:06??emter\Debug\vc60.idb
?????文件?????561152??2011-06-30?19:05??emter\Debug\vc60.pdb
?????文件??????35696??2011-06-26?21:33??emter\emter.aps
?????文件???????1297??2011-06-30?19:23??emter\emter.clw
?????文件???????2382??2011-06-20?10:43??emter\emter.cpp
?????文件???????4141??2011-06-20?10:38??emter\emter.dsp
?????文件????????533??2011-06-20?10:38??emter\emter.dsw
?????文件???????1326??2011-06-23?21:28??emter\emter.h
?????文件?????140288??2011-06-30?19:23??emter\emter.ncb
?????文件?????167424??2011-06-30?19:23??emter\emter.opt
?????文件????????244??2011-06-30?19:06??emter\emter.plg
?????文件???????5616??2011-06-26?21:33??emter\emter.rc
?????文件???????9718??2011-06-30?19:05??emter\emterDlg.cpp
?????文件???????1595??2011-06-26?21:41??emter\emterDlg.h
?????文件???????3561??2011-06-20?10:38??emter\ReadMe.txt
?????文件???????1078??2011-06-20?10:38??emter\res\emter.ico
?????文件????????397??2011-06-20?10:38??emter\res\emter.rc2
?????文件???????1005??2011-06-26?21:28??emter\resource.h
............此處省略8個(gè)文件信息
評(píng)論
共有 條評(píng)論