ZDlg.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. // ZDlg.h : header file
  2. //
  3. #if !defined(AFX_ZDLG_H__BCD34606_B9B6_11DA_8051_0050BA012D9B__INCLUDED_)
  4. #define AFX_ZDLG_H__BCD34606_B9B6_11DA_8051_0050BA012D9B__INCLUDED_
  5. #if _MSC_VER > 1000
  6. #pragma once
  7. #endif // _MSC_VER > 1000
  8. /////////////////////////////////////////////////////////////////////////////
  9. #include "EditMove.h"
  10. class ZDlg : public CDialog
  11. {
  12. // Construction
  13. public:
  14. ~ZDlg();
  15. ZDlg(CWnd* pParent = NULL); // standard constructor
  16. // Dialog Data
  17. //{{AFX_DATA(ZDlg)
  18. enum { IDD = DLG_MAIN };
  19. CButton btn_Menu;
  20. EditMove ed_Move;
  21. CEdit ed_PrintY;
  22. CEdit ed_PrintX;
  23. CEdit ed_PrintH;
  24. CEdit ed_PenW;
  25. CComboBox cmb_Style;
  26. CButton btn_OnTop;
  27. CComboBox cmb_MapMode;
  28. CEdit ed_Code;
  29. //}}AFX_DATA
  30. // ClassWizard generated virtual function overrides
  31. //{{AFX_VIRTUAL(ZDlg)
  32. protected:
  33. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  34. virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
  35. //}}AFX_VIRTUAL
  36. // Implementation
  37. protected:
  38. // Generated message map functions
  39. //{{AFX_MSG(ZDlg)
  40. virtual BOOL OnInitDialog();
  41. afx_msg void OnPaint();
  42. afx_msg void On_IDOK();
  43. afx_msg void On_BtnHelp();
  44. afx_msg void OnDestroy();
  45. afx_msg void On_BtnClose();
  46. afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
  47. afx_msg void On_BtnOnTop();
  48. afx_msg void On_CmbStyleSelChange();
  49. afx_msg void On_CmbMapModeSelChange();
  50. afx_msg void On_BtnPrint();
  51. afx_msg void On_EdCodeChange();
  52. afx_msg void On_EdPenWidthChange();
  53. //}}AFX_MSG
  54. DECLARE_MESSAGE_MAP()
  55. private:
  56. void P_DrawBarcode(CDC*pDC,int iX,int iY0,int iY10,int iY11,COLORREF clrBar,COLORREF clrSpace,int iPenW,BarcodeBase*pBc);
  57. void P_SetOnTop();
  58. int P_AddOrGet(CComboBox&box,BOOL bAdd);
  59. void P_DrawBarCode(CDC*pDC,const BOOL bPrint);
  60. };
  61. //{{AFX_INSERT_LOCATION}}
  62. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  63. #endif // !defined(AFX_ZDLG_H__BCD34606_B9B6_11DA_8051_0050BA012D9B__INCLUDED_)