摄像头src.zip
摄像头src.zip
代码片段和文件信息
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2018-04-02 20:14 CameraDevice
文件 118784 2018-03-16 14:53 CameraDeviceAddstrToGraphic.dll
文件 31079 2018-03-16 14:53 CameraDeviceBtnST.cpp
文件 5639 2018-03-16 14:53 CameraDeviceBtnST.h
文件 74008 2018-04-02 19:45 CameraDeviceCameraDevice.aps
文件 1569 2018-04-02 20:14 CameraDeviceCameraDevice.clw
文件 2147 2018-03-16 14:53 CameraDeviceCameraDevice.cpp
文件 6420 2018-03-16 14:53 CameraDeviceCameraDevice.dsp
文件 547 2018-03-16 14:53 CameraDeviceCameraDevice.dsw
文件 1390 2018-03-16 14:53 CameraDeviceCameraDevice.h
文件 803840 2018-04-02 20:14 CameraDeviceCameraDevice.ncb
文件 54784 2018-04-02 20:14 CameraDeviceCameraDevice.opt
文件 258 2018-04-02 19:50 CameraDeviceCameraDevice.plg
文件 6254 2018-03-16 14:53 CameraDeviceCameraDevice.rc
文件 29020 2018-04-02 19:50 CameraDeviceCameraDeviceDlg.cpp
文件 2782 2018-03-16 14:53 CameraDeviceCameraDeviceDlg.h
目录 0 2018-04-02 19:50 CameraDeviceDebug
文件 118784 2018-03-16 14:53 CameraDeviceDebugAddstrToGraphic.dll
文件 68157 2018-04-02 19:48 CameraDeviceDebugBtnST.obj
文件 3785728 2018-03-16 14:53 CameraDeviceDebugCameraDevice.bsc
文件 118846 2018-03-16 14:53 CameraDeviceDebugCameraDevice.exe
文件 311948 2018-03-16 14:53 CameraDeviceDebugCameraDevice.ilk
文件 20354 2018-04-02 19:48 CameraDeviceDebugCameraDevice.obj
文件 8829900 2018-04-02 19:48 CameraDeviceDebugCameraDevice.pch
文件 1393664 2018-04-02 19:50 CameraDeviceDebugCameraDevice.pdb
文件 54316 2018-04-02 19:48 CameraDeviceDebugCameraDevice.res
文件 0 2018-03-16 14:53 CameraDeviceDebugCameraDevice.sbr
文件 126135 2018-04-02 19:50 CameraDeviceDebugCameraDeviceDlg.obj
文件 0 2018-03-16 14:53 CameraDeviceDebugCameraDeviceDlg.sbr
文件 131152 2018-03-16 14:53 CameraDeviceDebugDirectXVideoPic.dll
文件 26415 2018-04-02 19:48 CameraDeviceDebugExComboBox.obj
............此处省略80个文件信息
#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 CameraDeviceAddstrToGraphic.dll
文件 31079 2018-03-16 14:53 CameraDeviceBtnST.cpp
文件 5639 2018-03-16 14:53 CameraDeviceBtnST.h
文件 74008 2018-04-02 19:45 CameraDeviceCameraDevice.aps
文件 1569 2018-04-02 20:14 CameraDeviceCameraDevice.clw
文件 2147 2018-03-16 14:53 CameraDeviceCameraDevice.cpp
文件 6420 2018-03-16 14:53 CameraDeviceCameraDevice.dsp
文件 547 2018-03-16 14:53 CameraDeviceCameraDevice.dsw
文件 1390 2018-03-16 14:53 CameraDeviceCameraDevice.h
文件 803840 2018-04-02 20:14 CameraDeviceCameraDevice.ncb
文件 54784 2018-04-02 20:14 CameraDeviceCameraDevice.opt
文件 258 2018-04-02 19:50 CameraDeviceCameraDevice.plg
文件 6254 2018-03-16 14:53 CameraDeviceCameraDevice.rc
文件 29020 2018-04-02 19:50 CameraDeviceCameraDeviceDlg.cpp
文件 2782 2018-03-16 14:53 CameraDeviceCameraDeviceDlg.h
目录 0 2018-04-02 19:50 CameraDeviceDebug
文件 118784 2018-03-16 14:53 CameraDeviceDebugAddstrToGraphic.dll
文件 68157 2018-04-02 19:48 CameraDeviceDebugBtnST.obj
文件 3785728 2018-03-16 14:53 CameraDeviceDebugCameraDevice.bsc
文件 118846 2018-03-16 14:53 CameraDeviceDebugCameraDevice.exe
文件 311948 2018-03-16 14:53 CameraDeviceDebugCameraDevice.ilk
文件 20354 2018-04-02 19:48 CameraDeviceDebugCameraDevice.obj
文件 8829900 2018-04-02 19:48 CameraDeviceDebugCameraDevice.pch
文件 1393664 2018-04-02 19:50 CameraDeviceDebugCameraDevice.pdb
文件 54316 2018-04-02 19:48 CameraDeviceDebugCameraDevice.res
文件 0 2018-03-16 14:53 CameraDeviceDebugCameraDevice.sbr
文件 126135 2018-04-02 19:50 CameraDeviceDebugCameraDeviceDlg.obj
文件 0 2018-03-16 14:53 CameraDeviceDebugCameraDeviceDlg.sbr
文件 131152 2018-03-16 14:53 CameraDeviceDebugDirectXVideoPic.dll
文件 26415 2018-04-02 19:48 CameraDeviceDebugExComboBox.obj
............此处省略80个文件信息
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。
评论列表(条)