Compartir a través de


Función PIMEStyleFromAttr

Recupera estilos para un atributo determinado.

Sintaxis

const IMESTYLE* __cdecl PIMEStyleFromAttr(
  _In_ const  UINT attr
);

Parámetros

attr [in]

Este parámetro puede ser uno de los valores siguientes.

IMESATTR_FIXEDCONVERTED (5)

IMESATTR_INPUT (0)

IMESATTR_INPUT_ERROR (4)

IMESATTR_MAX (5)

IMESATTR_MIN (0)

IMESATTR_TARGET_CONVERTED (1)

IMESATTR_TARGET_NOTCONVERTED (4)

Valor devuelto

Devuelve un puntero a una estructura IMESTYLE que representa la configuración de color y no de color.

Comentarios

Esta función no tiene ninguna biblioteca de importación o archivo de encabezado asociado; Debe llamarlo mediante las funciones LoadLibrary y GetProcAddress .

La estructura IMESTYLE se define de la siguiente manera:

typedef struct {
    union {
        GRFSTY  grfsty;
        struct {
            UINT    fBold:1;
            UINT    fItalic:1;
            UINT    fUl:1;
            UINT    idUl:(sizeof(UINT) * 8 - 3);
        };
    };

    union {
        IMECOLORSTY colorstyText;
        struct {
            UINT    colorIdText;
            union {
                COLORREF    rgbText;
                UINT        colorWinText;
                UINT        colorSpecText;
                UINT        colorFundText;
            };
        };
    };

    union {
        IMECOLORSTY colorstyBack;
        struct {
            UINT    colorIdBack;
            union {
                COLORREF    rgbBack;
                UINT        colorWinBack;
                UINT        colorSpecBack;
                UINT        colorFundBack;
            };
        };
    };

    union {
        IMECOLORSTY colorstyUl;
        struct {
            UINT    colorIdUl;
            union {
                COLORREF    rgbUl;
                UINT        colorWinUl;
                UINT        colorSpecUl;
                UINT        colorFundUl;
            };
        };
    };
} IMESTYLE;

Requisitos

Requisito Value
Archivo DLL
Imeshare.dll