vc++&sql sever实现超市管理系统


这是一个超市管理系统。非常经典,纯代码,保证齐全。VC++实现
资源截图
代码片段和文件信息
// 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  03AnotherView.cpp

     文件       2824  2008-09-15 09:24  03AnotherView.h

     文件       3767  2008-09-20 16:43  03BACKUPDLG.cpp

     文件       1316  2008-09-15 09:24  03BACKUPDLG.h

     文件        947  2008-09-15 09:24  03BMP.cpp

     文件       1185  2008-09-15 09:24  03BMP.h

     文件    1440054  2008-06-26 15:15  03Bliss.bmp

     文件      18007  2008-09-15 22:01  03ForeMange.cpp

     文件       3012  2008-09-15 09:24  03ForeMange.h

     文件      19081  2008-09-19 14:07  03GATHERIN.cpp

     文件       3178  2008-09-15 09:24  03GATHERIN.h

     文件      14163  2008-09-21 15:22  03GATHEROUT.cpp

     文件       2626  2008-09-15 09:24  03GATHEROUT.h

     文件       3301  2008-09-15 09:24  03GfxGroupEdit.cpp

     文件       1699  2008-09-15 09:24  03GfxGroupEdit.h

     文件      59339  2008-09-15 09:24  03GfxOutBarCtrl.cpp

     文件       7416  2008-09-15 09:24  03GfxOutBarCtrl.h

     文件      15288  2008-09-15 09:24  03GfxPopupMenu.cpp

     文件       1750  2008-09-15 09:24  03GfxPopupMenu.h

     文件    1512992  2009-06-17 22:40  03HCDB.APS

     文件      21904  2009-06-17 22:40  03HCDB.clw

     文件       7069  2008-09-15 14:44  03HCDB.cpp

     文件       8942  2008-09-21 14:52  03HCDB.dsp

     文件        533  2008-09-21 14:51  03HCDB.dsw

     文件       1578  2008-09-15 09:24  03HCDB.h

     文件     803840  2009-06-17 22:49  03HCDB.ncb

     文件      78848  2009-06-17 22:49  03HCDB.opt

     文件      12948  2009-06-17 22:40  03HCDB.plg

     文件      46941  2008-09-21 16:45  03HCDB.rc

     文件       1702  2008-09-15 09:24  03HCDBDOC.cpp

............此处省略75个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)