C++
struct HtmlWindowOptions { enum HtmlWindowFlags { eAllowResize = 0x0001, eAllowMinimize = 0x0002, eAllowMaximize = 0x0004, eInitPosition = 0x0008, eInitSize = 0x0010, eMaxSize = 0x0020, eMinSize = 0x0040, ePersistSizeAndPosition = 0x0080, eCenterWindow = 0x0100, eDialogFrame = 0x0200, eAutoHiDpiScale = 0x0400, eTransparentHost = 0x0800 }; UINT flags = 0; int x = 0; int y = 0; UINT width = 0; UINT height = 0; UINT maxWidth = 0; UINT maxHeight = 0; UINT minWidth = 0; UINT minHeight = 0; UINT dialogTemplateId = 0; HWND ownerWindow = NULL; bool hasCustomHelp = false; };
File
AcHTMLApi.h
Members
Members | Description |
---|---|
eAllowResize | Allow dialog to be resizable. |
eAllowMinimize | Enable minimize button. |
eAllowMaximize | Enable maximize button. |
eInitPosition | Specify initial position (x and y fields are used). |
eInitSize | Specify initial size (width and height fields are used). |
eMaxSize | Specify maximum size (maxWidth and maxHeight fields are used). |
eMinSize | Specify minimumsize (maxWidth and maxHeight fields are used). |
ePersistSizeAndPosition | Allow dialog size and position to be persisted in registry. |
eCenterWindow | Center the window relative to its parent |
eDialogFrame | Displays the dialog without the border and windows caption |
eAutoHiDpiScale | The x,y,width, and height need to adjust by AutoHiDpiScaleX |
eTransparentHost | Makes the hosting window's background transparent. This allows to render effects like rounded corners. |
flags | Sets the behavior Option flags for a Html window. See HtmlWindowFlags for available flags. |
x | Sets the upper-left X coordinate value for a Html window. |
y | Sets the upper-left Y coordinate value for a Html window. |
width | Sets the width for a Html window. |
height | Sets the height for a Html window. |
maxWidth | Sets the maximum width for a Html window. |
maxHeight | Sets the maximum height for a Html window. |
minWidth | Sets the minimum width for a Html window. |
minHeight | Sets the minimum height for a Html window. |
dialogTemplateId | For AutoCAD internal use only. |
ownerWindow | Sets the owner for a Html window. |
hasCustomHelp | Sets whether help is called by a Html window itself using the JS interop. |
Description
This struct allows you to configure the HTML window.
Previous Declaration
struct HtmlWindowOptions {
enum HtmlWindowFlags {
eAllowResize = 0x0001,
eAllowMinimize = 0x0002,
eAllowMaximize = 0x0004,
eInitPosition = 0x0008,
eInitSize = 0x0010,
eMaxSize = 0x0020,
eMinSize = 0x0040,
ePersistSizeAndPosition = 0x0080,
eCenterWindow = 0x0100,
eDialogFrame = 0x0200,
eAutoHiDpiScale = 0x0400,
eTransparentHost = 0x0800
};
UINT flags;
UINT x;
UINT y;
UINT width;
UINT height;
UINT maxWidth;
UINT maxHeight;
UINT minWidth;
UINT minHeight;
UINT dialogTemplateId; // Internal use
HWND ownerWindow;
HtmlWindowOptions()
{
dialogTemplateId = 0;
ownerWindow = NULL;
}
};
History
AutoCAD 2025
hasCustomHelp was added to the struct.
AutoCAD 2023 and AutoCAD 2023
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
eCenterWindow = 0x0100, // center a window relative to its parent
eDialogFrame = 0x0200, // displays a dialog without the border and windows caption
eAutoHiDpiScale = 0x0400 //the x,y,width, height need to adjust by AutoHiDpiScaleX
};
UINT flags;
UINT x;
UINT y;
UINT width;
UINT height;
UINT maxWidth;
UINT maxHeight;
UINT minWidth;
UINT minHeight;
UINT dialogTemplateId; // Internal use
HtmlWindowOptions()
{
dialogTemplateId = 0;
}
};
AutoCAD 2022
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
eCenterWindow = 0x0100, // center a window relative to its parent
eDialogFrame = 0x0200, // displays a dialog without the border and windows caption
eAutoHiDpiScale = 0x0400 //the x,y,width, height need to adjust by AutoHiDpiScaleX
};
UINT flags;
UINT x;
UINT y;
UINT width;
UINT height;
UINT maxWidth;
UINT maxHeight;
UINT minWidth;
UINT minHeight;
UINT dialogTemplateId; // Internal use
HtmlWindowOptions()
{
dialogTemplateId = 0;
}
};
AutoCAD 2021 and earlier
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;
};