// ConfoDlg.cpp : implementation file // #include "stdafx.h" #include "dicomapp.h" #include "ConfoDlg.h" ///////////////////////////////////////////////////////////////////////////// // CDicomConformanceDlg dialog CDicomConformanceDlg::CDicomConformanceDlg(CWnd* pParent /*=NULL*/) : CDialog(CDicomConformanceDlg::IDD, pParent) { //{{AFX_DATA_INIT(CDicomConformanceDlg) // NOTE: the ClassWizard will add member initialization here //}}AFX_DATA_INIT m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME); } void CDicomConformanceDlg::DoDataExchange(CDataExchange* pDX) { CDialog::DoDataExchange(pDX); //{{AFX_DATA_MAP(CDicomConformanceDlg) DDX_Control(pDX, IDC_LIST, m_List); //}}AFX_DATA_MAP } BEGIN_MESSAGE_MAP(CDicomConformanceDlg, CDialog) //{{AFX_MSG_MAP(CDicomConformanceDlg) //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CDicomConformanceDlg message handlers L_BOOL EXT_CALLBACK fnConformance(pDICOMELEMENT pElement, L_UINT16 nFlags, L_VOID *pUserData) { CListBox *pList; CString strText; pList=(CListBox *)pUserData; strText.Format("%04X:%04X - Error:\t", GETGROUP(pElement->nTag), GETELEMENT(pElement->nTag)); if (nFlags &CALLBACK_ERROR_UNKNOWN_CLASS) { strText += "Class\t"; } if (nFlags &CALLBACK_ERROR_UNKNOWN_TAG) { strText += "Tag\t"; } if (nFlags &CALLBACK_ERROR_UNKNOWN_VR) { strText += "VR\t"; } if (nFlags &CALLBACK_ERROR_WRONG_VR) { strText += "VR\t"; } if (nFlags &CALLBACK_ERROR_MIN_VM) { strText += "MinVM\t"; } if (nFlags &CALLBACK_ERROR_MAX_VM) { strText += "MaxVM\t"; } if (nFlags &CALLBACK_ERROR_DIVIDE_VM) { strText += "DivideVM\t"; } if (nFlags &CALLBACK_ERROR_IMAGE) { strText += "Image\t"; } pList->AddString(strText); return TRUE; } BOOL CDicomConformanceDlg::OnInitDialog() { CDialog::OnInitDialog(); SetIcon(m_hIcon, TRUE); // Set big icon SetIcon(m_hIcon, FALSE); // Set small icon m_pDS->ConformanceDS(fnConformance, &m_List); return TRUE; // return TRUE unless you set the focus to a control // EXCEPTION: OCX Property Pages should return FALSE }