资源简介
使用MFC和Sqlserver2005实现的商品管理系统,是初学者很好的资料

代码片段和文件信息
//*************************************************************************
// 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 2010-03-10 16:56 商品销售管理\databa
文件 1048576 2010-03-10 16:56 商品销售管理\databa
文件 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
文件 52024 2010-03-12 18:52 商品销售管理\源程序\Databa
文件 5046 2006-02-28 13:53 商品销售管理\源程序\Databa
文件 10815 2006-02-28 13:53 商品销售管理\源程序\DlgCancelInStock.cpp
文件 2244 2006-02-28 13:53 商品销售管理\源程序\DlgCancelInStock.h
文件 12728 2006-02-28 13:53 商品销售管理\源程序\DlgCancelSell.cpp
文件 2204 2006-02-28 13:53 商品销售管理\源程序\DlgCancelSell.h
文件 7581 2006-02-28 13:53 商品销售管理\源程序\DlgCustomerPay.cpp
文件 2028 2006-02-28 13:53 商品销售管理\源程序\DlgCustomerPay.h
文件 8186 2006-02-28 13:53 商品销售管理\源程序\DlgGysxxgl.cpp
文件 1939 2006-02-28 13:53 商品销售管理\源程序\DlgGysxxgl.h
文件 6424 2006-02-28 13:53 商品销售管理\源程序\DlgKcgl.cpp
文件 1763 2006-02-28 13:53 商品销售管理\源程序\DlgKcgl.h
文件 7882 2006-02-28 13:53 商品销售管理\源程序\DlgKhxxgl.cpp
文件 1903 2006-02-28 13:53 商品销售管理\源程序\DlgKhxxgl.h
文件 2384 2006-02-28 13:53 商品销售管理\源程序\DlgLogin.cpp
文件 1280 2006-02-28 13:53 商品销售管理\源程序\DlgLogin.h
文件 20014 2006-02-28 13:53 商品销售管理\源程序\DlgPrint.cpp
文件 1259 2006-02-28 13:53 商品销售管理\源程序\DlgPrint.h
文件 7663 2006-02-28 13:53 商品销售管理\源程序\DlgProviderPay.cpp
文件 2030 2006-02-28 13:53 商品销售管理\源程序\DlgProviderPay.h
文件 10333 2006-02-28 13:53 商品销售管理\源程序\DlgSell.cpp
文件 2129 2006-02-28 13:53 商品销售管理\源程序\DlgSell.h
文件 9995 2006-02-28 13:53 商品销售管理\源程序\DlgSprk.cpp
文件 2041 2006-02-28 13:53 商品销售管理\源程序\DlgSprk.h
............此处省略114个文件信息
相关资源
- 基于mfc的多线程文件传输
- MFC数字钟(基于VC6.0)
- VC++MFC小游戏实例教程(实例)+MFC类库
- ChartCtrl控件库(可在VS2019中使用)
- 商品库存管理系统 C++ MFC
- mfc 调用redis
- MFC视频播放器源码(支持avi/wma/mp3等格
- mfc绘图大全(画直线、矩形、椭圆)
- MFC控件重绘
- hook,捕获所有案件,查找所有窗口,
- (学习)VS2010之MFC入门到精通教程
- MFC文档_视图_框架_模板结构体系深入
- 简单员工管理系统(适合初学MFC)
- VC操作SQLSERVER数据库
- MFC五子棋游戏
- MFC UDP编程
- MFC的异步网络通讯应用程序
- C++MFC模块讲解,黑发程序员课程整理
- 一个简单而强大的基于MFC的web server源
- 基于MFC的VC++仿QQ浏览器源码(雏形)
- MFCaccess.rar
- VC++MFC课程设计的学生成绩管理系统
- MFC 日历控件 万年历 Calendar自绘
- CrystalDiskInfo-HDD/SSD硬盘信息,SMART信息
- MFC自定义界面HUI,高效简单,含详细
- 仿射密码-Affine cipher
- c++MFC车牌自动识别定位,只能定位和
- mfc+sql 酒店客房管理系统
- 基于图割的图像分割OpenCV+MFC实现
- MFC绘制Bezier曲线B样条曲线曲线拟合
评论
共有 条评论