Share via


CHtmlEditCtrlBase Class

Represents an HTML editing component.

template < class T > class CHtmlEditCtrlBase

Members

Public Methods

Name

Description

CHtmlEditCtrlBase::AddToGlyphTable

Adds an entry to the glyph table, which specifies images to display for specific tags in design mode.

CHtmlEditCtrlBase::Bold

Toggles the bold state of the selected text.

CHtmlEditCtrlBase::Button

Overwrites a button control on the current selection.

CHtmlEditCtrlBase::CheckBox

Overwrites a check box control on the current selection.

CHtmlEditCtrlBase::ClearSelection

Clears the current selection.

CHtmlEditCtrlBase::Copy

Copies the current selection to the clipboard.

CHtmlEditCtrlBase::Cut

Copies the current selection to the clipboard and then deletes it.

CHtmlEditCtrlBase::Delete

Deletes the current selection.

CHtmlEditCtrlBase::DropDownBox

Overwrites a drop-down selection control on the current selection.

CHtmlEditCtrlBase::EmptyGlyphTable

Removes all entries from the glyph table, which hides all images displayed for tags in design mode.

CHtmlEditCtrlBase::ExecCommand

Executes a command.

CHtmlEditCtrlBase::Font

Opens a font dialog box to enable the user to change the text color, font, and font size of the current selection.

CHtmlEditCtrlBase::GetAbsolutePosition

Returns whether an element's position property is "absolute."

CHtmlEditCtrlBase::GetBackColor

Retrieves the background color of the current selection.

CHtmlEditCtrlBase::GetBlockFormat

Retrieves the current block format tag.

CHtmlEditCtrlBase::GetBlockFormatNames

Retrieves the strings corresponding to the available block format tags.

CHtmlEditCtrlBase::GetBookMark

Retrieves the name of a bookmark anchor.

CHtmlEditCtrlBase::GetDocument

Retrieves the document object.

CHtmlEditCtrlBase::GetDocumentHTML

Retrieves the HTML of the current document.

CHtmlEditCtrlBase::GetDocumentTitle

Retrieves the document's title.

CHtmlEditCtrlBase::GetEvent

Retrieves an interface pointer to the event object that contains information relevant to the most recent event.

CHtmlEditCtrlBase::GetEventSrcElement

Retrieves the object that fired the event.

CHtmlEditCtrlBase::GetFontFace

Retrieves the font name for the current selection.

CHtmlEditCtrlBase::GetFontSize

Retrieves the font size for the current selection.

CHtmlEditCtrlBase::GetForeColor

Retrieves the foreground (text) color of the current selection.

CHtmlEditCtrlBase::GetFrameZone

Returns the security zone of the current page in the web browser.

CHtmlEditCtrlBase::GetIsDirty

Indicates whether the HTML document has changed.

CHtmlEditCtrlBase::GetShowAlignedSiteTags

Returns whether a glyph is displayed for all elements that have a styleFloat property.

CHtmlEditCtrlBase::GetShowAllTags

Returns whether the WebBrowser displays glyphs to show the location of all tags in a document.

CHtmlEditCtrlBase::GetShowAreaTags

Retrieves whether the WebBrowser displays a glyph for area tags.

CHtmlEditCtrlBase::GetShowBRTags

Retrieves whether the WebBrowser displays a glyph for br tags.

CHtmlEditCtrlBase::GetShowCommentTags

Retrieves whether the WebBrowser displays a glyph for comment tags.

CHtmlEditCtrlBase::GetShowMiscTags

Retrieves whether the WebBrowser displays all the tags shown in Microsoft Internet Explorer 4.0.

CHtmlEditCtrlBase::GetShowScriptTags

Retrieves whether the WebBrowser displays a glyph for all the script tags.

CHtmlEditCtrlBase::GetShowStyleTags

Retrieves whether the WebBrowser displays a glyph for all the style tags.

