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

📄 dicomreaddlg.h

📁 转化为DIB位图再显示出来的dicom文件C++代码
💻 H
字号:
// DicomReadDlg.h : header file
//

#if !defined(AFX_DICOMREADDLG_H__EA29AB50_24E6_4CFD_9BD3_DB2F3A8BAE76__INCLUDED_)
#define AFX_DICOMREADDLG_H__EA29AB50_24E6_4CFD_9BD3_DB2F3A8BAE76__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "dib.h"
/////////////////////////////////////////////////////////////////////////////
// CDicomReadDlg dialog
#include "dcmtk\dcmimgle\dcmimage.h"
#include "dcmtk\dcmdata\dcswap.h"
class CDicomReadDlg : public CDialog
{
// Construction
public:
	bool b_Isediting;
	int mousey;
	int mousex;
	void RefreshDraw();
	CDicomReadDlg(CWnd* pParent = NULL);	// standard constructor
	~CDicomReadDlg();
	CDib dib;
	double WindowCenter,WindowWidth;
// Dialog Data
	//{{AFX_DATA(CDicomReadDlg)
	enum { IDD = IDD_DICOMREAD_DIALOG };
	CSliderCtrl	m_sw;
	CSliderCtrl	m_sc;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CDicomReadDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;
	HDIB h_ImageDib;
	DicomImage* di;
	// Generated message map functions
	//{{AFX_MSG(CDicomReadDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnKillfocusW();
	afx_msg void OnKillfocusC();
	afx_msg void OnReleasedcaptureSw(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnReleasedcaptureSc(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnChoosePath();
	afx_msg void OnCustomdrawSw(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnOutofmemorySw(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnRButtonUp(UINT nFlags, CPoint point);
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_DICOMREADDLG_H__EA29AB50_24E6_4CFD_9BD3_DB2F3A8BAE76__INCLUDED_)

⌨️ 快捷键说明

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