⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dispimginfo.cpp

📁 CT工作站具有打印报告、病历管理、图像处理专家词库等功能
💻 CPP
字号:
// DispImgInfo.cpp : implementation file
// 

#include "stdafx.h"
#include "bxt.h"
#include "DispImgInfo.h"
#include "bxtDlg.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// DispImgInfo dialog


DispImgInfo::DispImgInfo(CWnd* pParent /*=NULL*/)
	: CDialog(DispImgInfo::IDD, pParent)
{
	//{{AFX_DATA_INIT(DispImgInfo)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
}


void DispImgInfo::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(DispImgInfo)
		// NOTE: the ClassWizard will add DDX and DDV calls here
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(DispImgInfo, CDialog)
	//{{AFX_MSG_MAP(DispImgInfo)
	ON_BN_CLICKED(IDC_BUTTON1, OnButton1)
	ON_BN_CLICKED(IDC_BUTTON4, OnButton4)
	ON_BN_CLICKED(IDC_BUTTON5, OnButton5)
	ON_BN_CLICKED(IDC_BUTTON6, OnButton6)
	ON_BN_CLICKED(IDC_BUTTON2, OnButton2)
	ON_BN_CLICKED(IDC_BUTTON3, OnButton3)
	ON_BN_CLICKED(IDC_CHECK1, OnCheck1)
	ON_BN_CLICKED(IDC_BUTTON7, OnButton7)
	ON_BN_CLICKED(IDC_BUTTON15, OnButton15)
	ON_BN_CLICKED(IDC_BUTTON16, OnButton16)
	ON_BN_CLICKED(IDC_BUTTON17, OnButton17)
	ON_BN_CLICKED(IDC_BUTTON18, OnButton18)
	ON_BN_CLICKED(IDC_BUTTON19, OnButton19)
	ON_BN_CLICKED(IDC_BUTTON20, OnButton20)
	ON_BN_CLICKED(IDC_BUTTON21, OnButton21)
	ON_BN_CLICKED(IDC_BUTTON25, OnButton25)
	ON_BN_CLICKED(IDC_BUTTON22, OnButton22)
	ON_BN_CLICKED(IDC_BUTTON23, OnButton23)
	ON_BN_CLICKED(IDC_BUTTON24, OnButton24)
	ON_BN_CLICKED(IDC_BUTTON26, OnButton26)
	ON_BN_CLICKED(IDC_BUTTON27, OnButton27)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// DispImgInfo message handlers

BOOL DispImgInfo::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	// TODO: Add extra initialization here
	p1.SubclassDlgItem(IDC_BUTTON1,this);
	p1.SetIcon(IDI_P1);
	p1.SetWindowText("每屏一幅");
	p2.SubclassDlgItem(IDC_BUTTON2,this);
	p2.SetIcon(IDI_PH2);
	p2.SetWindowText("左右两幅");
	p3.SubclassDlgItem(IDC_BUTTON3,this);
	p3.SetIcon(IDI_PV2);
	p3.SetWindowText("上下两幅");
	p4.SubclassDlgItem(IDC_BUTTON4,this);
	p4.SetIcon(IDI_P4);
	p4.SetWindowText("每屏四幅");
	p5.SubclassDlgItem(IDC_BUTTON5,this);
	p5.SetIcon(IDI_P6);
	p5.SetWindowText("每屏六幅");
	p6.SubclassDlgItem(IDC_BUTTON6,this);
	p6.SetIcon(IDI_P9);
	p6.SetWindowText("每屏九幅");
	
	((CButton*)(GetDlgItem(IDC_CHECK1)))->SetCheck(0);
	//((CButton*)(GetDlgItem(IDC_CHECK1)))->SetIcon(AfxGetApp()->LoadIcon(IDI_P9));
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}

void DispImgInfo::OnButton1() 
{
	((CBxtDlg*)AfxGetMainWnd())->imgpcs->SendMessage(WX_DSPIMG,1,0);//one pic
}

