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

  • 大小: 3.59MB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發布日期: 2023-09-14
  • 語言: C/C++
  • 標簽: 繪制圖形??

資源簡介

windows高級應用編程,MFC實驗 繪圖工具 繪制矩形 圓形 直線等簡單圖形 文檔和代碼

資源截圖

代碼片段和文件信息

//?MainFrm.cpp?:?implementation?of?the?CMainframe?class
//

#include?“stdafx.h“
#include?“MyPaint.h“

#include?“MainFrm.h“

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

/////////////////////////////////////////////////////////////////////////////
//?CMainframe

IMPLEMENT_DYNCREATE(CMainframe?CframeWnd)

BEGIN_MESSAGE_MAP(CMainframe?CframeWnd)
//{{AFX_MSG_MAP(CMainframe)
//?NOTE?-?the?ClassWizard?will?add?and?remove?mapping?macros?here.
//????DO?NOT?EDIT?what?you?see?in?these?blocks?of?generated?code?!
ON_WM_CREATE()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()

static?UINT?indicators[]?=
{
ID_SEPARATOR???????????//?status?line?indicator
ID_SEPARATOR
ID_INDICATOR_CAPS
ID_INDICATOR_NUM
ID_INDICATOR_SCRL
};


//--------------------------------------------------------//
//--------------------------------------------------------//
//?全局函數:Prompt
//?功能:在狀態欄上給出操作過程的提示信息
void?Prompt(char*?pmt)
{
CStatusBar*?pStatus=(CStatusBar*)
AfxGetApp()->m_pMainWnd->GetDescendantWindow(ID_VIEW_STATUS_BAR);

ASSERT(pStatus)?;
if(pStatus)
pStatus->SetPaneText(0?pmt?TRUE);
}
//--------------------------------------------------------//
//--------------------------------------------------------//

/////////////////////////////////////////////////////////////////////////////
//?CMainframe?construction/destruction

CMainframe::CMainframe()
{
//?TODO:?add?member?initialization?code?here

}

CMainframe::~CMainframe()
{
}

int?CMainframe::OnCreate(LPCREATESTRUCT?lpCreateStruct)
{
if?(CframeWnd::OnCreate(lpCreateStruct)?==?-1)
return?-1;

if?(!m_wndToolBar.CreateEx(this?TBstyle_FLAT?WS_CHILD?|?WS_VISIBLE?|?CBRS_TOP
|?CBRS_GRIPPER?|?CBRS_TOOLTIPS?|?CBRS_FLYBY?|?CBRS_SIZE_DYNAMIC)?||
!m_wndToolBar.LoadToolBar(IDR_MAINframe))
{
TRACE0(“Failed?to?create?toolbar\n“);
return?-1;??????//?fail?to?create
}

if?(!m_wndStatusBar.Create(this)?||
!m_wndStatusBar.SetIndicators(indicators
??sizeof(indicators)/sizeof(UINT)))
{
TRACE0(“Failed?to?create?status?bar\n“);
return?-1;??????//?fail?to?create
}

if(!m_wndEntityBar.CreateEx(this?TBstyle_FLAT?WS_CHILD?|?WS_VISIBLE?|?CBRS_TOP
|?CBRS_GRIPPER?|?CBRS_TOOLTIPS?|?CBRS_FLYBY?|?CBRS_SIZE_DYNAMIC)?||
!m_wndEntityBar.LoadToolBar(IDR_ENTITY))
{
TRACE0(“Failed?to?create?modify?toolbar\n“);
return?-1;??????//?fail?to?create
}

if(!m_wndOptionBar.CreateEx(this?TBstyle_FLAT?WS_CHILD?|?WS_VISIBLE?|?CBRS_TOP
|?CBRS_GRIPPER?|?CBRS_TOOLTIPS?|?CBRS_FLYBY?|?CBRS_SIZE_DYNAMIC)?||
!m_wndOptionBar.LoadToolBar(IDR_OPTION))
{
TRACE0(“Failed?to?create?modify?toolbar\n“);
return?-1;??????//?fail?to?create
}

m_wndToolBar??.EnableDocking(CBRS_ALIGN_ANY);
m_wndEntityBar.EnableDocking(CBRS_ALIGN_ANY);
m_wndOptionBar.EnableDocking(CBRS_ALIGN_ANY);
EnableDocking(CBRS_ALIGN_ANY);

DockControlBar(&m_wndToolBar);
DockControlBarLeftOf(&

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

?????文件??????71680??2012-04-30?16:20??MFC選修繪圖工具實驗報告.doc

?????文件???????6701??2004-11-20?13:27??MyPaint\ARC.CPP

?????文件??????21817??2004-11-20?16:01??MyPaint\COMMAND.CPP

?????文件???????2959??2004-11-20?15:45??MyPaint\COMMAND.H

?????文件??????51831??2011-04-11?22:01??MyPaint\Debug\ARC.obj

?????文件??????94031??2011-04-11?22:01??MyPaint\Debug\COMMAND.obj

?????文件??????20687??2011-04-11?22:01??MyPaint\Debug\ENTITY.obj

?????文件??????43938??2011-04-11?22:01??MyPaint\Debug\LINE.obj

?????文件??????22367??2011-04-11?22:01??MyPaint\Debug\MainFrm.obj

?????文件????2277429??2011-04-11?22:01??MyPaint\Debug\MyPaint.exe

?????文件????2598252??2011-04-11?22:01??MyPaint\Debug\MyPaint.ilk

?????文件??????22325??2011-04-11?22:01??MyPaint\Debug\MyPaint.obj

?????文件????5462468??2011-04-11?22:00??MyPaint\Debug\MyPaint.pch

?????文件????3703808??2011-04-11?22:01??MyPaint\Debug\MyPaint.pdb

?????文件??????16052??2011-04-11?22:00??MyPaint\Debug\MyPaint.res

?????文件??????22902??2011-04-11?22:01??MyPaint\Debug\MyPaintDoc.obj

?????文件??????40592??2011-04-11?22:01??MyPaint\Debug\MyPaintView.obj

?????文件??????33982??2011-04-11?22:01??MyPaint\Debug\POSITION.obj

?????文件??????46230??2011-04-11?22:01??MyPaint\Debug\RECTANGLE.obj

?????文件?????105425??2011-04-11?22:00??MyPaint\Debug\StdAfx.obj

?????文件?????230400??2011-04-11?22:12??MyPaint\Debug\vc60.idb

?????文件?????372736??2011-04-11?22:01??MyPaint\Debug\vc60.pdb

?????文件???????2209??2004-11-20?16:15??MyPaint\ENTITY.CPP

?????文件???????5258??2004-11-20?13:51??MyPaint\ENTITY.H

?????文件???????4004??2004-11-20?13:27??MyPaint\LINE.CPP

?????文件???????4275??2004-11-20?14:44??MyPaint\MainFrm.cpp

?????文件???????1706??2004-11-20?10:55??MyPaint\MainFrm.h

?????文件??????46408??2004-11-22?09:30??MyPaint\MyPaint.aps

?????文件???????2671??2004-11-22?15:33??MyPaint\MyPaint.clw

?????文件???????4465??2004-11-20?14:10??MyPaint\MyPaint.cpp

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

評論

共有 條評論