reccing.cpp

来自「CT工作站具有打印报告、病历管理、图像处理专家词库等功能」· C++ 代码 · 共 73 行

CPP
73
字号
// 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 + =
减小字号Ctrl + -
显示快捷键?