資源簡介
費爾個人防火墻2.1源程序
費爾個人防火墻2.1源程序
費爾個人防火墻2.1源程序
費爾個人防火墻2.1源程序 加 開發文檔 ,值得借鑒,
絕對好東西

代碼片段和文件信息
//?BtnST.cpp?:?implementation?file
//
#include?“stdafx.h“
#include?“BtnST.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CButtonST
CButtonST::CButtonST()
{
??m_crDisableFg?=?COLOR_DISABLE_TEXT;
??m_bIsDrawNormalBorder?=?FALSE;
??m_bIsDrawDown?=?TRUE;
??m_bIsSelect?=?FALSE;
??m_sToolTipText?=?““;
??m_nHeightType?=?HEIGHTTYPE_DEFAULT;
??m_bIsTransparent?=?TRUE;
??m_bFocusDrawBorder?=?FALSE;
??m_bIsFocus?=?FALSE;
??m_MouseOnButton?=?FALSE;
??m_hIconIn?=?NULL;
??m_hIconOut?=?NULL;
??m_cxIcon?=?0;
??m_cyIcon?=?0;
??m_hBitmapIn?=?NULL;
??m_hBitmapOut?=?NULL;
??m_hBitmapSel?=?NULL;
??m_cyBitmap?=?0;
??m_cxBitmap?=?0;
??m_hCursor?=?NULL;
??
??//?Default?type?is?“flat“?button
??m_bIsFlat?=?TRUE;?
??
??//?By?default?draw?border?in?“flat“?button?
??m_bDrawBorder?=?TRUE;?
??
??//?By?default?icon?is?aligned?horizontally
??m_nAlign?=?ST_ALIGN_HORIZ;?
??
??//?By?default?show?the?text?button
??m_bShowText?=?TRUE;?
??
??//?By?default?for?“flat“?button?don‘t?draw?the?focus?rect
??m_bDrawFlatFocus?=?FALSE;
??SetDefaultInactiveBgColor();
??SetDefaultInactiveFgColor();
??SetDefaultActiveBgColor();
??SetDefaultActiveFgColor();
}?//?End?of?CButtonST
CButtonST::~CButtonST()
{
//?Destroy?the?icons?(if?any)
if?(m_hIconIn?!=?NULL)?::Deleteobject(m_hIconIn);
if?(m_hIconOut?!=?NULL)?::Deleteobject(m_hIconOut);
if(m_hBitmapIn?!=?NULL)?::Deleteobject(m_hBitmapIn);
if(m_hBitmapOut?!=?NULL)?::Deleteobject(m_hBitmapOut);
if(m_hBitmapSel?!=?NULL)?::Deleteobject(m_hBitmapSel);
//?Destroy?the?cursor?(if?any)
if?(m_hCursor?!=?NULL)?::DestroyCursor(m_hCursor);
}?//?End?of?~CButtonST
BEGIN_MESSAGE_MAP(CButtonST?CButton)
????//{{AFX_MSG_MAP(CButtonST)
ON_WM_CAPTURECHANGED()
ON_WM_SETCURSOR()
ON_WM_KILLFOCUS()
ON_WM_MOUSEMOVE()
ON_WM_SETFOCUS()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
void?CButtonST::SetIcon(int?nIconInId?int?nIconOutId?BYTE?cx?BYTE?cy)
{
HINSTANCE?hInstResource?=?AfxFindResourceHandle(MAKEINTRESOURCE(nIconInId)
RT_GROUP_ICON);
//?Set?icon?when?the?mouse?is?IN?the?button
m_hIconIn?=?(HICON)::LoadImage(hInstResource/*AfxGetApp()->m_hInstance*/?MAKEINTRESOURCE(nIconInId)?IMAGE_ICON?0?0?0);
??
//?Set?icon?when?the?mouse?is?OUT?the?button
m_hIconOut?=?(nIconOutId?==?NULL)???m_hIconIn?:?(HICON)::LoadImage(hInstResource/*AfxGetApp()->m_hInstance*/?MAKEINTRESOURCE(nIconOutId)?IMAGE_ICON?0?0?0);
??
m_cxIcon?=?cx;
m_cyIcon?=?cy;
RedrawWindow();
}?//?End?of?SetIcon
void?CButtonST::SetBitmaps(int?nBitmapInId?int?nBitmapOutId?int?nBitmapSelId?BYTE?cx?BYTE?cy)
{
if(m_hBitmapIn?!=?NULL)?::Deleteobject(m_hBitmapIn);
if(m_hBitmapOut?!=?NULL)?::Deleteobject(m_hBitmapOut);
if(m_hBitmapSel?!=?NULL)?::Deleteobject(m_hBitmapSel);
m_hBitmapIn?=?NULL;
m_hBitmapOut?=?NULL;
m_
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2003-03-12?22:02??XFILTER2_FOR_9X_2K_XP\
?????文件????????2252??2002-12-25?16:00??XFILTER2_FOR_9X_2K_XP\CodeChange.txt
?????目錄???????????0??2003-03-12?22:02??XFILTER2_FOR_9X_2K_XP\Common\
?????文件?????????607??2003-03-12?16:48??XFILTER2_FOR_9X_2K_XP\Common\AclManage.cxx
?????文件?????????644??2002-03-18?19:45??XFILTER2_FOR_9X_2K_XP\Common\AclManage.h
?????文件???????22208??2003-03-12?16:48??XFILTER2_FOR_9X_2K_XP\Common\BtnST.cpp
?????文件????????5152??2002-04-10?18:16??XFILTER2_FOR_9X_2K_XP\Common\BtnST.h
?????文件????????6464??2003-03-12?16:52??XFILTER2_FOR_9X_2K_XP\Common\ColorStatic.cpp
?????文件????????4481??2002-04-24?12:40??XFILTER2_FOR_9X_2K_XP\Common\ColorStatic.h
?????文件????????6646??2003-03-18?12:57??XFILTER2_FOR_9X_2K_XP\Common\ControlCode.h
?????文件?????????676??2003-03-12?16:48??XFILTER2_FOR_9X_2K_XP\Common\CPasseckDialog.cpp
?????文件????????1033??2002-04-06?11:03??XFILTER2_FOR_9X_2K_XP\Common\Debug.h
?????文件???????16956??2003-03-18?12:57??XFILTER2_FOR_9X_2K_XP\Common\Filt.h
?????文件???????30338??2003-03-12?17:44??XFILTER2_FOR_9X_2K_XP\Common\GuiRes.h
?????文件????????8506??2003-03-12?16:52??XFILTER2_FOR_9X_2K_XP\Common\PacketMonitor.cpp
?????文件????????1123??2002-04-04?15:59??XFILTER2_FOR_9X_2K_XP\Common\PacketMonitor.h
?????文件????????4676??2003-03-12?16:52??XFILTER2_FOR_9X_2K_XP\Common\PasseckDialog.cpp
?????文件????????1360??2002-04-22?22:15??XFILTER2_FOR_9X_2K_XP\Common\PasseckDialog.h
?????文件????????2297??2003-03-12?16:52??XFILTER2_FOR_9X_2K_XP\Common\Process.cxx
?????文件?????????464??2002-04-06?16:47??XFILTER2_FOR_9X_2K_XP\Common\Process.h
?????文件????????2833??2002-04-13?14:27??XFILTER2_FOR_9X_2K_XP\Common\TypeStruct.h
?????文件???????24779??2003-03-12?17:47??XFILTER2_FOR_9X_2K_XP\Common\XCommon.cpp
?????文件????????3568??2003-03-12?17:48??XFILTER2_FOR_9X_2K_XP\Common\XCommon.h
?????文件???????32173??2003-03-12?16:52??XFILTER2_FOR_9X_2K_XP\Common\XFile.cpp
?????文件????????4834??2002-12-20?15:00??XFILTER2_FOR_9X_2K_XP\Common\XFile.h
?????文件????????9353??2002-03-20?00:39??XFILTER2_FOR_9X_2K_XP\Common\XFileRes.h
?????文件????????9516??2003-03-12?16:52??XFILTER2_FOR_9X_2K_XP\Common\XInstall.cpp
?????文件????????2888??2002-06-10?18:49??XFILTER2_FOR_9X_2K_XP\Common\XInstall.h
?????文件???????13080??2003-03-12?16:52??XFILTER2_FOR_9X_2K_XP\Common\XLogFile.cpp
?????文件????????3106??2002-04-10?14:20??XFILTER2_FOR_9X_2K_XP\Common\XLogFile.h
?????文件????????1318??2003-03-11?17:35??XFILTER2_FOR_9X_2K_XP\License.txt
............此處省略199個文件信息
評論
共有 條評論