📄 flashctrl.cpp
字号:
// FlashCtrl.cpp : implementation file
//
#include "stdafx.h"
#include "CamTool.h"
#include "CtrlSheet.h"
#include "FlashCtrl.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
extern BOOL ApplyEn;
/////////////////////////////////////////////////////////////////////////////
// CFlashCtrl property page
IMPLEMENT_DYNCREATE(CFlashCtrl, CPropertyPage)
CFlashCtrl::CFlashCtrl() : CPropertyPage(CFlashCtrl::IDD)
{
//{{AFX_DATA_INIT(CFlashCtrl)
m_flash = 1;
m_camflash = FALSE;
//}}AFX_DATA_INIT
}
CFlashCtrl::~CFlashCtrl()
{
}
void CFlashCtrl::DoDataExchange(CDataExchange* pDX)
{
CPropertyPage::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CFlashCtrl)
DDX_Radio(pDX, IDC_FLASH_AUTO, m_flash);
DDX_Check(pDX, IDC_INTERFLASHOFF, m_camflash);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CFlashCtrl, CPropertyPage)
//{{AFX_MSG_MAP(CFlashCtrl)
// ON_BN_CLICKED(IDC_FLASH_AUTO, OnFlashActionChanged)
// ON_BN_CLICKED(IDC_FLASH_OFF, OnFlashActionChanged)
// ON_BN_CLICKED(IDC_FLASH_FILL, OnFlashActionChanged)
// ON_BN_CLICKED(IDC_FLASH_REDEYES, OnFlashActionChanged)
ON_CONTROL_RANGE(BN_CLICKED, IDC_FLASH_AUTO, IDC_FLASH_REDEYES, OnFlashActionChanged)
ON_BN_CLICKED(IDC_INTERFLASHOFF, OnFlashActionChanged)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CFlashCtrl message handlers
void CFlashCtrl::OnFlashActionChanged()
{
// TODO: Add your control notification handler code here
CPropertySheet* pSheet = STATIC_DOWNCAST(CPropertySheet, GetParent());
CCtrlSheet* pModalSheet = DYNAMIC_DOWNCAST(CCtrlSheet, pSheet);
if (pModalSheet != NULL)
{
UpdateData();
}
CapImgInfo[CAP_MANUAL_FLASH_MODE] = m_flash;
CapImgInfo[CAP_INTERNAL_FLASH] = m_camflash;
ApplyEn = 1;
AfxGetMainWnd()->GetDlgItem(IDC_APPLY)->EnableWindow(TRUE);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -