资源简介
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个文件信息
相关资源
- 基于MFC的TCP调试助手源码95706
- 国际象棋的qt源代码
- C++中头文件与源文件的作用详解
- 基于mfc的多线程文件传输
- C++多线程网络编程Socket
- VC++ 多线程文件读写操作
- 利用C++哈希表的方法实现电话号码查
- 移木块游戏,可以自编自玩,vc6.0编写
- C++纯文字DOS超小RPG游戏
- MFC数字钟(基于VC6.0)
- VC++MFC小游戏实例教程(实例)+MFC类库
- 连铸温度场计算程序(C++)
- 6自由度机器人运动学正反解C++程序
- Em算法(使用C++编写)
- libstdc++-4.4.7-4.el6.i686.rpm
- VC++实现CMD命令执行与获得返回信息
- 白话C++(全)
- C++标准库第1、2
- 大数类c++大数类
- C++语言编写串口调试助手
- c++素数筛选法
- C++ mqtt 用法
- ChartCtrl控件库(可在VS2019中使用)
- 商品库存管理系统 C++ MFC
- c++ 多功能计算器
- C++17 In Detail
- 嵌入式QtC++编程课件
- 颜色识别形状识别STM103嵌入式代码
- c++ 邮件多附件群发
- c++ 透明代理(hookproxy)
评论
共有 条评论