ITfLangBarItemButton::OnClick method (ctfutb.h)

This method is not used if the button item does not have the TF_LBI_STYLE_BTN_BUTTON style.

Syntax

HRESULT OnClick(
  [in] TfLBIClick click,
  [in] POINT      pt,
  [in] const RECT *prcArea
);

Parameters

[in] click

Contains one of the TfLBIClick values that indicate which mouse button was used to click the button.

[in] pt

Pointer to a POINT structure that contains the position of the mouse cursor, in screen coordinates, at the time of the click event.

[in] prcArea

Pointer to a RECT structure that contains the bounding rectangle, in screen coordinates, of the button.

Return value

This method can return one of these values.

Value Description
S_OK
The method was successful.
E_INVALIDARG
One or more parameters are invalid.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header ctfutb.h
DLL Msctf.dll
Redistributable TSF 1.0 on Windows 2000 Professional

See also

ITfLangBarItemButton

POINT

RECT

TfLBIClick