CHtmlEditCtrlBase::GetShowUnknownTags

Retrieves whether the WebBrowser displays a glyph for all unknown tags.

CHtmlEditCtrlBase::HorizontalLine

Overwrites a horizontal line on the current selection.

CHtmlEditCtrlBase::HyperLink

Inserts a hyperlink on the current selection.

CHtmlEditCtrlBase::IE50Paste

Performs a paste operation compatible with Microsoft Internet Explorer 5.

CHtmlEditCtrlBase::Iframe

Overwrites an inline frame on the current selection.

CHtmlEditCtrlBase::Image

Overwrites an image on the current selection.

CHtmlEditCtrlBase::Indent

Increases the indent of the selected text by one indentation increment.

CHtmlEditCtrlBase::InsFieldSet

Overwrites a box on the current selection.

CHtmlEditCtrlBase::InsInputButton

Overwrites a button control on the current selection.

CHtmlEditCtrlBase::InsInputHidden

Inserts a hidden control on the current selection.

CHtmlEditCtrlBase::InsInputImage

Overwrites an image control on the current selection.

CHtmlEditCtrlBase::InsInputPassword

Overwrites a password control on the current selection.

CHtmlEditCtrlBase::InsInputReset

Overwrites a reset control on the current selection.

CHtmlEditCtrlBase::InsInputSubmit

Overwrites a submit control on the current selection.

CHtmlEditCtrlBase::InsInputUpload

Overwrites a file upload control on the current selection.

CHtmlEditCtrlBase::Is1DElement

Determines if an element is statically positioned.

CHtmlEditCtrlBase::Is2DElement

Determines if an element is absolutely positioned.

CHtmlEditCtrlBase::Italic

Toggles the current selection between italic and nonitalic.

CHtmlEditCtrlBase::JustifyCenter

Centers the format block in which the current selection is located.

CHtmlEditCtrlBase::JustifyLeft

Left-justifies the format block in which the current selection is located.

CHtmlEditCtrlBase::JustifyRight

Right-justifies the format block in which the current selection is located.

CHtmlEditCtrlBase::ListBox

Overwrites a list box selection control on the current selection.

CHtmlEditCtrlBase::Marquee

Overwrites an empty marquee on the current selection.

CHtmlEditCtrlBase::NewDocument

Creates a new document.

CHtmlEditCtrlBase::OrderList

Toggles the current selection between an ordered list and a normal format block.

CHtmlEditCtrlBase::Outdent

Decreases by one increment the indentation of the format block in which the current selection is located.

CHtmlEditCtrlBase::Paragraph

Overwrites a line break on the current selection.

CHtmlEditCtrlBase::Paste

Overwrites the contents of the clipboard on the current selection.

CHtmlEditCtrlBase::PrintDocument

Prints the current document.

CHtmlEditCtrlBase::PrintPreview

Opens the Print Preview window for the current document using either the default print preview template or a custom template.

CHtmlEditCtrlBase::QueryStatus

Call this method to query the status of commands.

CHtmlEditCtrlBase::RadioButton

Overwrites a radio control on the current selection.

CHtmlEditCtrlBase::RefreshDocument

Refreshes the current document.

CHtmlEditCtrlBase::RemoveFormat

Removes the formatting tags from the current selection.

CHtmlEditCtrlBase::SaveAs

Saves the current Web page to a file.

CHtmlEditCtrlBase::SelectAll

Selects the entire document.

CHtmlEditCtrlBase::Set2DPosition

Allows absolutely positioned elements to be moved by dragging.

CHtmlEditCtrlBase::SetAbsolutePosition

Sets an element's position property to "absolute" or "static."

CHtmlEditCtrlBase::SetAtomicSelection

Set atomic selection mode.

CHtmlEditCtrlBase::SetAutoURLDetectMode

Turns automatic URL detection on and off.

CHtmlEditCtrlBase::SetBackColor

