📄 syssetup.h
字号:
//{{AFX_INCLUDES()
#include "msflexgrid.h"
//}}AFX_INCLUDES
#if !defined(AFX_SYSSETUP_H__F5DAEE13_8DBC_4E0D_9D3C_23ECEB87D2D1__INCLUDED_)
#define AFX_SYSSETUP_H__F5DAEE13_8DBC_4E0D_9D3C_23ECEB87D2D1__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// SysSetUp.h : header file
//
#include "PrintSet.h"
/////////////////////////////////////////////////////////////////////////////
// CSysSetUp dialog
class CSysSetUp : public CDialog
{
// Construction
public:
CString m_OStrCom;
BOOL bOperSuccess;
void ResetGrid(int nValue);//清除控件所有信息
int lValue;
CSysSetUp(CWnd* pParent = NULL); // standard constructor
void QueryKey(
LPCTSTR lpName,
DWORD dwType,
LPBYTE lpValue,
DWORD lpcbValue);
void CloseKey();
void SetKey(
LPCTSTR lpName,
DWORD dwType,
LPCTSTR lpData,
DWORD cbData );
void OpenKey(HKEY hKey,
LPCTSTR lpSubKey);
HKEY m_hKey;
void SetItem(int nValue, const CString &sKey, const CString &sName);
int GetItem(const CString &sKey, const CString &sName);
void SetStringItem(const CString &sItem, const CString &sKey, const CString &sName);
CString GetStringItem(const CString &sKey, const CString &sName);
//如下函数注释见.cpp文件
void SetFlag(int nFlag);
int GetFlag();
void SetTelIndex(const CString &sTelIndex);
CString GetTelIndex();
void SetCurDay(const CString &sCurDay);
CString GetCurDay();
void SetQuitFlag(int nQuitFlag);
int GetQuitFlag();
void SetPrintFlag(int nPrintFlag);
int GetPrintFlag();
void SetSaleCutFlag(int nSaleCutFlag);
int GetSaleCutFlag();
void SetPrintOneFlag(int nPrintOneFlag);
int GetPrintOneFlag();
void SetODBCFlag(int nODBCFlag);
int GetODBCFlag();
void SetUpSpace(const CString &sUpSpace);//设置打印上边距
CString GetUpSpace();
//设置ODBC键值
void SetODBCDataSources(const CString &strTitle);
void SetODBCDBQ(const CString &strTitle);
void SetODBCDriver(const CString &strTitle);
void SetODBCJet(const CString &strTitle);
void SetODBCDriverId(DWORD dwVal);
void SetRadio(int nRadioNum);
int GetRadio();
void SetAddMoneyFlag(int nAddFlag);
int GetAddMoneyFlag();
void SetNoPreMoney(int nNoPreMoney);
int GetNoPreMoney();
void SetMoneyLine(int nMoney,CString strLine);
void SetMoneyLine(const CString &strMoney,const CString &strLine);
CString GetMoneyLine(const CString &strLine);
CPrintSet *pdlg;
void ReadFromFile();//读取打印信息的函数
int nPrintGridCount;
CString strLanWidth[10];//保存各栏的宽度
// Dialog Data
//{{AFX_DATA(CSysSetUp)
enum { IDD = IDD_DIALOG_SETUP };
CComboBox m_eComboLine;
CComboBox m_eComboGw2;
CComboBox m_LevelComb;
CString m_strCom;
CString m_strOName;
CString m_strOPswd1;
CString m_strOPswd2;
CMSFlexGrid m_UserGrid;
CString m_strLevel;
BOOL m_bCheckQuit;
BOOL m_bCheckPrint;
BOOL m_bCheckSaleCut;
CString m_strComboGw1;
CString m_strComboGw2;
CString m_strComboLine;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CSysSetUp)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CSysSetUp)
afx_msg void OnOAdd();
afx_msg void OnOMod();
afx_msg void OnODel();
afx_msg void OnChangeCom();
virtual BOOL OnInitDialog();
afx_msg void OnSearch();
afx_msg void OnRadioDown();
afx_msg void OnRadioNodown();
virtual void OnCancel();
afx_msg void OnSysSetup();
afx_msg void OnCheckQuit();
afx_msg void OnCheckPrint();
afx_msg void OnButtonPrint();
afx_msg void OnCheckSalecut();
afx_msg void OnClickMsflexgridUser();
afx_msg void OnSelchangeComboLine();
DECLARE_EVENTSINK_MAP()
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_SYSSETUP_H__F5DAEE13_8DBC_4E0D_9D3C_23ECEB87D2D1__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -