// BarView.h : interface of the CBarCodeView class // ///////////////////////////////////////////////////////////////////////////// #if !defined(AFX_BARVIEW_H__92C972F2_759C_11D3_9D95_0060087C0CB3__INCLUDED_) #define AFX_BARVIEW_H__92C972F2_759C_11D3_9D95_0060087C0CB3__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 class CBarCodeView : public CView { protected: // create from serialization only CBarCodeView(); DECLARE_DYNCREATE(CBarCodeView) // Attributes public: CBarCodeDoc* GetDocument(); // Operations public: CString m_strLogFileName; L_INT m_nDupIndex; L_BOOL m_bIsIndexDuplicated; LPRECT m_prcBarLocation; LBitmapWindow m_LeadBmpWnd; pBARCODEDATA m_pBarCodeData; L_UINT m_uTimerID; L_BOOL m_bLBtnDown; // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CBarCodeView) public: virtual void OnDraw(CDC* pDC); // overridden to draw this view virtual BOOL PreCreateWindow(CREATESTRUCT& cs); protected: virtual void OnInitialUpdate(); // called first time after construct virtual void OnActivateView(BOOL bActivate, CView* pActivateView, CView* pDeactiveView); //}}AFX_VIRTUAL afx_msg LRESULT OnHandlePalette(WPARAM wParam, LPARAM lParam); // Implementation public: virtual ~CBarCodeView(); #ifdef _DEBUG virtual void AssertValid() const; virtual void Dump(CDumpContext& dc) const; #endif protected: void GetBarUnitsStr(L_INT nUnits, L_TCHAR * pszBarUnits); void GetBarTypeStr(L_UINT32 ulBarType, L_TCHAR * pszBarStr); void GetBarCodeDataInfo(L_INT nIndex, L_TCHAR L_FAR * pszBarInfo); void ConvertNULLString(L_CHAR L_FAR * pszSrcBuf, L_CHAR L_FAR * pszDestBuf, L_INT nBufCount); // Generated message map functions protected: //{{AFX_MSG(CBarCodeView) afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); afx_msg void OnEditCopy(); afx_msg void OnActionRead(); afx_msg void OnActionWrite(); afx_msg void OnActionDupInfoFirst(); afx_msg void OnActionDupInfoNext(); afx_msg void OnUpdateActionDupInfoNext(CCmdUI* pCmdUI); afx_msg void OnActionsSetLogFile(); afx_msg void OnActionsOpenLogFile(); afx_msg void OnUpdateActionsOpenLogFile(CCmdUI* pCmdUI); afx_msg void OnViewSelectRgn(); afx_msg void OnViewCancelRgn(); afx_msg void OnUpdateViewCancelRgn(CCmdUI* pCmdUI); afx_msg void OnLButtonDown(UINT nFlags, CPoint point); afx_msg void OnLButtonUp(UINT nFlags, CPoint point); afx_msg void OnTimer(UINT nIDEvent); afx_msg void OnUpdateActionDupInfoFirst(CCmdUI* pCmdUI); afx_msg void OnFileSaveAs(); //}}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 Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_BARVIEW_H__92C972F2_759C_11D3_9D95_0060087C0CB3__INCLUDED_)