Sets the background color of the current selection.

CHtmlEditCtrlBase::SetBlockFormat

Sets the current block format tag.

CHtmlEditCtrlBase::SetBookMark

Creates a bookmark anchor for the current selection or insertion point.

CHtmlEditCtrlBase::SetCSSEditingLevel

Selects which CSS level (CSS1 or CSS2) the editor will support, if any.

CHtmlEditCtrlBase::SetDefaultComposeSettings

Call this method to set the default compose settings.

CHtmlEditCtrlBase::SetDesignMode

Set design mode.

CHtmlEditCtrlBase::SetDisableEditFocusUI

Disables the hatched border and handles around an element that has edit focus.

CHtmlEditCtrlBase::SetDocumentHTML

Sets the HTML of the current document.

CHtmlEditCtrlBase::SetFontFace

Sets the font for the current selection.

CHtmlEditCtrlBase::SetFontSize

Sets the font size for the current selection.

CHtmlEditCtrlBase::SetForeColor

Sets the foreground (text) color of the current selection.

CHtmlEditCtrlBase::SetIE5PasteMode

Sets the paste operation to be compatible with Microsoft Internet Explorer 5.

CHtmlEditCtrlBase::SetLiveResize

Causes the WebBrowser to update an element's appearance continuously during a resizing or moving operation.

CHtmlEditCtrlBase::SetMultiSelect

Enables multiple selection.

CHtmlEditCtrlBase::SetOverrideCursor

Commands the WebBrowser never to change the mouse pointer.

CHtmlEditCtrlBase::SetOverwriteMode

Toggles the text-entry mode between insert and overwrite.

CHtmlEditCtrlBase::SetRespectVisInDesign

Hides invisible elements in design mode.

CHtmlEditCtrlBase::SetShowAlignedSiteTags

Displays a glyph for all elements that have a styleFloat property.

CHtmlEditCtrlBase::SetShowAllTags

Displays glyphs to show the location of all tags in a document.

CHtmlEditCtrlBase::SetShowAreaTags

Displays a glyph for all the area tags.

CHtmlEditCtrlBase::SetShowBRTags

Displays a glyph for all the br tags.

CHtmlEditCtrlBase::SetShowCommentTags

Displays a glyph for all the comment tags.

CHtmlEditCtrlBase::SetShowMiscTags

Displays all the tags shown in Microsoft Internet Explorer 4.0.

CHtmlEditCtrlBase::SetShowScriptTags

Displays a glyph for all the script tags.

CHtmlEditCtrlBase::SetShowStyleTags

Displays a glyph for all the style tags.

CHtmlEditCtrlBase::SetShowUnknownTags

Displays a glyph for all the unknown tags.

CHtmlEditCtrlBase::TextArea

Overwrites a multiline text input control on the current selection.

CHtmlEditCtrlBase::TextBox

Overwrites a text control on the current selection.

CHtmlEditCtrlBase::UnBookmark

Removes any bookmark from the current selection.

CHtmlEditCtrlBase::Underline

Toggles the current selection between underlined and not underlined.

CHtmlEditCtrlBase::Unlink

Removes any hyperlink from the current selection.

CHtmlEditCtrlBase::UnorderList

Toggles the current selection between an ordered list and a normal format block.

Parameters

  • T
    The name of the derived class.

Remarks

CHtmlEditCtrlBase provides member functions for the WebBrowser's HTML editing commands, such as Bold. (Alternately, you can call ExecCommand to execute the IDM_BOLD command.)

CHtmlEditCtrlBase is not intended to stand on its own. It is designed to be a base class for derived classes that expose the HTML editing functionality of the WebBrowser (see CHtmlEditCtrl and CHtmlEditView).

Inheritance Hierarchy

CHtmlEditCtrlBase

Requirements

Header: afxhtml.h

See Also

Reference

Hierarchy Chart

Concepts

HTMLEdit Sample