资源简介
费尔个人防火墙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个文件信息
相关资源
- 大量-小波变换源程序
- 用ndis开发的完整防火墙源代码
- MSP430实现串口通信的源程序代码
- 51单片机ADC0832_1602 proteus仿真源程序加
- juniper SRX防火墙cluster配置步骤
- 单片机 公交车报站系统源程序
- C51源程序集锦C51源程序集锦
- STM32驱动CH452
- IIC总线读写AT24C02BEEPROM源程序 有详细
- 数据结构实验六二分查找、Hash查找题
- 4x4矩阵键盘源程序-汇编
- vc播放avi的源程序
- LSB信息隐藏源程序
- 16×64LED点阵显示屏的设计(附完整p
- 凌阳SPCE061A 语音遥控小车 源程序
- 波峰检测源程序
- 个人防火墙源程序代码
- S变换源程序
- 黑油模型数值模拟源程序
- 8、停车场管理数据结构课程设计源程
- RC522基于STC89C52 带上位机C源程序
- Programming the Finite Element Method 5thEditi
- 网御防火墙证书
- 模拟退火遗传算法 源程序
- 基于MVC模式的扫雷游戏
- 《并行算法实践》mpi源程序
- Rosenbrock函数源程序
- 数字钟仿真+源程序.zip
- 编译原理讨论课PPTpl0编译器源程序讲
- 万能遥控器源程序
评论
共有 条评论