Home COM GDI+ WebBrowser Data Access

IHtmlDlgSafeHelper  Interface

 

ProgID

HtmlDlgSafeHelper.HtmlDlgSafeHelper.1

ClsID_HtmlDlgSafeHelper

{3050F819-98B5-11CF-BB82-00AA00BDCE0B}

IID_IHtmlDlgSafeHelper

{3050F81A-98B5-11CF-BB82-00AA00BDCE0B}

 

 

This interface enables you to programmatically access the color dialog box, as well as the block format and fonts collections.

 

Note The library TB_HTML includes wrapper functions for this interface.

 

Documentation: IHtmlDlgSafeHelper Interface

 

 

Methods in VTable order

IUnknown Methods

Description

QueryInterface

Returns pointers to supported interfaces.

AddRef

Increments reference count.

Release

Decrements reference count.

IDispatch Methods

Description

GetTypeInfoCount

Retrieves the number of type information interfaces that an object provides (either 0 or 1).

GetTypeInfo

Gets the type information for an object.

GetIDsOfNames

Maps a single member and an optional set of argument names to a corresponding set of integer DISPIDs.

Invoke

Provides access to properties and methods exposed by an object.

IHtmlDlgSafeHelper Methods

Description

chooseColorDlg

Opens the system color-selection dialog box.

getCharset

Retrieves a VARIANT that specifies the character set of the specified font.

fonts

Retrieves a collection of all the system-supported fonts.

blockFormats

Retrieves a collection of strings that specify the names of the available block format tags.

 

chooseColorDLg

 

FUNCTION IHtmlDlgSafeHelper_choosecolordlg ( _
  BYVAL pthis AS DWORD PTR _

, BYVAL initColor AS VARIANT _

, BYREF rgbColor AS VARIANT _

  ) AS LONG


  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[7] USING HtmlDlgSafeHelper_choosecolordlg (pthis, initColor, rgbColor) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

getCharset

 

FUNCTION IHtmlDlgSafeHelper_getCharset ( _
  BYVAL pthis AS DWORD PTR _

, BYVAL fontName AS STRING _

, BYREF charset AS VARIANT _

  ) AS LONG


  LOCAL HRESULT AS LONG
  fontName = UCODE$(fontName)
  CALL DWORD @@pthis[8] USING IHtmlDlgSafeHelper_getCharset (pthis, fontName, charset) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

fonts

 

FUNCTION IHtmlDlgSafeHelper_get_fonts ( _
  BYVAL pthis AS DWORD PTR _

, BYREF p AS DWORD _

  ) AS LONG


  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[9] USING IHtmlDlgSafeHelper_get_fonts (pthis, p) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

blockFormats

 

FUNCTION IHtmlDlgSafeHelper_get_blockFormats ( _
  BYVAL pthis AS DWORD PTR _

, BYREF p AS DWORD _

  ) AS LONG


  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[10] USING IHtmlDlgSafeHelper_get_blockFormats (pthis, p) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

Page last updated on Monday, 03 April 2006 19:56:00 +0200