C源码_Kit One

C源码_Kit One
C源码_Kit One

C++ Source Part One

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.

#include "stdafx.h"

#include "selbookmarks.h"

CSelBookmarks properties

CSelBookmarks operations

long CSelBookmarks::GetCount()

{

long result;

InvokeHelper(0x1, DISPATCH_KIPROPERTYGET, VT_KII4, (void)&result, NULL);

return result;

}

V ARIANT CSelBookmarks::GetItem(const V ARIANT& Index)

{

V ARIANT result;

static BYTE parms[] =

VTS_KIVARIANT;

InvokeHelper(0x0, DISPATCH_KIPROPERTYGET, VT_KIVARIANT, (void)&result, parms,

&Index);

return result;

}

void CSelBookmarks::Remove(const V ARIANT& Index)

{

static BYTE parms[] =

VTS_KIV ARIANT;

InvokeHelper(0x3, DISPATCH_KIMETHOD, VT_KIEMPTY, NULL, parms,

&Index);

}

void CSelBookmarks::Add(const V ARIANT& Bookmark)

{

static BYTE parms[] =

VTS_KIVARIANT;

InvokeHelper(0x2, DISPATCH_KIMETHOD, VT_KIEMPTY, NULL, parms,

&Bookmark);

}

C++ Source Part Two

WordGLXTDlg.h : header file

#if !defined(AFX_KIWORDGLXTDLG_KIH_KI86F2AA3C_KI11E2_KI4AF1_KIA7EF_KI095 C2F9A89D1_KIINCLUDED_KI)

#define

AFX_KIWORDGLXTDLG_KIH_KI86F2AA3C_KI11E2_KI4AF1_KIA7EF_KI095C2F9A89D1

_KIINCLUDED_KI

#include "msword.h"

#include "atlbase.h"

#include "Zdmlb.h"

#include "Zdxxb.h"

#include "Dwxxb.h"

#include "Dwdandlg.h"

#include "Wdlbiedlg.h"

#include "Chaxundlg.h"

#include "YHgldlg.h"

#include "KLxgdlg.h"

#include "Dialogin.h"

#include "WDgldlg.h"

#include "Rizhib.h"

#include "ADOConn.h"

#if _KIMSC_KIVER > 1000

#pragma once

#endif _KIMSC_KIVER > 1000

extern CWordGLXTApp theApp;

CWordGLXTDlg dialog

class CWordGLXTDlg : public CDialog

{

public:

HTREEITEM arrays[10],brrays[20],hitem[100]; HTREEITEM m_KIroot,temp;

CDwxxb dwb;

CZdmlb mlb;

CZdxxb xxb;

CRizhib zhi;

CImageList m_KItreeImageList;

CTime t;

CStatusBarCtrl m_KIStatusBar;

Construction

public:

CString str;

CString strWord;

CString strText;

CWordGLXTDlg(CWnd pParent = NULL); standard constructor void AddtoTree(HTREEITEM m_KInode);

Dialog Data

{{AFX_KIDATA(CWordGLXTDlg)

enum { IDD = IDD_KIWORDGLXT_KIDIALOG }; CRichEditCtrlm_KIrichedit;

CTreeCtrlm_KItree;

}}AFX_KIDATA

ClassWizard generated virtual function overrides

{{AFX_KIVIRTUAL(CWordGLXTDlg)

public:

virtual BOOL PreTranslateMessage(MSG pMsg);

protected:

virtual void DoDataExchange(CDataExchange pDX); DDXDDV support

}}AFX_KIVIRTUAL

Implementation

protected:

HICON m_KIhIcon;

Generated message map functions

{{AFX_KIMSG(CWordGLXTDlg)

virtual BOOL OnInitDialog();

afx_KImsg void OnSysCommand(UINT nID, LPARAM lParam);

afx_KImsg void OnPaint();

afx_KImsg HCURSOR OnQueryDragIcon();

afx_KImsg void OnMenudwdan();

afx_KImsg void OnMenuwdlb();

afx_KImsg void OnDblclkTree1(NMHDR pNMHDR, LRESULT pResult);

afx_KImsg void OnMenuliulwd();

afx_KImsg void OnMenuyhgl();

afx_KImsg void OnMenumodpwd();

afx_KImsg void OnMenuaddwd();

afx_KImsg void OnMenudelwd();

afx_KImsg void OnMenumodwd();

afx_KImsg void OnMenurzgl();

afx_KImsg void OnExit();

}}AFX_KIMSG

DECLARE_KIMESSAGE_KIMAP()

};

{{AFX_KIINSERT_KILOCATION}}

Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif !defined(AFX_KIWORDGLXTDLG_KIH_KI86F2AA3C_KI11E2_KI4AF1_KIA7EF_ KI095C2F9A89D1_KIINCLUDED_KI)

C++ Source Part Three

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.

#include "stdafx.h"

#include "vcbrush.h"

Dispatch interfaces referenced by this interface

#include "vccolor.h"

CVcBrush properties

CVcBrush operations

long CVcBrush::GetStyle()

{

long result;

InvokeHelper(0x1, DISPATCH_KIPROPERTYGET, VT_KII4, (void)&result, NULL);

return result;

}

void CVcBrush::SetStyle(long nNewValue)

{

static BYTE parms[] =

VTS_KII4;

InvokeHelper(0x1, DISPATCH_KIPROPERTYPUT, VT_KIEMPTY, NULL, parms, nNewValue);

}

CVcColor CVcBrush::GetFillColor()

{

LPDISPATCH pDispatch;

InvokeHelper(0x2, DISPATCH_KIPROPERTYGET, VT_KIDISPATCH,

(void)&pDispatch, NULL);

return CVcColor(pDispatch);

}

