#if !defined(AFX_PRNSHEET_H__E343C7EE_E220_4F5C_A75D_6725704F89BF__INCLUDED_) #define AFX_PRNSHEET_H__E343C7EE_E220_4F5C_A75D_6725704F89BF__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 // PrnSheet.h : header file // #include "WelPage.h" #include "AssoPage.h" #include "BPrnPage.h" #include "PStrPage.h" #include "PrnPage.h" #include "PJobPage.h" #include "EditBox.h" #define WELCOME_PAGE_INDEX 0 #define ASSOCIATION_PAGE_INDEX 1 #define BASIC_PRINT_PAGE_INDEX 2 #define PULL_STORED_PRINT_PAGE_INDEX 3 #define PRINTER_PAGE_INDEX 4 #define PRINT_JOBS_PAGE_INDEX 5 #define SET_SPARAM(Param, ChkBox, Value) \ if (ChkBox.m_bEnabled && ChkBox.m_bChecked) \ Param = Value; \ else \ Param = NULL #define SET_NPARAM(Param, ChkBox, Value) \ if (ChkBox.m_bEnabled && ChkBox.m_bChecked) \ Param = Value; \ else \ Param = -1 #define SPECIFY_ATTRIB(ListCtrl, ItemIndex, AttribStr) \ lstrcpy(AttribStr, ListCtrl.GetCheck(ItemIndex) ? TEXT(" ") : TEXT("")) ///////////////////////////////////////////////////////////////////////////// // CPrintSCU class CPrintScuSheet; // Forward declaration class CPrintSCU : public LDicomPrintSCU { public: CPrintSCU() : m_pPrintScuSheet(NULL) { } CPrintScuSheet* m_pPrintScuSheet; enum { N_CREATE_RQ, N_SET_RQ, N_ACTION_RQ, N_DELETE_RQ, N_GET_RQ, N_CREATE_RSP, N_SET_RSP, N_ACTION_RSP, N_DELETE_RSP, N_GET_RSP }; static struct StatusInfo { UINT uStatus; LPCTSTR pszSOPClass; int iType; } Statuses[]; // Not all of them static CString m_sSendingIndicator; static CString m_sReceivingIndicator; L_VOID OnStatus(L_UINT16 uStatus, L_UINT16 uOperationStatus); L_VOID OnPrinterReport(L_UINT16 uEventTypeID, const pPRINTERREPORTINFO pReportInfo); L_VOID OnPrintJobReport(L_PCSTR pszPrintJobInstanceUID, L_UINT16 uEventTypeID, const pPRINTJOBREPORTINFO pReportInfo); L_VOID Abort(); }; ///////////////////////////////////////////////////////////////////////////// // CPrintScuSheet class CPrintScuSheet : public CPropertySheet { DECLARE_DYNAMIC(CPrintScuSheet) public: CPrintScuSheet(LPCTSTR pszCaption, CWnd* pParentWnd = NULL, UINT iSelectPage = 0); virtual ~CPrintScuSheet(); // Pages CWelcomePage m_WelcomePage; CAssociationPage m_AssociationPage; CBasicPrintPage m_BasicPrintPage; CPullStoredPrintPage m_PullStoredPrintPage; CPrinterPage m_PrinterPage; CPrintJobsPage m_PrintJobsPage; CPrintSCU m_PrintSCU; CStatusEditBox m_StatusEditBox; void DisplayError(L_INT iErrorCode); void FlagPendingOperation(BOOL bPendingOperation = TRUE); void ResetPages(); // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CPrintScuSheet) public: virtual BOOL OnInitDialog(); protected: virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam); //}}AFX_VIRTUAL // Generated message map functions protected: //{{AFX_MSG(CPrintScuSheet) afx_msg void OnSysCommand(UINT nID, LPARAM lParam); afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); afx_msg void OnDestroy(); //}}AFX_MSG DECLARE_MESSAGE_MAP() private: CFont m_StatusEditBoxFont; }; ///////////////////////////////////////////////////////////////////////////// //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_PRNSHEET_H__E343C7EE_E220_4F5C_A75D_6725704F89BF__INCLUDED_)