資源簡介
這是一個超市管理系統(tǒng)。非常經(jīng)典,純代碼,保證齊全。VC++實現(xiàn)

代碼片段和文件信息
//?AnotherView.cpp?:?implementation?file
//
#include?“stdafx.h“
#include?“HCDB.h“
#include?“AnotherView.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CAnotherView
IMPLEMENT_DYNCREATE(CAnotherView?CFormView)
CAnotherView::CAnotherView()
:?CFormView(CAnotherView::IDD)
{
//{{AFX_DATA_INIT(CAnotherView)
//?NOTE:?the?ClassWizard?will?add?member?initialization?here
//}}AFX_DATA_INIT
}
CAnotherView::~CAnotherView()
{
}
void?CAnotherView::DoDataExchange(CDataExchange*?pDX)
{
CFormView::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CAnotherView)
DDX_Control(pDX?IDC_TAB1?m_Tab);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CAnotherView?CFormView)
//{{AFX_MSG_MAP(CAnotherView)
ON_NOTIFY(TCN_SELCHANGE?IDC_TAB1?OnSelchangeTab1)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
//?CAnotherView?diagnostics
#ifdef?_DEBUG
void?CAnotherView::AssertValid()?const
{
CFormView::AssertValid();
}
void?CAnotherView::Dump(CDumpContext&?dc)?const
{
CFormView::Dump(dc);
}
#endif?//_DEBUG
/////////////////////////////////////////////////////////////////////////////
//?CAnotherView?message?handlers
void?CAnotherView::OnInitialUpdate()?
{
CFormView::OnInitialUpdate();
item.mask=TCIF_TEXT;
????CString?str[9];
????
str[0]=“登記入庫“;?????????????????
str[1]=“入庫單查詢“;?????????????????
str[2]=“入庫明細“;???????????????????
str[3]=“登記出庫“;??????????????????
str[4]=“出庫單查詢“;?????????????????
str[5]=“出庫明細“;?????????????
str[6]=“入庫情況匯總“;???????????????
str[7]=“出庫情況匯總“;
str[8]=“主界面“;
????item.pszText=str[8].GetBuffer(str[8].GetLength());
????m_Tab.InsertItem(0&item);
????for(int?i=1;i<9;i++)
{
??????item.pszText=str[i-1].GetBuffer(str[i-1].GetLength());
??????m_Tab.InsertItem(i&item);
}
????gatherinflag=false;
gatheroutflag=false;
indetailflag=false;
outdetailflag=false;
instockmanageflag=false;
outstockmanageflag=false;
instockqueryflag=false;
outstockqueryflag=false;
this->GetWindowRect(&DlgRect);
nframewidth=::GetSystemMetrics(SM_CXframe);
nTitHeight=::GetSystemMetrics(SM_CYframe)+nframewidth;
m_Tab.GetWindowRect(&PageRect);
int?a=NewRect.left=PageRect.left-nframewidth+2-200;
int?b=NewRect.top=PageRect.right-DlgRect.right-80;
int?c=NewRect.right=NewRect.left+PageRect.Width()-nframewidth;
int?d=NewRect.bottom=NewRect.top+PageRect.Width()-nTitHeight-2;
???
cbmp.Create(IDF_MBPthis);?
????cbmp.MoveWindow(&NewRect);
????cbmp.ShowWindow(true);?
//?TODO:?Add?your?specialized?code?here?and/or?call?the?base?class
}
void?CAnotherView::OnSelchangeTab1(NMHDR*?pNMHDR?LRESULT*?pResult)?
{
//?TODO:?Add?your?control?notification?handler?code?here
ClickTab(true);
*pResult?=?0;
}
void?CAnotherView::ClickTab(bool?flag)
{
switch(m_Tab
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????8293??2008-09-15?09:24??03\AnotherView.cpp
?????文件???????2824??2008-09-15?09:24??03\AnotherView.h
?????文件???????3767??2008-09-20?16:43??03\BACKUPDLG.cpp
?????文件???????1316??2008-09-15?09:24??03\BACKUPDLG.h
?????文件????????947??2008-09-15?09:24??03\BMP.cpp
?????文件???????1185??2008-09-15?09:24??03\BMP.h
?????文件????1440054??2008-06-26?15:15??03\Bliss.bmp
?????文件??????18007??2008-09-15?22:01??03\ForeMange.cpp
?????文件???????3012??2008-09-15?09:24??03\ForeMange.h
?????文件??????19081??2008-09-19?14:07??03\GATHERIN.cpp
?????文件???????3178??2008-09-15?09:24??03\GATHERIN.h
?????文件??????14163??2008-09-21?15:22??03\GATHEROUT.cpp
?????文件???????2626??2008-09-15?09:24??03\GATHEROUT.h
?????文件???????3301??2008-09-15?09:24??03\GfxGroupEdit.cpp
?????文件???????1699??2008-09-15?09:24??03\GfxGroupEdit.h
?????文件??????59339??2008-09-15?09:24??03\GfxOutBarCtrl.cpp
?????文件???????7416??2008-09-15?09:24??03\GfxOutBarCtrl.h
?????文件??????15288??2008-09-15?09:24??03\GfxPopupMenu.cpp
?????文件???????1750??2008-09-15?09:24??03\GfxPopupMenu.h
?????文件????1512992??2009-06-17?22:40??03\HCDB.APS
?????文件??????21904??2009-06-17?22:40??03\HCDB.clw
?????文件???????7069??2008-09-15?14:44??03\HCDB.cpp
?????文件???????8942??2008-09-21?14:52??03\HCDB.dsp
?????文件????????533??2008-09-21?14:51??03\HCDB.dsw
?????文件???????1578??2008-09-15?09:24??03\HCDB.h
?????文件?????803840??2009-06-17?22:49??03\HCDB.ncb
?????文件??????78848??2009-06-17?22:49??03\HCDB.opt
?????文件??????12948??2009-06-17?22:40??03\HCDB.plg
?????文件??????46941??2008-09-21?16:45??03\HCDB.rc
?????文件???????1702??2008-09-15?09:24??03\HCDBDOC.cpp
............此處省略75個文件信息
- 上一篇:c++輔助源碼.rar
- 下一篇:IC卡讀寫仿真
評論
共有 條評論