資源簡介
誰說用visual C++不能做出漂亮的界面,360殺毒軟件就是使用Vc6.0開發出來的!
此代碼為模擬360殺毒軟件界面,開發工具為visual c++6.0,MFC開發環境。重繪窗體,按鈕等控件。支持皮膚文件加載,動態換膚等功能,未不使用任何第三方控件。內置三套皮膚,可以測試。
次源碼使用一種簡單而高效的方法開發界面,為VC界面美工提供了一個很好的范例.
資源分有點高,但是絕對物超所值!
源碼由本人所創,僅提供技術研究,請勿用于商業用途!

代碼片段和文件信息
//?360sd.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“360sd.h“
#include?“360sdDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CMy360sdApp
BEGIN_MESSAGE_MAP(CMy360sdApp?CWinApp)
//{{AFX_MSG_MAP(CMy360sdApp)
//?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()
/////////////////////////////////////////////////////////////////////////////
//?CMy360sdApp?construction
CMy360sdApp::CMy360sdApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CMy360sdApp?object
CMy360sdApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CMy360sdApp?initialization
BOOL?CMy360sdApp::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
CMy360sdDlg?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;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????8390??2010-05-29?12:16??360sd_CSDN發布版\360sd.rc
?????文件???????3138??2010-05-29?12:22??360sd_CSDN發布版\360sd.clw
?????文件???????2071??2010-05-13?21:14??360sd_CSDN發布版\360sd.cpp
?????文件???????1275??2010-05-29?11:21??360sd_CSDN發布版\ssfh.cpp
?????文件????????518??2010-05-13?21:14??360sd_CSDN發布版\360sd.dsw
?????文件???????1323??2010-05-13?21:14??360sd_CSDN發布版\360sd.h
?????文件?????132096??2010-05-29?12:57??360sd_CSDN發布版\360sd.ncb
?????文件???????1291??2010-05-29?12:57??360sd_CSDN發布版\360sd.plg
?????文件??????51712??2010-05-29?12:57??360sd_CSDN發布版\360sd.opt
?????文件???????5085??2010-05-29?12:57??360sd_CSDN發布版\360sd.dsp
?????文件???????2099??2099-05-16?17:30??360sd_CSDN發布版\360sdDlg.h
?????文件???????1683??2010-05-29?11:21??360sd_CSDN發布版\BDCS.cpp
?????文件???????1341??2099-05-16?17:29??360sd_CSDN發布版\BDCS.h
?????文件???????1246??2010-05-29?10:27??360sd_CSDN發布版\MyBitmapButton.h
?????文件???????1212??2010-05-14?22:52??360sd_CSDN發布版\PSJ.h
?????文件???????3567??2010-05-13?21:14??360sd_CSDN發布版\ReadMe.txt
?????文件???????2055??2010-05-16?18:16??360sd_CSDN發布版\resource.h
?????文件???????1000??2010-05-29?11:21??360sd_CSDN發布版\PSJ.cpp
?????文件???????1189??2010-05-15?16:59??360sd_CSDN發布版\ssfh.h
?????文件????????207??2010-05-13?21:14??360sd_CSDN發布版\StdAfx.cpp
?????文件????1455032??2010-05-29?12:16??360sd_CSDN發布版\360sd.aps
?????文件???????1123??2010-05-29?12:23??360sd_CSDN發布版\StdAfx.h
?????文件???????1078??2010-05-13?21:14??360sd_CSDN發布版\res\360sd.ico
?????文件????????397??2010-05-13?21:14??360sd_CSDN發布版\res\360sd.rc2
?????文件?????173034??2010-05-14?21:46??360sd_CSDN發布版\res\aa.bmp
?????文件?????619686??2010-05-14?17:05??360sd_CSDN發布版\res\cpsj.bmp
?????文件?????621774??2010-05-14?17:05??360sd_CSDN發布版\res\ssfh.bmp
?????文件????????597??2010-05-29?12:16??360sd_CSDN發布版\res\XPst
?????文件????1419156??2010-05-29?12:49??360sd_CSDN發布版\Debug\360sd.res
?????文件?????214016??2010-05-29?12:57??360sd_CSDN發布版\Debug\vc60.idb
............此處省略57個文件信息
評論
共有 條評論