// WelPage.cpp : implementation file // #include "stdafx.h" #include "cldprn32.h" #include "WelPage.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CWelcomePage property page IMPLEMENT_DYNCREATE(CWelcomePage, CPropertyPage) CWelcomePage::CWelcomePage() : CPropertyPage(CWelcomePage::IDD) { //{{AFX_DATA_INIT(CWelcomePage) //}}AFX_DATA_INIT } CWelcomePage::~CWelcomePage() { } void CWelcomePage::DoDataExchange(CDataExchange* pDX) { CPropertyPage::DoDataExchange(pDX); //{{AFX_DATA_MAP(CWelcomePage) DDX_Control(pDX, IDC_EDIT_INFO, m_InfoEditBox); //}}AFX_DATA_MAP } BEGIN_MESSAGE_MAP(CWelcomePage, CPropertyPage) //{{AFX_MSG_MAP(CWelcomePage) ON_WM_DESTROY() ON_EN_SETFOCUS(IDC_EDIT_INFO, OnSetFocusEditInfo) //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CWelcomePage message handlers BOOL CWelcomePage::OnInitDialog() { CPropertyPage::OnInitDialog(); CString sInfo; sInfo = TEXT("This demo program was created with LEADTOOLS Medical Imaging Suite toolkit. " "It uses the capabilities of the LDicomPrintSCU C++ class to implement a " "Print Management SCU. All the SOP/Meta SOP Classes defined by the Print " "Management Service Class are supported.\r\n\r\n" "The functionality offered by the demo is split into the pages of five tabs " "as described below:\r\n\r\n" "The Association Page\r\n" "This should be the starting point, where you provide information about both " "the Print SCP you want to connect to and the Print SCU itself. The SOP/Meta " "SOP Classes to be supported by the Print SCU are specified in this page. " "Once the Association is established, the Classes supported on the " "Association are listed. Also, the Association can be released or aborted " "from this page.\r\n\r\n" "The Basic Print Page\r\n" "This is where you can perform Basic (Grayscale/Color) Print Management. In " "this page, you can create and manipulate Film Sessions and Film Boxes, and " "set the resulting Image Boxes and Annotation Boxes. Also, you can create " "Presentation LUTs and Basic Print Image Overlay Boxes so that they can be " "referenced by Film Boxes and/or Image Boxes.\r\n\r\n" "The Pull Stored Print Page\r\n" "This is where you can perform Pull Stored Print Management. A typical usage " "is to provide information about the Stored Print Storage SOP Instance(s) to " "be referenced, specify the various parameters, create the session, issue the " "printing command, and finally delete the session.\r\n\r\n" "The Printer Page\r\n" "Here you can query the Print SCP for information about the printer. Any " "received printer status notifications will be displayed in this page. Also, " "the Print SCP can be queried for the printer configuration information.\r\n\r\n" "The Print Jobs Page\r\n" "Whenever a printing command is issued, and if the Print Job SOP Class is " "supported on the Association, a Print Job item is added to this page, so " "that you can query the Print SCP for information about the Print Job. Also, " "any received Print Job status notifications are displayed in this page."); m_InfoEditBox.SetWindowText(sInfo); // Set the font and the font size used by the info edit box LOGFONT LogFont; GetFont()->GetLogFont(&LogFont); lstrcpy(LogFont.lfFaceName, TEXT("Arial")); LogFont.lfHeight = -12; m_InfoEditBoxFont.CreateFontIndirect(&LogFont); m_InfoEditBox.SetFont(&m_InfoEditBoxFont); return TRUE; } void CWelcomePage::OnDestroy() { CPropertyPage::OnDestroy(); // Delete the font object m_InfoEditBoxFont.DeleteObject(); } void CWelcomePage::OnSetFocusEditInfo() { m_InfoEditBox.SetSel(-1, 0, TRUE); }