資源簡介
:要求用鼠標左鍵隨機在客戶區任何地方單擊,可產生一個圓形的泡泡(泡泡的大小隨機產生);可通過顏色對話框選擇不同的顏色,繪出不同顏色的泡泡;可以保存文檔,并能打開文檔。吹出的泡泡是透明的。
代碼片段和文件信息
//?Bubble.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“Bubble.h“
#include?“MainFrm.h“
#include?“BubbleDoc.h“
#include?“BubbleView.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CBubbleApp
BEGIN_MESSAGE_MAP(CBubbleApp?CWinApp)
//{{AFX_MSG_MAP(CBubbleApp)
ON_COMMAND(ID_APP_ABOUT?OnAppAbout)
//?NOTE?-?the?ClassWizard?will?add?and?remove?mapping?macros?here.
//????DO?NOT?EDIT?what?you?see?in?these?blocks?of?generated?code!
//}}AFX_MSG_MAP
//?Standard?file?based?document?commands
ON_COMMAND(ID_FILE_NEW?CWinApp::OnFileNew)
ON_COMMAND(ID_FILE_OPEN?CWinApp::OnFileOpen)
//?Standard?print?setup?command
ON_COMMAND(ID_FILE_PRINT_SETUP?CWinApp::OnFilePrintSetup)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
//?CBubbleApp?construction
CBubbleApp::CBubbleApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CBubbleApp?object
CBubbleApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CBubbleApp?initialization
BOOL?CBubbleApp::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
//?Change?the?registry?key?under?which?our?settings?are?stored.
//?TODO:?You?should?modify?this?string?to?be?something?appropriate
//?such?as?the?name?of?your?company?or?organization.
SetRegistryKey(_T(“Local?AppWizard-Generated?Applications“));
LoadStdProfileSettings();??//?Load?standard?INI?file?options?(including?MRU)
//?Register?the?application‘s?document?templates.??Document?templates
//??serve?as?the?connection?between?documents?frame?windows?and?views.
CSingleDocTemplate*?pDocTemplate;
pDocTemplate?=?new?CSingleDocTemplate(
IDR_MAINframe
RUNTIME_CLASS(CBubbleDoc)
RUNTIME_CLASS(CMainframe)???????//?main?SDI?frame?window
RUNTIME_CLASS(CBubbleView));
AddDocTemplate(pDocTemplate);
//?Parse?command?line?for?standard?shell?commands?DDE?file?open
CCommandLineInfo?cmdInfo;
ParseCommandLine(cmdInfo);
//?Dispatch?commands?specified?on?the?command?line
if?(!ProcessShellCommand(cmdInfo))
return?FALSE;
//?The?one?and?only?window?has?been?initialized?so?show?and?update?it.
m_pMainWnd->ShowWindow(SW_SHOW);
m_pMainWnd->UpdateWindow();
return?TRUE;
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????5241888??2013-07-07?20:06??Bubble\Bubble.aps
?????文件???????2437??2013-07-07?20:06??Bubble\Bubble.clw
?????文件???????4209??2010-12-30?20:05??Bubble\Bubble.cpp
?????文件???????5193??2013-07-04?23:20??Bubble\Bubble.dsp
?????文件????????535??2010-12-30?20:05??Bubble\Bubble.dsw
?????文件???????1356??2010-12-30?20:05??Bubble\Bubble.h
?????文件?????123904??2013-07-07?20:06??Bubble\Bubble.ncb
?????文件??????61952??2013-07-07?20:06??Bubble\Bubble.opt
?????文件???????1408??2013-07-05?13:37??Bubble\Bubble.plg
?????文件??????12598??2013-07-04?23:15??Bubble\Bubble.rc
?????文件????????970??2010-12-30?20:05??Bubble\Bubble1.cpp
?????文件????????991??2013-07-02?21:54??Bubble\Bubble1.h
?????文件???????2392??2013-07-05?09:55??Bubble\BubbleDoc.cpp
?????文件???????1629??2010-12-30?20:05??Bubble\BubbleDoc.h
?????文件???????4891??2013-07-05?13:37??Bubble\BubbleView.cpp
?????文件???????1926??2013-07-05?09:37??Bubble\BubbleView.h
?????文件????5432320??2013-07-05?13:37??Bubble\Debug\Bubble.bsc
?????文件????6393907??2013-07-05?13:37??Bubble\Debug\Bubble.exe
?????文件?????451696??2013-07-05?13:37??Bubble\Debug\Bubble.ilk
?????文件??????22995??2010-12-30?20:07??Bubble\Debug\Bubble.obj
?????文件????7272332??2010-12-30?20:06??Bubble\Debug\Bubble.pch
?????文件?????541696??2013-07-05?13:37??Bubble\Debug\Bubble.pdb
?????文件????5219064??2013-07-04?23:16??Bubble\Debug\Bubble.res
?????文件??????????0??2010-12-30?20:07??Bubble\Debug\Bubble.sbr
?????文件???????7662??2010-12-30?20:06??Bubble\Debug\Bubble1.obj
?????文件??????????0??2010-12-30?20:06??Bubble\Debug\Bubble1.sbr
?????文件??????41647??2013-07-05?09:55??Bubble\Debug\BubbleDoc.obj
?????文件??????????0??2013-07-05?09:55??Bubble\Debug\BubbleDoc.sbr
?????文件??????40170??2013-07-05?13:37??Bubble\Debug\BubbleView.obj
?????文件??????????0??2013-07-05?13:37??Bubble\Debug\BubbleView.sbr
............此處省略30個文件信息
- 上一篇:C++使用protobuf 作為網絡消息協議
- 下一篇:AES加密的HLS實現與優化
評論
共有 條評論