
This interface provides access to the EMBED object.
IHTMLEmbedElement Methods
| put_hidden | get_hidden | get_palette |
| get_pluginspage | put_src | get_src |
| put_units | get_units | put_name |
| get_name | put_width | get_width |
| put_height | get_height |
HRESULT put_hidden(
BSTR v
);
Hides or shows the embedded element.
See also get_hidden
HRESULT get_hidden(
BSTR *p
);
Determines whether the embedded element is currently hidden or shown.
See also put_hidden
HRESULT get_palette(
BSTR *p
);
Retrieves the palette used for the embedded document.
HRESULT get_pluginspage(
BSTR *p
);
Retrieves the plug-ins supporting this embedded document.
HRESULT put_src(
BSTR v
);
Sets the URL of the embedded document.
See also get_src
HRESULT get_src(
BSTR *p
);
Retrieves the URL of the embedded document.
See also put_src
HRESULT put_units(
BSTR v
);
Sets the units that the height and width are calculated in.
See also get_units
HRESULT get_units(
BSTR *p
);
Retrieves the current units used to caculate the height and width.
See also put_units
HRESULT put_name(
BSTR v
);
Sets the name of the frame so it can be targeted from links in other documents.
| window_name | String that specifies a frame. |
| _blank | Loads the link into a new, unnamed window. |
| _parent | Loads the link over the parent. If the frame has no parent, this refers to _self. |
| _self | Replaces the page with the specified link. |
| _top | Loads the link at the top-most level. |
The name property on the window comes from the FRAME definition. There is no other way to persist a window name in HTML.
See also get_name
HRESULT get_name(
BSTR *p
);
Retrieves the name of the frame so it can be targeted from links in other documents.
| window_name | String that specifies a frame. |
| _blank | Loads the link into a new, unnamed window. |
| _parent | Loads the link over the parent. If the frame has no parent, this refers to _self. |
| _self | Replaces the page with the specified link. |
| _top | Loads the link at the top-most level. |
The name property on the window comes from the FRAME definition. There is no other way to persist a window name in HTML.
See also put_name
HRESULT put_width(
VARIANT v
);
Sets the calculated width of the element, in pixels.
This property is an integer value. Although an HTML author can specify the width as a percentage, this property always specifies the width in pixels.
See also get_width
HRESULT get_width(
VARIANT *p
);
Retrieves the calculated width of the element, in pixels.
This property is an integer value. Although an HTML author can specify the width as a percentage, this property always specifies the width in pixels.
See also put_width
HRESULT put_height(
VARIANT v
);
Sets the calculated height of the element, in pixels.
If the value of the corresponding HTML attribute was set using a percentage, this property specifies the height in pixels represented by that percentage.
See also get_height
HRESULT get_height(
VARIANT *p
);
Retrieves the calculated height of the element, in pixels.
If the value of the corresponding HTML attribute was set using a percentage, this property specifies the height in pixels represented by that percentage.
See also put_height
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.