1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- //
- //////////////////////////////////////////////////////////////////////////////
- //
- // Copyright 2015 Autodesk, Inc. All rights reserved.
- //
- // Use of this software is subject to the terms of the Autodesk license
- // agreement provided at the time of installation or download, or which
- // otherwise accompanies this software in either electronic or hard copy form.
- //
- //////////////////////////////////////////////////////////////////////////////
- //
- #if !defined(_ACHTMLAPI_H_INCLUDED_)
- #define _ACHTMLAPI_H_INCLUDED_
- #if _MSC_VER >= 1000
- #pragma once
- #endif // _MSC_VER >= 1000
- class CAdUiPaletteSet;
- int acedAddHTMLPalette(CAdUiPaletteSet* ps, const ACHAR* name, const ACHAR* uriOfHtmlPage );
- bool acedShowHTMLModalWindow(HWND owner, const ACHAR* uriOfHtmlPage, bool persistSizeAndPosition = true);
- HWND acedShowHTMLModelessWindow(HWND owner, const ACHAR* uriOfHtmlPage, bool persistSizeAndPosition = true);
- struct HtmlWindowOptions {
- enum HtmlWindowFlags {
- eAllowResize = 0x0001, // allow dialog to be resizable
- eAllowMinimize = 0x0002, // enable minimize button
- eAllowMaximize = 0x0004, // enable maximize button
- eInitPosition = 0x0008, // specify initial position (x and y fields are used)
- eInitSize = 0x0010, // specify initial size (width and height fields are used)
- eMaxSize = 0x0020, // specify maximum size (maxWidth and maxHeight fields are used)
- eMinSize = 0x0040, // specify minimum size (minWidth and minHeight fields are used)
- ePersistSizeAndPosition = 0x0080, // allow dialog size and position to be persisted in registry
- };
- UINT flags;
- UINT x;
- UINT y;
- UINT width;
- UINT height;
- UINT maxWidth;
- UINT maxHeight;
- UINT minWidth;
- UINT minHeight;
- };
- bool acedShowHTMLModalWindow(HWND owner, const ACHAR* uriOfHtmlPage, HtmlWindowOptions opts);
- class AcApDocWindow;
- AcApDocWindow* acedAddHTMLDocWindow(const ACHAR* title, const ACHAR* uriOfHtmlPage);
- extern "C" void acedLoadJSScript(const ACHAR* pUriOfJSFile);
- #endif // !defined(_ACHTMLAPI_H_INCLUDED_)
|