📄 reccing.cpp
字号:
// Reccing.cpp : implementation file
//
#include "stdafx.h"
#include "bxt.h"
#include "Reccing.h"
#include "bxtdlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// Reccing dialog
Reccing::Reccing(CWnd* pParent /*=NULL*/)
: CDialog(Reccing::IDD, pParent)
{
//{{AFX_DATA_INIT(Reccing)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}
void Reccing::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(Reccing)
// NOTE: the ClassWizard will add DDX and DDV calls here
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(Reccing, CDialog)
//{{AFX_MSG_MAP(Reccing)
ON_BN_CLICKED(IDC_BUTTON2, OnButton2)
ON_BN_CLICKED(IDC_BUTTON3, OnButton3)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// Reccing message handlers
void Reccing::OnButton2()
{
//char filename[100];
//sprintf(filename,"%s","c:\\test.jpg");
if( ((CBxtDlg*)AfxGetMainWnd())->geninfo->m_isnew )
{
return;
}
((CBxtDlg*)AfxGetMainWnd())->rec->SendMessage(WX_RECONE,0,0);
//(((CBxtDlg*)AfxGetMainWnd())->rec)->SendMessage(WX_RECONE,0,(LPARAM)filename);
}
void
Reccing::OnButton3()
{
if ( ((CBxtDlg*)AfxGetMainWnd())->rec->CapturedNum>1 )
{
CString picpath;
picpath = ((CBxtDlg *)AfxGetMainWnd())->m_workingpath ;
//picpath += m_id;
picpath += "\\";
((CBxtDlg *)AfxGetMainWnd())->imgpcs->refresh(picpath.GetBuffer(picpath.GetLength()));
((CBxtDlg *)AfxGetMainWnd())->m_m.SelectTab(1);
((CBxtDlg *)AfxGetMainWnd())->TabSelChange(IDC_TAB1,0);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -