资源简介
摄像头src.zip
代码片段和文件信息
#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_bIsPressed = FALSE;
m_bIsFocused = FALSE;
m_bIsDisabled = FALSE;
m_bMouseOnButton = FALSE;
FreeResources(FALSE);
// 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 for “flat“ button don‘t draw the focus rect
m_bDrawFlatFocus = FALSE;
// By default the button is not the default button
m_bIsDefault = FALSE;
// By default the button is not a checkbox
m_bIsCheckBox = FALSE;
m_nCheck = 0;
// Set default colors
SetDefaultColors(FALSE);
// No tooltip created
m_ToolTip.m_hWnd = NULL;
// Do not draw as a transparent button
m_bDrawTransparent = FALSE;
m_pbmpOldBk = NULL;
// No URL defined
::ZeroMemory(&m_szURL sizeof(m_szURL));
// No cursor defined
m_hCursor = NULL; // Fix by kawasaki@us.dnttm.ro
// No autorepeat
m_bAutoRepeat = FALSE;
m_hWndAutoRepeat = NULL;
m_nMsgAutoRepeat = WM_APP;
m_dwPeriodAutoRepeat = 100;
} // End of CButtonST
CButtonST::~CButtonST()
{
// Restore old bitmap (if any)
if(m_dcBk.m_hDC != NULL && m_pbmpOldBk != NULL)
m_dcBk.Selectobject(m_pbmpOldBk);
FreeResources();
// 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_SYSCOLORCHANGE()
ON_CONTROL_REFLECT_EX(BN_CLICKED onclicked)
ON_WM_ACTIVATE()
ON_WM_ENABLE()
ON_WM_CANCELMODE()
ON_WM_CTLCOLOR_REFLECT()
ON_WM_LBUTTONDOWN()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
DWORD CButtonST::SetIcon(int nIconInId int nIconOutId)
{
HICON hIconIn;
HICON hIconOut;
HINSTANCE hInstResource;
// Find correct resource handle
hInstResource = AfxFindResourceHandle(MAKEINTRESOURCE(nIconInId) RT_GROUP_ICON);
// Set icon when the mouse is IN the button
hIconIn = (HICON)::LoadImage(hInstResource MAKEINTRESOURCE(nIconInId) IMAGE_ICON 0 0 0);
// Set icon when the mouse is OUT the button
hIconOut = (HICON)::LoadImage(hInstResource MAKEINTRESOURCE(nIconOutId) IMAGE_ICON 0 0 0);
return SetIcon(hIconIn hIconOut);
}
DWORD CButtonST::SetIcon(HICON hIconIn HICON hIconOut)
{
BOOL bRetValue;
ICONINFO ii;
// Free any loaded resource
FreeResources();
if(hIconIn != NULL)
{
m_csIcons[0].hIcon = hIconIn;
// Get icon dimension
ZeroMemory(&ii sizeof(ICONINFO));
bRetValue = ::GetIconInfo(hIconIn &ii);
if (bRetValue == FALSE)
{
FreeResources();
return BTNST_INV
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2018-04-02 20:14 CameraDevice\
文件 118784 2018-03-16 14:53 CameraDevice\AddstrToGraphic.dll
文件 31079 2018-03-16 14:53 CameraDevice\BtnST.cpp
文件 5639 2018-03-16 14:53 CameraDevice\BtnST.h
文件 74008 2018-04-02 19:45 CameraDevice\CameraDevice.aps
文件 1569 2018-04-02 20:14 CameraDevice\CameraDevice.clw
文件 2147 2018-03-16 14:53 CameraDevice\CameraDevice.cpp
文件 6420 2018-03-16 14:53 CameraDevice\CameraDevice.dsp
文件 547 2018-03-16 14:53 CameraDevice\CameraDevice.dsw
文件 1390 2018-03-16 14:53 CameraDevice\CameraDevice.h
文件 803840 2018-04-02 20:14 CameraDevice\CameraDevice.ncb
文件 54784 2018-04-02 20:14 CameraDevice\CameraDevice.opt
文件 258 2018-04-02 19:50 CameraDevice\CameraDevice.plg
文件 6254 2018-03-16 14:53 CameraDevice\CameraDevice.rc
文件 29020 2018-04-02 19:50 CameraDevice\CameraDeviceDlg.cpp
文件 2782 2018-03-16 14:53 CameraDevice\CameraDeviceDlg.h
目录 0 2018-04-02 19:50 CameraDevice\Debug\
文件 118784 2018-03-16 14:53 CameraDevice\Debug\AddstrToGraphic.dll
文件 68157 2018-04-02 19:48 CameraDevice\Debug\BtnST.obj
文件 3785728 2018-03-16 14:53 CameraDevice\Debug\CameraDevice.bsc
文件 118846 2018-03-16 14:53 CameraDevice\Debug\CameraDevice.exe
文件 311948 2018-03-16 14:53 CameraDevice\Debug\CameraDevice.ilk
文件 20354 2018-04-02 19:48 CameraDevice\Debug\CameraDevice.obj
文件 8829900 2018-04-02 19:48 CameraDevice\Debug\CameraDevice.pch
文件 1393664 2018-04-02 19:50 CameraDevice\Debug\CameraDevice.pdb
文件 54316 2018-04-02 19:48 CameraDevice\Debug\CameraDevice.res
文件 0 2018-03-16 14:53 CameraDevice\Debug\CameraDevice.sbr
文件 126135 2018-04-02 19:50 CameraDevice\Debug\CameraDeviceDlg.obj
文件 0 2018-03-16 14:53 CameraDevice\Debug\CameraDeviceDlg.sbr
文件 131152 2018-03-16 14:53 CameraDevice\Debug\DirectXVideoPic.dll
文件 26415 2018-04-02 19:48 CameraDevice\Debug\ExComboBox.obj
............此处省略80个文件信息
- 上一篇:软件测试 金融项目第4期
- 下一篇:FPGA OV7670 VGA显示驱动程序
相关资源
- cain.zip
- OperatingSystemsThreeEasyPieces.pdf
- 传智播客扫地僧-C课堂讲义.rar
- RSoft软件.part5.rar
- seven2.6免费分享.7z
- 2v5k79.rar
- GBT25000.51-2016系统与软件工程系统与软
- dongyi.rar
- gosystemsprogramming.pdf
- Linux内核完全注释(修正版v3.0).pdf
- hbzrzhong_10611322.zip
- CarSim软件入门与精通.PDF
- ENVI去云补丁Haze_Tool使用说明.pdf
- QQPCMgr.7z
- 最新的Notepad.rar
- gao3431128_2371510.zip
- 数字信息资源的检索与利用-肖珑-北京
- 成都麻将.rar
- p01pme.pdf
- 精美企业公司官网小程序33.0开源解密
- Tebo-ICT.pdf
- cloud_note.zip
- ID_CARD.rar
- dujuege_4740838.zip
- 21天学通C第8版高清完整带书签PDF源码
- 席氏铁口断旺衰计算器v0.95安卓版.r
- 亿欧智库:2018中国医疗人工智能发展
- hk06.rar
- GBT31509-2015信息安全技术信息安全风险
- 新闻发布系统(界面+代码+文档)
评论
共有 条评论