IMathInputControl::SetCustomPaint method (micaut.h)

Determines whether a button or background has custom painting.

Syntax

HRESULT SetCustomPaint(
  [in] LONG         Element,
  [in] VARIANT_BOOL Paint
);

Parameters

[in] Element

The identifier for a button or background.

[in] Paint

VARIANT_TRUE to enable custom painting for the specified UI element; otherwise, VARIANT_FALSE.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

If custom painting is enabled, the button or background will be rendered at least partially—and possibly completely—by the container.

Requirements

Requirement Value
Minimum supported client Windows 7 [desktop apps only]
Minimum supported server Windows Server 2008 R2 [desktop apps only]
Target Platform Windows
Header micaut.h (include Micaut.h)

See also

IMathInputControl