91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 1.84MB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發(fā)布日期: 2023-09-02
  • 語言: 其他
  • 標(biāo)簽: MFC??

資源簡介

編寫應(yīng)用程序?qū)崿F(xiàn)多邊形裁剪。要求首先采用鼠標(biāo)確定裁剪區(qū)域(矩形區(qū)域),然后用鼠標(biāo)輸入待裁剪的多邊形(可分別使用鼠標(biāo)左鍵和右鍵來確定裁剪區(qū)域和待裁剪的多邊形)。 多邊形繪制完畢后進行裁剪,以不同顏色顯示被裁剪對象位于窗口內(nèi)(此部分應(yīng)保證多邊形的完整性)及外部的部分。

資源截圖

代碼片段和文件信息

//?CutOut.cpp?:?Defines?the?class?behaviors?for?the?application.
//

#include?“stdafx.h“
#include?“CutOut.h“

#include?“MainFrm.h“
#include?“CutOutDoc.h“
#include?“CutOutView.h“

#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
//?CCutOutApp

BEGIN_MESSAGE_MAP(CCutOutApp?CWinApp)
//{{AFX_MSG_MAP(CCutOutApp)
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()

/////////////////////////////////////////////////////////////////////////////
//?CCutOutApp?construction

CCutOutApp::CCutOutApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}

/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CCutOutApp?object

CCutOutApp?theApp;

/////////////////////////////////////////////////////////////////////////////
//?CCutOutApp?initialization

BOOL?CCutOutApp::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(CCutOutDoc)
RUNTIME_CLASS(CMainframe)???????//?main?SDI?frame?window
RUNTIME_CLASS(CCutOutView));
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;

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件??????28832??2018-12-05?22:30??CutOut\CutOut.aps

?????文件???????2328??2018-12-05?23:12??CutOut\CutOut.clw

?????文件???????4209??2018-11-21?13:36??CutOut\CutOut.cpp

?????文件???????4555??2018-11-21?13:36??CutOut\CutOut.dsp

?????文件????????518??2018-11-21?13:36??CutOut\CutOut.dsw

?????文件???????1356??2018-11-21?13:36??CutOut\CutOut.h

?????文件?????115712??2018-12-08?21:15??CutOut\CutOut.ncb

?????文件??????50688??2018-12-08?21:15??CutOut\CutOut.opt

?????文件???????1131??2018-12-05?23:11??CutOut\CutOut.plg

?????文件??????11714??2018-12-03?14:27??CutOut\CutOut.rc

?????文件???????1742??2018-11-21?13:36??CutOut\CutOutDoc.cpp

?????文件???????1475??2018-11-21?13:36??CutOut\CutOutDoc.h

?????文件??????13154??2018-12-05?23:11??CutOut\CutOutView.cpp

?????文件???????3160??2018-12-03?14:27??CutOut\CutOutView.h

?????文件?????127043??2018-12-05?23:11??CutOut\Debug\CutOut.exe

?????文件?????324368??2018-12-05?23:11??CutOut\Debug\CutOut.ilk

?????文件??????22861??2018-12-05?23:11??CutOut\Debug\CutOut.obj

?????文件????5492236??2018-12-05?23:11??CutOut\Debug\CutOut.pch

?????文件?????345088??2018-12-05?23:11??CutOut\Debug\CutOut.pdb

?????文件???????7404??2018-12-05?23:11??CutOut\Debug\CutOut.res

?????文件??????14617??2018-12-05?23:11??CutOut\Debug\CutOutDoc.obj

?????文件??????46244??2018-12-05?23:11??CutOut\Debug\CutOutView.obj

?????文件??????19816??2018-12-05?23:11??CutOut\Debug\MainFrm.obj

?????文件?????105531??2018-12-05?23:11??CutOut\Debug\StdAfx.obj

?????文件?????205824??2018-12-08?21:15??CutOut\Debug\vc60.idb

?????文件?????364544??2018-12-05?23:11??CutOut\Debug\vc60.pdb

?????文件???????2507??2018-11-21?13:36??CutOut\MainFrm.cpp

?????文件???????1581??2018-11-21?13:36??CutOut\MainFrm.h

?????文件???????4311??2018-11-21?13:36??CutOut\ReadMe.txt

?????文件???????1078??2018-11-21?13:36??CutOut\res\CutOut.ico

............此處省略12個文件信息

評論

共有 條評論