Partager via


ButtonView_t::HitDetect

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

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 Values

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

OS Versions: Windows CE .NET 4.0 and later.
Header: Buttonview.hpp.

Last updated on Wednesday, April 13, 2005

© 2005 Microsoft Corporation. All rights reserved.