Share via


ButtonView_t::HitDetect (Windows Embedded CE 6.0)

1/6/2010

This method determines whether a mouse click or stylus tap occurred within the rectangle for a button.

Syntax

static bool HitDetect(
  HWND hwnd,
  POINT pt
);

Parameters

  • hwnd
    [in] Handle to a window.
  • pt
    [in] POINT structure that specifies the location of the mouse click or stylus tap on the screen.

Return Value

TRUE indicates that the click or tap occurred within the button. FALSE indicates that the click or tap did not occur within the button.

Requirements

Header buttonview.hpp
Windows Embedded CE Windows CE .NET 4.0 and later

See Also

Reference

ButtonView_t