資源簡介
基于MFC的Email郵箱管理軟件設計,實現了收發(fā)郵件等功能

代碼片段和文件信息
//?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寫的四則混合運算計算器
評論
共有 條評論