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

📄 myworddlg.h

📁 有关于VC操作Word的程序
💻 H
字号:
// MyWordDlg.h : header file
//
#include "msword9.h"
#include "excel9.h"
#include "stdafx.h"


#if !defined(AFX_MYWORDDLG_H__A416DDCC_0BFA_4346_9C3F_D6A5A5EE046F__INCLUDED_)
#define AFX_MYWORDDLG_H__A416DDCC_0BFA_4346_9C3F_D6A5A5EE046F__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000


/////////////////////////////////////////////////////////////////////////////
// CMyWordDlg dialog

class CMyWordDlg : public CDialog
{
// Construction
public:
	CMyWordDlg(CWnd* pParent = NULL);	// standard constructor
    
	//定义对象
    CString swordpos;

	Word::_Application oApp;
	Word::_Document    oDoc;
	Word::Documents    oDocs;
    Word::Bookmark     bookmark;
	Word::Bookmarks    bookmarks;
	Word::Paragraph    paragraph;
    Word::Paragraphs   paragraphs;
    Word::Table        table;
	Word::Tables       tables;
	Word::Range        range;
	Word::Cell         cell;
	Word::Selection    selection;
	Word::Shapes       shapes;
	Word::Shape        shape;
	Word::InlineShape  inlineshape;
	Word::InlineShapes inlineshapes;
	Word::OLEFormat    woleformat;
	Word::_Font        font;
	Word::PageNumbers  pagenumbers;
	Word::PageNumber   pagenumber;

	Excel::_Application eapp;
	Excel::Worksheets  worksheets;
	Excel::_Worksheet  worksheet;
	Excel::Sheets      sheets;
	Excel::Range       erange;
	Excel::_Workbook   book;
	Excel::Charts      charts;
	Excel::_Chart      chart;
	Excel::OLEObjects  oleobjects;
	Excel::_OLEObject  oleobject;
	Excel::Window      window;


	//删除及序号调整
	//delred记录要删除的表格在数据表里面的记录号
	//num需要删除的表格的数量
	int Rechange_TalbePic(CString del_TablePic[], int count, CString strSql, int p1,int p2 );


    //end

// Dialog Data
	//{{AFX_DATA(CMyWordDlg)
	enum { IDD = IDD_MYWORD_DIALOG };
	CComboBox	m_wordpos;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMyWordDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CMyWordDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnFormWord();
	afx_msg void OnExit();
	afx_msg void OnSelchangeCombo();
	afx_msg void OnDestroy();
	afx_msg void OnDrawItem(int nIDCtl, LPDRAWITEMSTRUCT lpDrawItemStruct);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_MYWORDDLG_H__A416DDCC_0BFA_4346_9C3F_D6A5A5EE046F__INCLUDED_)

⌨️ 快捷键说明

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