⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 adodatagridview.h

📁 Send SMS useing Com,it is simple
💻 H
字号:
// AdoDataGridView.h : interface of the CAdoDataGridView class
//
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INCLUDES()
#include "datagrid.h"
#include "SendSMS.h"	// Added by ClassView
//}}AFX_INCLUDES

#if !defined(AFX_ADODATAGRIDVIEW_H__1E459E6D_E3E6_11D2_B58A_00C04F8D1E60__INCLUDED_)
#define AFX_ADODATAGRIDVIEW_H__1E459E6D_E3E6_11D2_B58A_00C04F8D1E60__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "SendSMS.h"

class CAdoDataGridView : public CFormView
{
protected: // create from serialization only
	CAdoDataGridView();
	DECLARE_DYNCREATE(CAdoDataGridView)

public:
	//{{AFX_DATA(CAdoDataGridView)
	enum { IDD = IDD_ADODATAGRID_FORM };
	CProgressCtrl	m_Progress;
	CListBox	m_tablesList;
	CDataGrid	m_myDataGrid;
	//}}AFX_DATA

// Attributes
public:
	CAdoDataGridDoc* GetDocument();
	_ConnectionPtr m_connection;
	_RecordsetPtr m_recordSet,m_recordSet1;
	_CommandPtr m_cmd;
	void GenerateError(HRESULT hr, PWSTR pwszDescription,CString decribe="");
	CString m_Time;
	CString m_Error,m_Fail,m_Sucess;
	CMenu				pop;
	CMenu*				psubmenu;
	CStringArray iAr;
// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CAdoDataGridView)
	public:
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	virtual void OnInitialUpdate(); // called first time after construct
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnPrint(CDC* pDC, CPrintInfo* pInfo);
	virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
	//}}AFX_VIRTUAL

// Implementation
public:
	float i_SendTime;
	int i_SendTotal_Suc;
	int i_SendTotal_Fai;
	CString s_TableName;
	void Quit();
	void DisConnect();
	void GetTables();
	void Connect();
	void BuildConnectStr(CString ConnString);
	virtual ~CAdoDataGridView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:
    BOOL bAddGroup;
// Generated message map functions
protected:
	//{{AFX_MSG(CAdoDataGridView)
	afx_msg void OnSelchangeList1();
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg void OnMesSend();
	afx_msg void OnUpdateMesSend(CCmdUI* pCmdUI);
	afx_msg void OnRecAdd();
	afx_msg void OnAppExit();
	afx_msg void OnMesEdit();
	afx_msg void OnDestroy();
	afx_msg void OnFileDatabase();
	afx_msg void OnUpdateFileDatabase(CCmdUI* pCmdUI);
	afx_msg void OnUpdateRecAdd(CCmdUI* pCmdUI);
	afx_msg void OnHelp();
	afx_msg void OnUndo();
	afx_msg void OnUpdateUndo(CCmdUI* pCmdUI);
	afx_msg void OnFengduan();
	afx_msg void OnUpdateFengduan(CCmdUI* pCmdUI);
	afx_msg void OnAddgroup();
	afx_msg void OnDelgroup();
	afx_msg void OnErrorDatagrid1(short DataError, short FAR* Response);
	afx_msg void OnKeyDownDatagrid1(short FAR* KeyCode, short Shift);
	afx_msg void OnAfterUpdateDatagrid1();
	afx_msg void OnUpdateAddgroup(CCmdUI* pCmdUI);
	afx_msg void OnUpdateDelgroup(CCmdUI* pCmdUI);
	DECLARE_EVENTSINK_MAP()
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
	BOOL b_Undo;
	int i_undo;
	void PopupMenu(UINT menuID);
	void WriteStutas(CString string,int id);
	HICON m_hIcon;
	void ShellWnd(UINT msg, HICON icon);
	void ReLogin();
	int i_RowCount;
	CString s_UserName;
	CString s_Password;
	void GetData(CString str,CString s_Conn,HWND hMain);
	CString m_strConnect;
	CSendSMS t_SendObj;
	void SendModal(CString strServername, UINT nPort, CString strUsername, CString strPassword,HWND hMain);
};

#ifndef _DEBUG  // debug version in AdoDataGridView.cpp
inline CAdoDataGridDoc* CAdoDataGridView::GetDocument()
   { return (CAdoDataGridDoc*)m_pDocument; }
#endif

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_ADODATAGRIDVIEW_H__1E459E6D_E3E6_11D2_B58A_00C04F8D1E60__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -