// WordDlg.h : header file
//

#pragma once
#import "C:\\Program Files\\Common Files\\Microsoft Shared\\OFFICE11\\mso.dll"
#import "C:\\Program Files\\Microsoft Office\\OFFICE11\\MSWORD.OLB" rename("ExitWindows", "WordExitWindows") rename("FindText", "WordFindText") rename("RGB", "WordRGB") raw_interfaces_only
#include "CApplication.h"
#include "CDocument0.h"
#include "CDocuments.h"
#include "CFont0.h"
#include "CSelection.h"
#include "CRange.h"
#include "afxwin.h"
#include "afxcmn.h"

// CWordDlg dialog
class CWordDlg : public CDialog
{
// Construction
public:
	CWordDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	enum { IDD = IDD_WORD_DIALOG };

	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support

private:
    CApplication oWord;
    LPDISPATCH GetIDispatch(CString AppName);
// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	virtual BOOL OnInitDialog();
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	DECLARE_MESSAGE_MAP()
public:
    afx_msg void OnBnClickedButton1();
    afx_msg void OnBnClickedButton2();
    afx_msg void OnBnClickedButton3();
    CEdit Edit1;
    afx_msg void OnBnClickedButton4();
    afx_msg void OnBnClickedButton5();
    afx_msg void OnBnClickedButton6();
    CRichEditCtrl RichEdit1;
    afx_msg void OnBnClickedButton7();
    afx_msg void OnBnClickedButton8();
};
