Share via


CHtmlEditCtrlBase::SetDefaultComposeSettings

Llame a este método para establecer el valor predeterminado constituyen valores.

HRESULT SetDefaultComposeSettings(
   LPCSTR szFontName = NULL,
   unsigned short nFontSize = 3,
   COLORREF crFontColor = 0xFF000000,
   COLORREF crFontBgColor = 0xFF000000,
   bool bBold = false,
   bool bItalic = false,
   bool bUnderline = false 
) const;

Parámetros

  • szFontName
    el nombre de fuente.

  • nFontSize
    El tamaño de la fuente.

  • crFontColor
    El color de fuente.

  • crFontBgColor
    El color de fondo de la fuente.

  • bBold
    Paso true para texto en negrita.

  • bItalic
    Paso true para el texto cursiva.

  • bUnderline
    Paso true para el texto subrayado.

Valor devuelto

Devuelve S_OK en correctamente, o un error HRESULT del error.

Comentarios

Este método envía Id. de comando de IDM_COMPOSESETTINGS el control WebBrowser.

Requisitos

encabezado: afxhtml.h

Vea también

Referencia

Clase de CHtmlEditCtrlBase