// BarView.h : interface of the CBarCodeView class // ///////////////////////////////////////////////////////////////////////////// //{{AFX_INCLUDES() #include "leadbar.h" #include "leadrasterview.h" //}}AFX_INCLUDES #if !defined(AFX_BARVIEW_H__D8AB338F_863A_11D3_9D96_0060087C0CB3__INCLUDED_) #define AFX_BARVIEW_H__D8AB338F_863A_11D3_9D96_0060087C0CB3__INCLUDED_ #if _MSC_VER >= 1000 #pragma once #endif // _MSC_VER >= 1000 class CBarCodeView : public CFormView { protected: // create from serialization only CBarCodeView(); DECLARE_DYNCREATE(CBarCodeView) public: //{{AFX_DATA(CBarCodeView) enum { IDD = IDD_BARCODE_FORM }; CLEADBarCode m_LeadBar; CLEADRasterView m_LEADRasterView; //}}AFX_DATA // Attributes private: CString m_strLogFileName; BOOL m_bIsIndexDuplicated; int m_nDupIndex; BOOL m_bLMDown; UINT m_uTimerID; RECT m_rcFrame; RECT m_rcRgn; void ConvertNULLString(char * pszSrcBuf, char * pszDestBuf, int nBufCount); void GetBarCodeDataInfo(int nIndex, CHAR * pszBarInfo); void GetBarTypeStr(long ulBarType, CHAR * pszBarStr); void GetBarUnitsStr(int nUnits, CHAR * pszBarUnits); void SetRectRgn(void); void DrawRect(void); public: CBarCodeDoc * GetDocument(); CLEADRasterView* GetDocLead(); void SetDocLead(); // Operations public: // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CBarCodeView) public: virtual BOOL PreCreateWindow(CREATESTRUCT& cs); virtual void OnInitialUpdate(); protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support virtual void OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint); virtual void OnActivateView(BOOL bActivate, CView* pActivateView, CView* pDeactiveView); //}}AFX_VIRTUAL // Implementation public: virtual ~CBarCodeView(); #ifdef _DEBUG virtual void AssertValid() const; virtual void Dump(CDumpContext& dc) const; #endif protected: // Generated message map functions protected: //{{AFX_MSG(CBarCodeView) afx_msg LRESULT OnDoRealize(WPARAM wParam, LPARAM lParam); // user message afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); afx_msg void OnSize(UINT nType, int cx, int cy); afx_msg void OnActionRead(); afx_msg void OnActionWrite(); afx_msg void OnActionDupInfoFirst(); afx_msg void OnUpdateActionDupInfoFirst(CCmdUI* pCmdUI); afx_msg void OnActionDupInfoNext(); afx_msg void OnUpdateActionDupInfoNext(CCmdUI* pCmdUI); afx_msg void OnActionsOpenLogFile(); afx_msg void OnUpdateActionsOpenLogFile(CCmdUI* pCmdUI); afx_msg void OnActionsSetLogFile(); afx_msg void OnDestroy(); afx_msg void OnMouseDownLeadrasterview(short Button, short Shift, float x, float y); afx_msg void OnMouseMoveLeadrasterview(short Button, short Shift, float x, float y); afx_msg void OnMouseUpLeadrasterview(short Button, short Shift, float x, float y); DECLARE_EVENTSINK_MAP() //}}AFX_MSG DECLARE_MESSAGE_MAP() }; #ifndef _DEBUG // debug version in BarView.cpp inline CBarCodeDoc* CBarCodeView::GetDocument() { return (CBarCodeDoc*)m_pDocument; } #endif ///////////////////////////////////////////////////////////////////////////// //{{AFX_INSERT_LOCATION}} // Microsoft Developer Studio will insert additional declarations immediately before the previous line. #endif // !defined(AFX_BARVIEW_H__D8AB338F_863A_11D3_9D96_0060087C0CB3__INCLUDED_)