📄 _wordctrl.cpp
字号:
// 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 "_wordctrl.h"
/////////////////////////////////////////////////////////////////////////////
// C_WordCtrl
IMPLEMENT_DYNCREATE(C_WordCtrl, CWnd)
/////////////////////////////////////////////////////////////////////////////
// C_WordCtrl properties
/////////////////////////////////////////////////////////////////////////////
// C_WordCtrl operations
void C_WordCtrl::Main()
{
InvokeHelper(0x60030002, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}
CString C_WordCtrl::GetM_sTemplateName()
{
CString result;
InvokeHelper(0x68030001, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
return result;
}
void C_WordCtrl::SetM_sTemplateName(LPCTSTR lpszNewValue)
{
static BYTE parms[] =
VTS_BSTR;
InvokeHelper(0x68030001, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
lpszNewValue);
}
void C_WordCtrl::CreateTemplate()
{
InvokeHelper(0x60030003, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}
void C_WordCtrl::CloseTemplate()
{
InvokeHelper(0x60030004, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}
CString C_WordCtrl::GetM_sDocName()
{
CString result;
InvokeHelper(0x68030000, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
return result;
}
void C_WordCtrl::SetM_sDocName(LPCTSTR lpszNewValue)
{
static BYTE parms[] =
VTS_BSTR;
InvokeHelper(0x68030000, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
lpszNewValue);
}
void C_WordCtrl::SaveAsDoc()
{
InvokeHelper(0x60030005, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}
void C_WordCtrl::TypeParagraph()
{
InvokeHelper(0x60030006, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}
void C_WordCtrl::TypeText(LPCTSTR str)
{
static BYTE parms[] =
VTS_BSTR;
InvokeHelper(0x60030007, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
str);
}
void C_WordCtrl::CreateTable(short NumRows, short NumCols)
{
static BYTE parms[] =
VTS_I2 VTS_I2;
InvokeHelper(0x60030008, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
NumRows, NumCols);
}
void C_WordCtrl::SetTable(short TableNum)
{
static BYTE parms[] =
VTS_I2;
InvokeHelper(0x60030009, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
TableNum);
}
void C_WordCtrl::SetCell(short NumRow, short numCol, LPCTSTR str)
{
static BYTE parms[] =
VTS_I2 VTS_I2 VTS_BSTR;
InvokeHelper(0x6003000a, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
NumRow, numCol, str);
}
void C_WordCtrl::SetFont(LPCTSTR FontName, short FontSize, BOOL FontBold)
{
static BYTE parms[] =
VTS_BSTR VTS_I2 VTS_BOOL;
InvokeHelper(0x6003000b, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
FontName, FontSize, FontBold);
}
void C_WordCtrl::TypeTab()
{
InvokeHelper(0x6003000c, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}
void C_WordCtrl::SetCenter()
{
InvokeHelper(0x6003000d, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}
void C_WordCtrl::SetJustify()
{
InvokeHelper(0x6003000e, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}
void C_WordCtrl::SetRange(short StartSign, short EndSign)
{
static BYTE parms[] =
VTS_I2 VTS_I2;
InvokeHelper(0x6003000f, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
StartSign, EndSign);
}
void C_WordCtrl::InsertBreak()
{
InvokeHelper(0x60030010, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -