资源简介
基于MFC的Email邮箱管理软件设计,实现了收发邮件等功能
代码片段和文件信息
// BitButtonNL.cpp : implementation file
//
#include “stdafx.h“
#include “EmailManager.h“
#include “BitButtonNL.h“
#ifdef BTNNL_USE_SOUND
#pragma comment(lib “winmm.lib“)
#include
#endif
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CBitButtonNL
CBitButtonNL::CBitButtonNL()
{
m_bMouseOnButton = FALSE;
m_ptPressedOffset.x = 1;
m_ptPressedOffset.y = 1;
m_bIsPressed = FALSE;
m_bIsFocused = FALSE;
m_bIsDisabled = FALSE;
m_bDrawText = FALSE;
m_bDrawFlatFocus = FALSE;
m_iDeflateRect_x = 3;
m_iDeflateRect_y = 3;
m_hCursor = NULL;
m_nTypestyle = SS_TYPEMASK;
m_bIsDefault = FALSE;
m_byTextAlign = NL_ALIGN_CENTER;
m_bDrawDisableText = TRUE;
m_bFont3d = FALSE;
m_cr3DBKColor = RGB(0 0 0);
m_iText3d_x = 3;
m_iText3d_y = 2;
}
CBitButtonNL::~CBitButtonNL()
{
FreeResources();
m_font.Deleteobject();
if (m_hCursor)
::DestroyCursor(m_hCursor);
}
BEGIN_MESSAGE_MAP(CBitButtonNL CButton)
//{{AFX_MSG_MAP(CBitButtonNL)
ON_WM_MOUSEMOVE()
ON_WM_SETCURSOR()
ON_CONTROL_REFLECT_EX(BN_CLICKED onclicked)
//}}AFX_MSG_MAP
ON_MESSAGE(WM_MOUSELEAVE onmouseleave)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CBitButtonNL message handlers
BOOL CBitButtonNL::SetBitmaps(UINT nBitmapNormal UINT nBitmapMouseDown
UINT nBitmapHigh UINT nBitmapDisable)
{
ASSERT(nBitmapNormal);
HBITMAP hBitmapNormal = NULL;
HBITMAP hBitmapMouseDown = NULL;
HBITMAP hBitmapHigh = NULL;
HBITMAP hBitmapDisable = NULL;
HINSTANCE hInstResource = NULL;
// Use AfxFindResourceHandle to walk the resource chain
// and locate a specific resource by resource ID and resource type.
hInstResource = AfxFindResourceHandle(MAKEINTRESOURCE(nBitmapNormal) RT_BITMAP);
// Load bitmap Normal
hBitmapNormal = (HBITMAP)::LoadImage(hInstResource MAKEINTRESOURCE(nBitmapNormal)
IMAGE_BITMAP 0 0 0);
// Load bitmap MouseDown
if (nBitmapMouseDown != NULL)
hBitmapMouseDown = (HBITMAP)::LoadImage(hInstResource MAKEINTRESOURCE(nBitmapMouseDown)
IMAGE_BITMAP 0 0 0);
// Load bitmap High
if (nBitmapHigh != NULL)
hBitmapHigh = (HBITMAP)::LoadImage(hInstResource MAKEINTRESOURCE(nBitmapHigh)
IMAGE_BITMAP 0 0 0);
// Load bitmap Disable
if (nBitmapDisable != NULL)
hBitmapDisable = (HBITMAP)::LoadImage(hInstResource MAKEINTRESOURCE(nBitmapDisable)
IMAGE_BITMAP 0 0 0);
return SetBitmaps(hBitmapNormal hBitmapMouseDown hBitmapHigh hBitmapDisable);
}
BOOL CBitButtonNL::SetBitmaps(HBITMAP hBitmapNormal HBITMAP hBitmapMouseDown
HBITMAP hBitmapHigh HBITMAP hBitmapDisable)
{
int nRetValue = 0;
BITMAP csBitmapSize;
// Free any loaded resource
Free 属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 18153 2013-03-30 09:29 EmailManager\BitButtonNL.cpp
文件 4919 2013-01-19 17:04 EmailManager\BitButtonNL.h
文件 45812 2013-03-30 09:29 EmailManager\Debug\BitButtonNL.obj
文件 0 2013-03-30 09:29 EmailManager\Debug\BitButtonNL.sbr
文件 6120448 2013-03-30 09:29 EmailManager\Debug\EmailManager.bsc
文件 1466470 2013-03-30 09:29 EmailManager\Debug\EmailManager.exe
文件 407636 2013-03-30 09:29 EmailManager\Debug\EmailManager.ilk
文件 18915 2013-01-20 16:35 EmailManager\Debug\EmailManager.obj
文件 9406480 2013-01-17 13:16 EmailManager\Debug\EmailManager.pch
文件 730112 2013-03-30 09:29 EmailManager\Debug\EmailManager.pdb
文件 1083608 2013-01-20 15:39 EmailManager\Debug\EmailManager.res
文件 0 2013-01-20 16:35 EmailManager\Debug\EmailManager.sbr
文件 45761 2013-01-20 15:39 EmailManager\Debug\EmailManagerDlg.obj
文件 0 2013-01-20 15:39 EmailManager\Debug\EmailManagerDlg.sbr
文件 55068 2001-09-28 16:14 EmailManager\Debug\jmail.tlh
文件 56810 2001-09-28 16:14 EmailManager\Debug\jmail.tli
文件 15351 2013-01-20 15:39 EmailManager\Debug\ProgressDlg.obj
文件 0 2013-01-20 15:39 EmailManager\Debug\ProgressDlg.sbr
文件 108819 2013-01-20 15:39 EmailManager\Debug\ReceiveDlg.obj
文件 0 2013-01-20 15:39 EmailManager\Debug\ReceiveDlg.sbr
文件 78815 2013-01-20 16:35 EmailManager\Debug\SendDlg.obj
文件 0 2013-01-20 16:35 EmailManager\Debug\SendDlg.sbr
文件 20488 2013-01-20 15:39 EmailManager\Debug\SetDlg.obj
文件 0 2013-01-20 15:39 EmailManager\Debug\SetDlg.sbr
文件 120094 2013-01-17 13:16 EmailManager\Debug\StdAfx.obj
文件 1744838 2013-01-17 13:16 EmailManager\Debug\StdAfx.sbr
文件 271360 2013-03-30 09:29 EmailManager\Debug\vc60.idb
文件 577536 2013-03-30 09:29 EmailManager\Debug\vc60.pdb
文件 1106804 2013-03-30 07:54 EmailManager\EmailManager.aps
文件 3372 2013-03-30 09:32 EmailManager\EmailManager.clw
............此处省略48个文件信息
- 上一篇:校园导游源代码程序C++
- 下一篇:vc60写的四则混合运算计算器
相关资源
- 基于MFC的TCP调试助手源码95706
- 基于mfc的多线程文件传输
- MFC数字钟(基于VC6.0)
- VC++MFC小游戏实例教程(实例)+MFC类库
- ChartCtrl控件库(可在VS2019中使用)
- 商品库存管理系统 C++ MFC
- mfc 调用redis
- MFC视频播放器源码(支持avi/wma/mp3等格
- mfc绘图大全(画直线、矩形、椭圆)
- MFC控件重绘
- hook,捕获所有案件,查找所有窗口,
- (学习)VS2010之MFC入门到精通教程
- MFC文档_视图_框架_模板结构体系深入
- 简单员工管理系统(适合初学MFC)
- MFC五子棋游戏
- MFC UDP编程
- MFC的异步网络通讯应用程序
- C++MFC模块讲解,黑发程序员课程整理
- 转 VC++ 实现电子邮件(Email)发送
- 一个简单而强大的基于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实现
川公网安备 51152502000135号
评论
共有 条评论