void DispImgInfo::OnButton4() 
{
	((CBxtDlg*)AfxGetMainWnd())->imgpcs->SendMessage(WX_DSPIMG,4,0);//four pic
	
}

void DispImgInfo::OnButton5() 
{
	((CBxtDlg*)AfxGetMainWnd())->imgpcs->SendMessage(WX_DSPIMG,6,0);//six pic	
}

void DispImgInfo::OnButton6() 
{
	((CBxtDlg*)AfxGetMainWnd())->imgpcs->SendMessage(WX_DSPIMG,9,0);//nine pic
	
}

void DispImgInfo::OnButton2() 
{
	((CBxtDlg*)AfxGetMainWnd())->imgpcs->SendMessage(WX_DSPIMG,2,0);// p|p two pic
	
}

void DispImgInfo::OnButton3() 
{
	((CBxtDlg*)AfxGetMainWnd())->imgpcs->SendMessage(WX_DSPIMG,3,0);// p/p tow pic
	
}

void DispImgInfo::OnCheck1() 
{
	int c=((CButton*)(GetDlgItem(IDC_CHECK1)))->GetCheck();
	((CBxtDlg*)AfxGetMainWnd())->imgpcs->SendMessage(WX_DSPSTRETCH,c,0);// Stretch pic
}

void DispImgInfo::OnButton7() 
{
	((CBxtDlg*)AfxGetMainWnd())->imgpcs->SendMessage(WX_CHGPALT,1,0);// Chg Platte
}

void DispImgInfo::OnButton15() 
{
	((CBxtDlg*)AfxGetMainWnd())->imgpcs->SendMessage(WX_CHGPALT,2,0);// Chg Platte
	
}

void DispImgInfo::OnButton16() 
{
	((CBxtDlg*)AfxGetMainWnd())->imgpcs->SendMessage(WX_CHGPALT,3,0);// Chg Platte
}

void DispImgInfo::OnButton17() 
{
	((CBxtDlg*)AfxGetMainWnd())->imgpcs->SendMessage(WX_CHGPALT,4,0);// Chg Platte
	
}

void DispImgInfo::OnButton18() 
{
	((CBxtDlg*)AfxGetMainWnd())->imgpcs->SendMessage(WX_CHGPALT,5,0);// Chg Platte
	
}

void DispImgInfo::OnButton19() 
{
	((CBxtDlg*)AfxGetMainWnd())->imgpcs->SendMessage(WX_CHGPALT,6,0);// Chg Platte
	
}

void DispImgInfo::OnButton20() 
{
	((CBxtDlg*)AfxGetMainWnd())->imgpcs->SendMessage(WX_CHGPALT,7,0);// Chg Platte
	
}

void DispImgInfo::OnButton21() 
{
	((CBxtDlg*)AfxGetMainWnd())->imgpcs->SendMessage(WX_CHGPALT,8,0);// Chg Platte
	
}

void DispImgInfo::OnButton25() 
{
	((CBxtDlg*)AfxGetMainWnd())->imgpcs->SendMessage(WX_CHGPALT,12,0);// Chg Platte
	
}

void DispImgInfo::OnButton22() 
{
	((CBxtDlg*)AfxGetMainWnd())->imgpcs->SendMessage(WX_CHGPALT,9,0);// Chg Platte
	
}

void DispImgInfo::OnButton23() 
{
	((CBxtDlg*)AfxGetMainWnd())->imgpcs->SendMessage(WX_CHGPALT,10,0);// Chg Platte
	
}

void DispImgInfo::OnButton24() 
{
	((CBxtDlg*)AfxGetMainWnd())->imgpcs->SendMessage(WX_CHGPALT,11,0);// Chg Platte
	
}

void DispImgInfo::OnButton26() 
{
	((CBxtDlg*)AfxGetMainWnd())->imgpcs->SendMessage(WX_CHGPALT,13,0);// Chg Platte
	
}

void DispImgInfo::OnButton27() 
{
	((CBxtDlg*)AfxGetMainWnd())->imgpcs->SendMessage(WX_CHGPALT,14,0);// Chg Platte
	
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -