2.2.6.9.8 DhtmlControl::SetHtmlText


Version

Minimum Origin Version Required: Origin 9.1 SR0

Description

Sets the HTML content of body

Syntax

BOOL SetHtmlText( LPCTSTR lpcszHtmlText, BOOL bHeaderIncluded = FALSE )

Parameters

lpcszHtmlText
[input]The inner html content of body
bHeaderIncluded
[input] true will add the default html header to lpcszHtmlText, false will do nothing.

Return

Returns TRUE on success, FALSE on failure.

Examples

EX1

void SetHtmlText_ex1(DhtmlControl& dhtmlctrl)
{
    dhtmlctrl.SetHtmlText("<b>Hello World!</b>");
}

Remark

See Also

Header to Included

Control.h