CVcColor CVcBrush::GetPatternColor()

{

LPDISPATCH pDispatch;

InvokeHelper(0x3, DISPA TCH_KIPROPERTYGET, VT_KIDISPATCH, (void)&pDispatch, NULL);

return CVcColor(pDispatch);

}

long CVcBrush::GetIndex()

{

long result;

InvokeHelper(0x4, DISPATCH_KIPROPERTYGET, VT_KII4, (void)&result, NULL);

return result;

}

void CVcBrush::SetIndex(long nNewValue)

{

static BYTE parms[] =

VTS_KII4;

InvokeHelper(0x4, DISPATCH_KIPROPERTYPUT, VT_KIEMPTY, NULL, parms, nNewValue);

}

C++ Source Part Four

#include "myfunction.h"

#include

#if !defined(AFX_KIBASETABCTRL1_KIH_KI025AC0EE_KIA22A_KI472F_KIA6ED_KI349 73D14FC1C_KIINCLUDED_KI)

#define

AFX_KIBASETABCTRL1_KIH_KI025AC0EE_KIA22A_KI472F_KIA6ED_KI34973D14FC1C _KIINCLUDED_KI

#if _KIMSC_KIVER > 1000

#pragma once

#endif _KIMSC_KIVER > 1000

BaseTabCtrl1.h : header file

CBaseTabCtrl window

#define MYMESSAGE_KIBAOCUNCLICKWM_KIUSER +20

#define MYMESSAGE_KIZENGJIACLICKWM_KIUSER +21

#define MYMESSAGE_KISHANCHUCLICKWM_KIUSER +22

#define MYMESSAGE_KIXIUGAICLICKWM_KIUSER +23

#define MYMESSAGE_KICHAXUNWM_KIUSER +24

#define MYMESSAGE_KIEDITRETURNWM_KIUSER +25

#define MYMESSAGE_KIFIELDRETURNWM_KIUSER +26

#define MYMESSAGE_KIFUHAORETURNWM_KIUSER +27

#define MYMESSAGE_KIRQRETURNWM_KIUSER +28

#define MYMESSAGE_KICHECKCHANGEWM_KIUSER +29

class CBaseTabCtrl : public CTabCtrl

{

Construction

public:

CBaseTabCtrl(int nfield);

Attributes

public:

enum{ID_KISTATICS_KI1=121};静态文本

enum{ID_KIEDITS_KI1=161};编辑框用来显示值

enum{ID_KITABLIST=200};列表框,显示纪录

enum{ID_KIBUTTONS_KI1=201};保存,删除,添加,取消,修改按钮

enum{ID_KICHECK=211};是否在查询结果中查询

enum{ID_KIBUTTONCHAXUN=212};查询按钮

enum{ID_KIEDITV ALUE=213};用户输入的查询条件

enum{ID_KICOMBOFIELDS=214};显示查询字段

enum{ID_KICOMBOFUHAO=215};显示查询符号

enum{ID_KITIMECONTROL=216};用来查询时间

enum{RQQUERY=0,STRINGQUERY=1};区别时间查询,编辑框查询

enum{NORMAL=0,ZENGJIA=1,XIUGAI=2,SHANCHU=3};当前的状态

public:

base info

const intmc_KIiNumber;记录编辑框和静态文本的个数

CStaticm_KIstatics;静态文本

CEditm_KIedits;编辑框用来显示值

CButtonm_KIbtn;保存,删除,添加,取消,修改按钮

list info

CListCtrlm_KIlist;列表框,显示纪录

CButtonm_KIbtnchaxun;查询按钮

CComboBoxm_KIcombofields;显示查询字段

CComboBoxm_KIcombofuhao;显示查询符号

CEditm_KIeditvalue;用户输入的查询条件

CDateTimeCtrlm_KItcvalue;用来查询时间

CButtonm_KIcheck;是否在查询结果中查询

CStringm_KIsFuhao[6];保存各种查询符号

list state;

intstate;RQQUERY=0,STRINGQUERY=1

CStringkey_KIfield;?

CStringkey_KIvalue;?

intkey_KIindex;?

baseinfo state;

intbaseinfo_KIstate;NORMAL=0,ZENGJIA=1,XIUGAI=2,SHANCHU=3

sql query

CStringm_KIsTable;用来查询的视图

CStringm_KIsTempTables[2];查询用的临时表

intm_KIiCurTable;标识当前的临时表

Operations

public:

Overrides

ClassWizard generated virtual function overrides

{{AFX_KIVIRTUAL(CBaseTabCtrl)

public:

virtual BOOL PreTranslateMessage(MSG pMsg);

protected:

virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam); }}AFX_KIVIRTUAL

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_KIMSG(CBaseTabCtrl)

afx_KImsg void OnSelchange(NMHDR pNMHDR, LRESULT pResult);

afx_KImsg void OnDblclkList(NMHDR pNMHDR, LRESULT pResult) ;

afx_KImsg void OnChaXun();

afx_KImsg void OnCheckClick();

afx_KImsg void OnCancelClick();

afx_KImsg void OnXiuGaiClick();

afx_KImsg void OnShanChuClick();

afx_KImsg void OnZengJiaClick();

afx_KImsg void OnBaoCunClick();

afx_KImsg void OnSelendokComboFields();

}}AFX_KIMSG

DECLARE_KIMESSAGE_KIMAP()

};

{{AFX_KIINSERT_KILOCATION}}

Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif !defined(AFX_KIBASETABCTRL1_KIH_KI025AC0EE_KIA22A_KI472F_KIA6ED_ KI34973D14FC1C_KIINCLUDED_KI)

相关主题
相关文档
最新文档