资源简介
MFC写的复数计算器,用作C++选修课最后的作业。
代码片段和文件信息
//*************************************************************************
// 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);
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 88816 2002-03-31 12:20 fushu\BCMenu.cpp
文件 16478 2002-03-31 12:20 fushu\BCMenu.h
文件 52061 2002-04-17 18:34 fushu\BtnST.cpp
文件 8392 2002-04-18 10:14 fushu\BtnST.h
文件 306559 2010-12-15 00:01 fushu\Debug\BCMenu.obj
文件 80896 2010-12-15 00:01 fushu\Debug\BtnST.obj
文件 241768 2010-12-15 00:14 fushu\Debug\EX_myfloat0125.exe
文件 649948 2010-12-15 00:14 fushu\Debug\EX_myfloat0125.ilk
文件 15188 2010-12-15 00:01 fushu\Debug\EX_myfloat0125.obj
文件 5633800 2010-12-15 00:01 fushu\Debug\EX_myfloat0125.pch
文件 730112 2010-12-15 00:14 fushu\Debug\EX_myfloat0125.pdb
文件 11680 2010-12-15 00:14 fushu\Debug\EX_myfloat0125.res
文件 60203 2010-12-15 00:12 fushu\Debug\EX_myfloat0125Dlg.obj
文件 16434 2010-12-15 00:01 fushu\Debug\omlex.obj
文件 105931 2010-12-15 00:01 fushu\Debug\StdAfx.obj
文件 230400 2010-12-15 10:57 fushu\Debug\vc60.idb
文件 380928 2010-12-15 00:12 fushu\Debug\vc60.pdb
目录 0 2010-12-15 11:14 fushu\Debug
文件 31048 2010-12-15 09:28 fushu\EX_myfloat0125.aps
文件 1864 2010-12-15 11:01 fushu\EX_myfloat0125.clw
文件 2175 2010-03-08 21:00 fushu\EX_myfloat0125.cpp
文件 4874 2010-12-15 00:14 fushu\EX_myfloat0125.dsp
文件 536 2010-03-08 21:00 fushu\EX_myfloat0125.dsw
文件 1412 2010-03-08 21:00 fushu\EX_myfloat0125.h
文件 230400 2010-12-15 11:01 fushu\EX_myfloat0125.ncb
文件 49664 2010-12-15 11:01 fushu\EX_myfloat0125.opt
文件 990 2010-12-15 00:14 fushu\EX_myfloat0125.plg
文件 6551 2010-12-15 00:14 fushu\EX_myfloat0125.rc
文件 10905 2010-12-15 00:12 fushu\EX_myfloat0125Dlg.cpp
文件 1969 2010-12-15 00:00 fushu\EX_myfloat0125Dlg.h
............此处省略16个文件信息
相关资源
- C++17 In Detail
- 嵌入式QtC++编程课件
- 颜色识别形状识别STM103嵌入式代码
- c++ 邮件多附件群发
- c++ 透明代理(hookproxy)
- mfc 调用redis
- FTP客户端源码(c++)
- MFC视频播放器源码(支持avi/wma/mp3等格
- c++ 画图(14Qt-XPS)
- c++多边形交并差运算
- VC++基于OpenGL模拟的一个3维空间模型
- mfc绘图大全(画直线、矩形、椭圆)
- c++ 虚拟摄像头
- MFC控件重绘
- hook,捕获所有案件,查找所有窗口,
- C语言课设计算器
- (学习)VS2010之MFC入门到精通教程
- c++ 简易贪吃蛇源码
- 高精度加法(c++代码)
- C++调用百度地图案例
- 北京化工大学计算方法(C/C++)讲义
- 基于VC++的SolidWorks二次开发SolidWorks
- c++ 模拟鼠标按键
- OFD编辑器
- Beginning C++17 From Novice to Professional
- C++ STL实现
- opencv手部轮廓识别以及轨迹识别
- MFC文档_视图_框架_模板结构体系深入
- 百度C++编码规范
- 基于51单片机的简易计算器
评论
共有 条评论