商品销售管理系统C++ + SQL2000开发


商品销售管理系统C++ + SQL2000开发商品销售管理系统C++ + SQL2000开发
资源截图
代码片段和文件信息
//*************************************************************************
// BCMenu.cpp : implementation file
// Version : 3.02
// Date : March 2002
// Author : Brent Corkum
// Email :  corkum@rocscience.com
// Latest Version : http://www.rocscience.com/~corkum/BCMenu.html
// 
// Bug Fixes and portions of code supplied by:
//
// Ben AshleyGirish BharadwajJean-Edouard Lachand-Robert
// Robert Edward CaldecottKenny GoersLeonardo Zide
// Stefan KuhrReiner JungMartin VladicKim Yoo Chul
// Oz SolomonovichTongzhe CuiStephane ClogWarren Stevens
// Damir ValiulinDavid KinderMarc Loiry
//
// You are free to use/modify this code but leave this header intact.
// This class is public domain so you are free to use it any of
// your applications (FreewareSharewareCommercial). All I ask is
// that you let me know so that if you have a real winner I can
// brag to my buddies that some of my code is in your app. I also
// wouldn‘t mind if you sent me a copy of your application since I
// like to play with new stuff.
//*************************************************************************

#include “stdafx.h“        // Standard windows header file
#include “BCMenu.h“        // BCMenu class declaration
#include        //SK: makes A2W and other spiffy AFX macros work

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

#define BCMENU_GAP 1
#ifndef OBM_CHECK
#define OBM_CHECK 32760 // from winuser.h
#endif

#if _MFC_VER <0x400
#error This code does not work on Versions of MFC prior to 4.0
#endif

static CPINFO CPInfo;
// how the menu‘s are drawn in win9x/NT/2000
UINT BCMenu::original_drawmode=BCMENU_DRAWMODE_ORIGINAL;
BOOL BCMenu::original_select_disabled=TRUE;
// how the menu‘s are drawn in winXP
UINT BCMenu::xp_drawmode=BCMENU_DRAWMODE_XP;
BOOL BCMenu::xp_select_disabled=FALSE;
BOOL BCMenu::xp_draw_3D_bitmaps=TRUE;

CImageList BCMenu::m_AllImages;
CArray BCMenu::m_AllImagesID;

enum Win32Type{
Win32s
WinNT3
Win95
Win98
WinME
WinNT4
Win2000
WinXP
};


Win32Type IsShellType()
{
Win32Type  ShellType;
DWORD winVer;
OSVERSIONINFO *osvi;

winVer=GetVersion();
if(winVer<0x80000000){/*NT */
ShellType=WinNT3;
osvi= (OSVERSIONINFO *)malloc(sizeof(OSVERSIONINFO));
if (osvi!=NULL){
memset(osvi0sizeof(OSVERSIONINFO));
osvi->dwOSVersionInfoSize=sizeof(OSVERSIONINFO);
GetVersionEx(osvi);
if(osvi->dwMajorVersion==4L)ShellType=WinNT4;
else if(osvi->dwMajorVersion==5L&&osvi->dwMinorVersion==0L)ShellType=Win2000;
else if(osvi->dwMajorVersion==5L&&osvi->dwMinorVersion==1L)ShellType=WinXP;
free(osvi);
}
}
else if  (LOBYTE(LOWORD(winVer))<4)
ShellType=Win32s;
else{
ShellType=Win95;
osvi= (OSVERSIONINFO *)malloc(sizeof(OSVERSIONINFO));
if (osvi!=NULL){
memset(osvi0sizeof(OSVERSIONINFO));
osvi->dwOSVersionInfoSize=sizeof(OSVERSIONINFO);

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件    1179648  2006-02-28 13:53  商品销售管理databaseSellManage_Data.MDF

     文件    1048576  2006-02-28 13:53  商品销售管理databaseSellManage_Log.LDF

     文件      88816  2006-02-28 13:53  商品销售管理源程序BCMenu.cpp

     文件      16478  2006-02-28 13:53  商品销售管理源程序BCMenu.h

     文件      52061  2006-02-28 13:53  商品销售管理源程序BtnST.cpp

     文件       8392  2006-02-28 13:53  商品销售管理源程序BtnST.h

     文件      51647  2006-02-28 13:53  商品销售管理源程序Database.cpp

     文件       5046  2006-02-28 13:53  商品销售管理源程序Database.h

     文件     305784  2006-02-28 13:53  商品销售管理源程序DebugBCMenu.obj

     文件          0  2006-02-28 13:53  商品销售管理源程序DebugBCMenu.sbr

     文件      80415  2006-02-28 13:53  商品销售管理源程序DebugBtnST.obj

     文件          0  2006-02-28 13:53  商品销售管理源程序DebugBtnST.sbr

     文件     427564  2006-02-28 13:53  商品销售管理源程序DebugDatabase.obj

     文件          0  2006-02-28 13:53  商品销售管理源程序DebugDatabase.sbr

     文件      38992  2006-02-28 13:53  商品销售管理源程序DebugDlgCancelInStock.obj

     文件          0  2006-02-28 13:53  商品销售管理源程序DebugDlgCancelInStock.sbr

     文件      40753  2006-02-28 13:53  商品销售管理源程序DebugDlgCancelSell.obj

     文件          0  2006-02-28 13:53  商品销售管理源程序DebugDlgCancelSell.sbr

     文件      32009  2006-02-28 13:53  商品销售管理源程序DebugDlgCustomerPay.obj

     文件          0  2006-02-28 13:53  商品销售管理源程序DebugDlgCustomerPay.sbr

     文件      32887  2006-02-28 13:53  商品销售管理源程序DebugDlgGysxxgl.obj

     文件          0  2006-02-28 13:53  商品销售管理源程序DebugDlgGysxxgl.sbr

     文件      28023  2006-02-28 13:53  商品销售管理源程序DebugDlgKcgl.obj

     文件          0  2006-02-28 13:53  商品销售管理源程序DebugDlgKcgl.sbr

     文件      32093  2006-02-28 13:53  商品销售管理源程序DebugDlgKhxxgl.obj

     文件          0  2006-02-28 13:53  商品销售管理源程序DebugDlgKhxxgl.sbr

     文件      16440  2006-02-28 13:53  商品销售管理源程序DebugDlgLogin.obj

     文件          0  2006-02-28 13:53  商品销售管理源程序DebugDlgLogin.sbr

     文件      59074  2006-02-28 13:53  商品销售管理源程序DebugDlgPrint.obj

     文件          0  2006-02-28 13:53  商品销售管理源程序DebugDlgPrint.sbr

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

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

发表评论

评论列表(条)