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

📄 inftypelib.tli

📁 利用COM组件技术实现了控制AUTUCAD的启动。
💻 TLI
📖 第 1 页 / 共 5 页
字号:
inline DocumentPtr Documents::Open ( BSTR * iFileName ) {
    struct Document * _result;
    HRESULT _hr = raw_Open(iFileName, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return DocumentPtr(_result, false);
}

#pragma implementation_key(105)
inline DocumentPtr Documents::Read ( BSTR * iFileName ) {
    struct Document * _result;
    HRESULT _hr = raw_Read(iFileName, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return DocumentPtr(_result, false);
}

#pragma implementation_key(106)
inline DocumentPtr Documents::NewFrom ( BSTR * iFileName ) {
    struct Document * _result;
    HRESULT _hr = raw_NewFrom(iFileName, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return DocumentPtr(_result, false);
}

//
// interface Windows wrapper method implementations
//

#pragma implementation_key(107)
inline WindowPtr Windows::Item ( VARIANT * iIndex ) {
    struct Window * _result;
    HRESULT _hr = raw_Item(iIndex, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return WindowPtr(_result, false);
}

#pragma implementation_key(108)
inline HRESULT Windows::Arrange ( enum CatArrangeStyle iStyle ) {
    HRESULT _hr = raw_Arrange(iStyle);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface Window wrapper method implementations
//

#pragma implementation_key(109)
inline ViewerPtr Window::GetActiveViewer ( ) {
    struct Viewer * _result;
    HRESULT _hr = get_ActiveViewer(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ViewerPtr(_result, false);
}

#pragma implementation_key(110)
inline ViewersPtr Window::GetViewers ( ) {
    struct Viewers * _result;
    HRESULT _hr = get_Viewers(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ViewersPtr(_result, false);
}

#pragma implementation_key(111)
inline enum CatWindowState Window::GetWindowState ( ) {
    enum CatWindowState _result;
    HRESULT _hr = get_WindowState(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(112)
inline void Window::PutWindowState ( enum CatWindowState oWindowState ) {
    HRESULT _hr = put_WindowState(oWindowState);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(113)
inline _bstr_t Window::GetCaption ( ) {
    BSTR _result;
    HRESULT _hr = get_Caption(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _bstr_t(_result, false);
}

#pragma implementation_key(114)
inline void Window::PutCaption ( BSTR * oCaption ) {
    HRESULT _hr = put_Caption(oCaption);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(115)
inline long Window::GetWidth ( ) {
    long _result;
    HRESULT _hr = get_Width(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(116)
inline void Window::PutWidth ( long oWidth ) {
    HRESULT _hr = put_Width(oWidth);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(117)
inline long Window::GetHeight ( ) {
    long _result;
    HRESULT _hr = get_Height(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(118)
inline void Window::PutHeight ( long oHeight ) {
    HRESULT _hr = put_Height(oHeight);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(119)
inline long Window::GetLeft ( ) {
    long _result;
    HRESULT _hr = get_Left(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(120)
inline void Window::PutLeft ( long oLeft ) {
    HRESULT _hr = put_Left(oLeft);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(121)
inline long Window::GetTop ( ) {
    long _result;
    HRESULT _hr = get_Top(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(122)
inline void Window::PutTop ( long oTop ) {
    HRESULT _hr = put_Top(oTop);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(123)
inline PageSetupPtr Window::GetPageSetup ( ) {
    struct PageSetup * _result;
    HRESULT _hr = get_PageSetup(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return PageSetupPtr(_result, false);
}

#pragma implementation_key(124)
inline void Window::PutPageSetup ( struct PageSetup * oPageSetup ) {
    HRESULT _hr = put_PageSetup(oPageSetup);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(125)
inline WindowPtr Window::NewWindow ( ) {
    struct Window * _result;
    HRESULT _hr = raw_NewWindow(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return WindowPtr(_result, false);
}

#pragma implementation_key(126)
inline HRESULT Window::Activate ( ) {
    HRESULT _hr = raw_Activate();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(127)
inline HRESULT Window::ActivateNext ( ) {
    HRESULT _hr = raw_ActivateNext();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(128)
inline HRESULT Window::ActivatePrevious ( ) {
    HRESULT _hr = raw_ActivatePrevious();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(129)
inline HRESULT Window::PrintOut ( ) {
    HRESULT _hr = raw_PrintOut();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(130)
inline HRESULT Window::PrintToFile ( BSTR * fileName ) {
    HRESULT _hr = raw_PrintToFile(fileName);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(131)
inline HRESULT Window::Close ( ) {
    HRESULT _hr = raw_Close();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface Viewer wrapper method implementations
//

#pragma implementation_key(132)
inline VARIANT_BOOL Viewer::GetFullScreen ( ) {
    VARIANT_BOOL _result;
    HRESULT _hr = get_FullScreen(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(133)
inline void Viewer::PutFullScreen ( VARIANT_BOOL oFullScreen ) {
    HRESULT _hr = put_FullScreen(oFullScreen);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(134)
inline HRESULT Viewer::GetBackgroundColor ( SAFEARRAY * color ) {
    HRESULT _hr = raw_GetBackgroundColor(color);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(135)
inline HRESULT Viewer::PutBackgroundColor ( SAFEARRAY * color ) {
    HRESULT _hr = raw_PutBackgroundColor(color);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(136)
inline long Viewer::GetWidth ( ) {
    long _result;
    HRESULT _hr = get_Width(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(137)
inline long Viewer::GetHeight ( ) {
    long _result;
    HRESULT _hr = get_Height(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(138)
inline HRESULT Viewer::Update ( ) {
    HRESULT _hr = raw_Update();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(139)
inline HRESULT Viewer::Reframe ( ) {
    HRESULT _hr = raw_Reframe();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(140)
inline HRESULT Viewer::ZoomIn ( ) {
    HRESULT _hr = raw_ZoomIn();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(141)
inline HRESULT Viewer::ZoomOut ( ) {
    HRESULT _hr = raw_ZoomOut();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(142)
inline HRESULT Viewer::CaptureToFile ( enum CatCaptureFormat iFormat, BSTR * iFile ) {
    HRESULT _hr = raw_CaptureToFile(iFormat, iFile);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

#pragma implementation_key(143)
inline CameraPtr Viewer::NewCamera ( ) {
    struct Camera * _result;
    HRESULT _hr = raw_NewCamera(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return CameraPtr(_result, false);
}

#pragma implementation_key(144)
inline HRESULT Viewer::Activate ( ) {
    HRESULT _hr = raw_Activate();
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _hr;
}

//
// interface Camera wrapper method implementations
//

#pragma implementation_key(145)
inline enum CatCameraType Camera::GetType ( ) {
    enum CatCameraType _result;
    HRESULT _hr = get_Type(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

//
// interface Viewers wrapper method implementations
//

#pragma implementation_key(146)
inline ViewerPtr Viewers::Item ( long iIndex ) {
    struct Viewer * _result;
    HRESULT _hr = raw_Item(iIndex, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return ViewerPtr(_result, false);
}

//
// interface PageSetup wrapper method implementations
//

#pragma implementation_key(147)
inline enum CatPaperSize PageSetup::GetPaperSize ( ) {
    enum CatPaperSize _result;
    HRESULT _hr = get_PaperSize(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(148)
inline void PageSetup::PutPaperSize ( enum CatPaperSize oPaperSize ) {
    HRESULT _hr = put_PaperSize(oPaperSize);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(149)
inline float PageSetup::GetPaperWidth ( ) {
    float _result;
    HRESULT _hr = get_PaperWidth(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(150)
inline void PageSetup::PutPaperWidth ( float oPaperWidth ) {
    HRESULT _hr = put_PaperWidth(oPaperWidth);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(151)
inline float PageSetup::GetPaperHeight ( ) {
    float _result;
    HRESULT _hr = get_PaperHeight(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(152)
inline void PageSetup::PutPaperHeight ( float oPaperHeight ) {
    HRESULT _hr = put_PaperHeight(oPaperHeight);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(153)
inline enum CatPaperOrientation PageSetup::GetOrientation ( ) {
    enum CatPaperOrientation _result;
    HRESULT _hr = get_Orientation(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

#pragma implementation_key(154)
inline void PageSetup::PutOrientation ( enum CatPaperOrientation Orientation ) {
    HRESULT _hr = put_Orientation(Orientation);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

#pragma implementation_key(155)
inline float PageSetup::GetBottomMargin ( ) {
    float _result;
    HRESULT _hr = get_BottomMargin(&_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;
}

⌨️ 快捷键说明

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