資源簡介
代碼片段和文件信息
//?MainFrm.cpp?:?implementation?of?the?CMainframe?class
//
#include?“stdafx.h“
#include?“polygonfill.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_INDICATOR_CAPS
ID_INDICATOR_NUM
ID_INDICATOR_SCRL
};
/////////////////////////////////////////////////////////////////////////////
//?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
}
//?TODO:?Delete?these?three?lines?if?you?don‘t?want?the?toolbar?to
//??be?dockable
m_wndToolBar.EnableDocking(CBRS_ALIGN_ANY);
EnableDocking(CBRS_ALIGN_ANY);
DockControlBar(&m_wndToolBar);
return?0;
}
BOOL?CMainframe::PreCreateWindow(CREATESTRUCT&?cs)
{
if(?!CframeWnd::PreCreateWindow(cs)?)
return?FALSE;
//?TODO:?Modify?the?Window?class?or?styles?here?by?modifying
//??the?CREATESTRUCT?cs
return?TRUE;
}
/////////////////////////////////////////////////////////////////////////////
//?CMainframe?diagnostics
#ifdef?_DEBUG
void?CMainframe::AssertValid()?const
{
CframeWnd::AssertValid();
}
void?CMainframe::Dump(CDumpContext&?dc)?const
{
CframeWnd::Dump(dc);
}
#endif?//_DEBUG
/////////////////////////////////////////////////////////////////////////////
//?CMainframe?message?handlers
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????1842??2003-12-14?13:55??polygonfillDoc.cpp
?????文件???????1530??2003-12-14?11:04??polygonfillDoc.h
?????文件??????16824??2004-07-02?10:30??polygonfillView.cpp
?????文件???????3479??2004-07-02?10:31??polygonfillView.h
?????文件???????4431??2003-12-14?11:04??ReadMe.txt
?????文件????????692??2003-12-18?13:16??resource.h
?????文件????????213??2003-12-14?11:04??StdAfx.cpp
?????文件???????1054??2003-12-14?11:04??StdAfx.h
?????文件???????8600??2003-12-28?11:36??Temp.dat
?????文件???????6210??2004-02-14?11:51??xue1.dat
?????文件???????1078??2003-12-14?11:04??res\polygonfill.ico
?????文件????????403??2003-12-14?11:04??res\polygonfill.rc2
?????文件???????1078??2003-12-14?11:04??res\polygonfillDoc.ico
?????文件???????1078??2003-12-14?11:04??res\Toolbar.bmp
?????目錄??????????0??2004-02-14?11:11??res
?????文件???????1925??2003-12-28?20:59??data.txt
?????文件???????2512??2003-12-14?11:04??MainFrm.cpp
?????文件???????1581??2003-12-14?11:04??MainFrm.h
?????文件??????44476??2004-07-02?10:25??polygonfill.aps
?????文件?????254976??2004-07-02?10:32??polygonfill.ncb
?????文件??????87040??2004-07-02?10:32??polygonfill.opt
?????文件???????1306??2004-07-02?10:31??polygonfill.plg
?????文件???????2390??2004-07-02?10:31??polygonfill.clw
?????文件???????4299??2003-12-14?11:04??polygonfill.cpp
?????文件???????4660??2003-12-14?11:04??polygonfill.dsp
?????文件????????545??2003-12-14?11:04??polygonfill.dsw
?????文件???????1411??2003-12-14?11:04??polygonfill.h
?????文件??????11915??2004-07-02?10:25??polygonfill.rc
-----------?---------??----------?-----??----
???????????????467766????????????????????29
............此處省略2個文件信息
- 上一篇:二維碼生成BMP
- 下一篇:工程庫實現面向對象編程
評論
共有 條評論