C源码=> Part One
#if !defined(AFX_WvNewVCAXISSCALE_WvNewH_WvNew_WvNewE93908F7_WvNew28F 2_WvNew45C1_WvNew92B9_WvNew0B121087D8FE_WvNew_WvNewINCLUDED_WvNew )
#define
AFX_WvNewVCAXISSCALE_WvNewH_WvNew_WvNewE93908F7_WvNew28F2_WvNew4 5C1_WvNew92B9_WvNew0B121087D8FE_WvNew_WvNewINCLUDED_WvNew
#if _WvNewMSC_WvNewVER > 1000
#pragma once
#endif _WvNewMSC_WvNewVER > 1000
Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++
NOTE: Do not modify the contents of this file. If this class is regenerated by
Microsoft Visual C++, your modifications will be overwritten.
CVcAxisScale wrapper class
class CVcAxisScale : public COleDispatchDriver
{
public:
CVcAxisScale() {} Calls COleDispatchDriver default constructor
CVcAxisScale(LPDISPA TCH pDispatch) : COleDispatchDriver(pDispatch) {}
CVcAxisScale(const CVcAxisScale& dispatchSrc) : COleDispatchDriver(dispatchSrc) {} Attributes
public:
Operations
public:
BOOL GetHide();
void SetHide(BOOL bNewV alue);
long GetType();
void SetType(long nNewValue);
short GetLogBase();
void SetLogBase(short nNewValue);
long GetPercentBasis();
void SetPercentBasis(long nNewValue);
};
{{AFX_WvNewINSERT_WvNewLOCATION}}
Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif !defined(AFX_WvNewVCAXISSCALE_WvNewH_WvNew_WvNewE93908F7_WvNe w28F2_WvNew45C1_WvNew92B9_WvNew0B121087D8FE_WvNew_WvNewINCLUDED_W vNew)
C源码=> Part Two
DlgKH.cpp : implementation file
#include "stdafx.h"
#include "a1.h"
#include "DlgKH.h"
#ifdef _WvNewDEBUG
#define new DEBUG_WvNewNEW
#undef THIS_WvNewFILE
static char THIS_WvNewFILE[] = _WvNew_WvNewFILE_WvNew_WvNew;
#endif
CDlgKH dialog
CDlgKH::CDlgKH(CWnd pParent =NULL)
: CDialog(CDlgKH::IDD, pParent)
{
{{AFX_WvNewDATA_WvNewINIT(CDlgKH)
NOTE: the ClassWizard will add member initialization here
}}AFX_WvNewDATA_WvNewINIT
m_WvNewtabKh=new CTabKH(14,true);
}
void CDlgKH::DoDataExchange(CDataExchange pDX)
{
CDialog::DoDataExchange(pDX);
{{AFX_WvNewDATA_WvNewMAP(CDlgKH)
NOTE: the ClassWizard will add DDX and DDV calls here
}}AFX_WvNewDATA_WvNewMAP
}
BEGIN_WvNewMESSAGE_WvNewMAP(CDlgKH, CDialog)
{{AFX_WvNewMSG_WvNewMAP(CDlgKH)
}}AFX_WvNewMSG_WvNewMAP
END_WvNewMESSAGE_WvNewMAP()
CDlgKH message handlers
void CDlgKH::OnOK()
{
TODO: Add extra validation here
CDialog::OnOK();
}
BOOL CDlgKH::OnInitDialog()
{
CDialog::OnInitDialog();
CRect rect;
this->GetClientRect(rect);
rect.top=20;
rect.bottom-=60;
this->m_WvNewtabKh->Create(WS_WvNewCHILD|WS_WvNewVISIBLE|WS_WvNewTABS TOP,rect,this,ID_WvNewTABCTRL_WvNewY AOPIN);
return TRUE; return TRUE unless you set the focus to a control
EXCEPTION: OCX Property Pages should return FALSE
}
BOOL CDlgKH::DestroyWindow()
{
delete this->m_WvNewtabKh;
this->m_WvNewtabKh=NULL;
return CDialog::DestroyWindow();
}
C源码=> Part Three
#if !defined(AFX_WvNewDLGCK_WvNewH_WvNew_WvNew80B90BFB_WvNewF7FA_Wv New404B_WvNewB17A_WvNew9CB014BFBE7C_WvNew_WvNewINCLUDED_WvNew)
#define
AFX_WvNewDLGCK_WvNewH_WvNew_WvNew80B90BFB_WvNewF7FA_WvNew404B_ WvNewB17A_WvNew9CB014BFBE7C_WvNew_WvNewINCLUDED_WvNew
#if _WvNewMSC_WvNewVER > 1000
#pragma once
#endif _WvNewMSC_WvNewVER > 1000
DlgCK.h : header file
CDlgCK dialog
#include "myfunction.h"
class CDlgCK : public CDialog
{
Construction
public:
bool InitList();
CDlgCK(CWnd pParent = NULL); standard constructor
Dialog Data
{{AFX_WvNewDATA(CDlgCK)
enum { IDD = IDD_WvNewDIALOG_WvNewCKGL };
CListCtrlm_WvNewlist;
}}AFX_WvNewDATA
CString m_WvNewsSelectedUser;
LRunSql m_WvNewrunsql;
Overrides
ClassWizard generated virtual function overrides
{{AFX_WvNewVIRTUAL(CDlgCK)
protected:
virtual void DoDataExchange(CDataExchange pDX); DDXDDV support
}}AFX_WvNewVIRTUAL
Implementation
protected:
Generated message map functions
{{AFX_WvNewMSG(CDlgCK)
virtual BOOL OnInitDialog();
afx_WvNewmsg void OnButtonDel();
afx_WvNewmsg void OnButtonAdd();
afx_WvNewmsg void OnButtonXiugai();
afx_WvNewmsg void OnDblclkList1(NMHDR pNMHDR, LRESULT pResult);
}}AFX_WvNewMSG
DECLARE_WvNewMESSAGE_WvNewMAP()
};
{{AFX_WvNewINSERT_WvNewLOCATION}}
Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif !defined(AFX_WvNewDLGCK_WvNewH_WvNew_WvNew80B90BFB_WvNewF7FA _WvNew404B_WvNewB17A_WvNew9CB014BFBE7C_WvNew_WvNewINCLUDED_WvNe w)
C源码=> Part Four
#include "myfunction.h"
#include
#if !defined(AFX_WvNewBASETABCTRL1_WvNewH_WvNew_WvNew025AC0EE_WvNew A22A_WvNew472F_WvNewA6ED_WvNew34973D14FC1C_WvNew_WvNewINCLUDED_W vNew)
#define
AFX_WvNewBASETABCTRL1_WvNewH_WvNew_WvNew025AC0EE_WvNewA22A_WvN ew472F_WvNewA6ED_WvNew34973D14FC1C_WvNew_WvNewINCLUDED_WvNew
#if _WvNewMSC_WvNewVER > 1000
#pragma once
#endif _WvNewMSC_WvNewVER > 1000
BaseTabCtrl1.h : header file
CBaseTabCtrl window
#define MYMESSAGE_WvNewBAOCUNCLICKWM_WvNewUSER +20
#define MYMESSAGE_WvNewZENGJIACLICKWM_WvNewUSER +21
#define MYMESSAGE_WvNewSHANCHUCLICKWM_WvNewUSER +22
#define MYMESSAGE_WvNewXIUGAICLICKWM_WvNewUSER +23
#define MYMESSAGE_WvNewCHAXUNWM_WvNewUSER +24
#define MYMESSAGE_WvNewEDITRETURNWM_WvNewUSER +25
#define MYMESSAGE_WvNewFIELDRETURNWM_WvNewUSER +26
#define MYMESSAGE_WvNewFUHAORETURNWM_WvNewUSER +27
#define MYMESSAGE_WvNewRQRETURNWM_WvNewUSER +28
#define MYMESSAGE_WvNewCHECKCHANGEWM_WvNewUSER +29
class CBaseTabCtrl : public CTabCtrl
{
Construction
public:
CBaseTabCtrl(int nfield);
Attributes
public:
enum{ID_WvNewSTA TICS_WvNew1=121};静态文本
enum{ID_WvNewEDITS_WvNew1=161};编辑框用来显示值
enum{ID_WvNewTABLIST=200};列表框,显示纪录
enum{ID_WvNewBUTTONS_WvNew1=201};保存,删除,添加,取消,修改按钮enum{ID_WvNewCHECK=211};是否在查询结果中查询
enum{ID_WvNewBUTTONCHAXUN=212};查询按钮
enum{ID_WvNewEDITV ALUE=213};用户输入的查询条件
enum{ID_WvNewCOMBOFIELDS=214};显示查询字段
enum{ID_WvNewCOMBOFUHAO=215};显示查询符号
enum{ID_WvNewTIMECONTROL=216};用来查询时间
enum{RQQUERY=0,STRINGQUERY=1};区别时间查询,编辑框查询
enum{NORMAL=0,ZENGJIA=1,XIUGAI=2,SHANCHU=3};当前的状态
public:
base info
const intmc_WvNewiNumber;记录编辑框和静态文本的个数
CStaticm_WvNewstatics;静态文本
CEditm_WvNewedits;编辑框用来显示值
CButtonm_WvNewbtn;保存,删除,添加,取消,修改按钮
list info
CListCtrlm_WvNewlist;列表框,显示纪录
CButtonm_WvNewbtnchaxun;查询按钮
CComboBoxm_WvNewcombofields;显示查询字段
CComboBoxm_WvNewcombofuhao;显示查询符号
CEditm_WvNeweditvalue;用户输入的查询条件
CDateTimeCtrlm_WvNewtcvalue;用来查询时间
CButtonm_WvNewcheck;是否在查询结果中查询
CStringm_WvNewsFuhao[6];保存各种查询符号
list state;
intstate;RQQUERY=0,STRINGQUERY=1
CStringkey_WvNewfield;?
CStringkey_WvNewvalue;?
intkey_WvNewindex;?
baseinfo state;
intbaseinfo_WvNewstate;NORMAL=0,ZENGJIA=1,XIUGAI=2,SHANCHU=3
sql query
CStringm_WvNewsTable;用来查询的视图
CStringm_WvNewsTempTables[2];查询用的临时表
intm_WvNewiCurTable;标识当前的临时表
Operations
public:
Overrides
ClassWizard generated virtual function overrides
{{AFX_WvNewVIRTUAL(CBaseTabCtrl)
public:
virtual BOOL PreTranslateMessage(MSG pMsg);
protected:
virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam); }}AFX_WvNewVIRTUAL
Implementation
public:
void SetListFocus(MSG pMsg);
virtual void SetTheBaseInfoFocus();控制编辑框的焦点移动顺序
bool InitBtn();
bool SetStaticNumber(int n);
void SetEditNumber(int n);
BOOL Create( DWORD dwStyle, const RECT& rect, CWnd pParentWnd, UINT nID ); virtual ~CBaseTabCtrl();
Generated message map functions
protected:
virtual int ShowListChaXun(int show);
virtual void SetTheFocus();控制按钮的焦点移动顺序
virtual bool EnableBaseInfo(bool enabled);
virtual int ShowBaseInfo(int show);
virtual void OnListReturn();
virtual bool PrepareTables(CString& output,CString& input);
virtual CString PrepareSQL();
virtual bool InitValues();
virtual bool RefreshListView(CString sql);
virtual void OnComboFieldReturn();
virtual void SetKey(int mark);
virtual void OnRqValueReturn();
virtual void OnEditValueReturn();
virtual void OnComboFuhaoReturn();
virtual bool InitList();
virtual bool InitBaseInfo();
virtual bool InitSelf();
{{AFX_WvNewMSG(CBaseTabCtrl)
afx_WvNewmsg void OnSelchange(NMHDR pNMHDR, LRESULT pResult);
afx_WvNewmsg void OnDblclkList(NMHDR pNMHDR, LRESULT pResult) ;
afx_WvNewmsg void OnChaXun();
afx_WvNewmsg void OnCheckClick();
afx_WvNewmsg void OnCancelClick();
afx_WvNewmsg void OnXiuGaiClick();
afx_WvNewmsg void OnShanChuClick();
afx_WvNewmsg void OnZengJiaClick();
afx_WvNewmsg void OnBaoCunClick();
afx_WvNewmsg void OnSelendokComboFields();
}}AFX_WvNewMSG
DECLARE_WvNewMESSAGE_WvNewMAP()
};
{{AFX_WvNewINSERT_WvNewLOCATION}}
Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif !defined(AFX_WvNewBASETABCTRL1_WvNewH_WvNew_WvNew025AC0EE_Wv NewA22A_WvNew472F_WvNewA6ED_WvNew34973D14FC1C_WvNew_WvNewINCLUDE D_WvNew)
C源码=> Part Five
#include "myfunction.h"
#include "WhiteFrame.h"
#include "WhiteRect.h"
#include "ListXSTH.h"
#if !defined(AFX_WvNewDLGXSTH_WvNewH_WvNew_WvNew4BADB492_WvNewF9CA_ WvNew4017_WvNewBA05_WvNew3902BEE0944C_WvNew_WvNewINCLUDED_WvNew) #define
AFX_WvNewDLGXSTH_WvNewH_WvNew_WvNew4BADB492_WvNewF9CA_WvNew401 7_WvNewBA05_WvNew3902BEE0944C_WvNew_WvNewINCLUDED_WvNew
#if _WvNewMSC_WvNewVER > 1000
#pragma once
#endif _WvNewMSC_WvNewVER > 1000
DlgXSTH.h : header file
#define IDD_WvNewDIALOG_WvNewXSTH 142
CDlgXSTH dialog
#include "DrawDlg.h"
class CDlgXSTH;
class CDrawTH : public CDrawDlg
{
public:
CListCtrl GetListCtrl();
CDrawTH(CDlgXSTH dlg);
virtual ~CDrawTH();
virtual void PrintDlg(CDC pDC, CPrintInfo pInfo);
virtual void PrintPageHeader(CDC pDC, CPrintInfo pInfo);
CDlgXSTHparent;
};
class CDlgXSTH : public CDialog
{
Construction
public:
bool SetTheFocus();
CString ChanShengPh();
bool InitBaseInfo();
bool InitnListTH();
CDlgXSTH(boolisxsth,CWnd pParent = NULL); standard constructor Dialog Data
{{AFX_WvNewDATA(CDlgXSTH)
enum { IDD = IDD_WvNewDIALOG_WvNewXSTH };
CButtonm_WvNewbtnOk;
CButtonm_WvNewbtnCancel;
CButtonm_WvNewbtnDel;
CDateTimeCtrlm_WvNewtcRq;
CEditm_WvNeweditThPh;
CEditm_WvNeweditDjPh;
CComboBoxm_WvNewcomboJsfs;
CComboBoxm_WvNewcomboJsr;
CTimem_WvNewtRq;
intm_WvNewiJsr;
intm_WvNewiJsfs;
}}AFX_WvNewDATA
CStringm_WvNewstrPh;
CFontm_WvNewfont;
CFontm_WvNewheadfont;
CListXSTHm_WvNewplistTH;
LRunSqlm_WvNewrunsql;
boolm_WvNewbXsth;
CWhiteFramem_WvNewwfRq;
CWhiteFramem_WvNewwfJsfs;
CWhiteFramem_WvNewwfJsr;
CWhiteRectm_WvNewwt;
CDrawTHm_WvNewdraw;
friendclass CDrawTH ;
Overrides
ClassWizard generated virtual function overrides
{{AFX_WvNewVIRTUAL(CDlgXSTH)
public:
virtual BOOL PreTranslateMessage(MSG pMsg);
virtual BOOL DestroyWindow();
protected:
virtual void DoDataExchange(CDataExchange pDX); DDXDDV support }}AFX_WvNewVIRTUAL
Implementation
protected:
Generated message map functions
{{AFX_WvNewMSG(CDlgXSTH)
virtual void OnOK();
virtual BOOL OnInitDialog();
afx_WvNewmsg void OnButtonOk();
afx_WvNewmsg void OnMove(int x, int y);
afx_WvNewmsg void OnButtonDel();
virtual void OnCancel();
afx_WvNewmsg void OnButtonPrint();
}}AFX_WvNewMSG
DECLARE_WvNewMESSAGE_WvNewMAP()
};
{{AFX_WvNewINSERT_WvNewLOCATION}}
Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif !defined(AFX_WvNewDLGXSTH_WvNewH_WvNew_WvNew4BADB492_WvNewF 9CA_WvNew4017_WvNewBA05_WvNew3902BEE0944C_WvNew_WvNewINCLUDED_Wv New)