Auf Englisch lesen

Freigeben über


_IMathInputControlEvents::Paint method

Notifies the event handler when the buttons and background of the control require painting.

Syntax

c++
HRESULT Paint(
  [in] LONG_PTR hdc,
  [in] LONG     Left,
  [in] LONG     Top,
  [in] LONG     Right,
  [in] LONG     Bottom,
  [in] LONG     Element,
  [in] LONG     State
);

Parameters

  • hdc [in]
    The device context to be painted within.

  • Left [in]
    The left position of the rectangle to paint.

  • Top [in]
    The top position of the rectangle to paint.

  • Right [in]
    The right position of the rectangle to paint.

  • Bottom [in]
    The bottom position of the rectangle to paint.

  • Element [in]
    The ID of the UI element to be painted.

  • State [in]
    The state of the UI element.

Return value

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

Requirements

Minimum supported client

Windows 7 [desktop apps only]

Minimum supported server

Windows Server 2008 R2 [desktop apps only]

Header

Micaut.h (include Micaut.h)

IDL

Micaut.idl

See also

_IMathInputControlEvents

Receiving Input from the Math Input Control