Export (0) Print
Expand All

MonthCal_HitTest macro

Determines which portion of a month calendar control is at a given point on the screen. You can use this macro or send the MCM_HITTEST message explicitly.

Syntax


DWORD MonthCal_HitTest(
  HWND hwndMC,
  PMCHITTESTINFO pMCHitTest
);

Parameters

hwndMC

Type: HWND

Handle to a month calendar control.

pMCHitTest

Type: PMCHITTESTINFO

Pointer to an MCHITTESTINFO structure. Upon calling the macro, the cbSize member must be set to the size of the MCHITTESTINFO structure, and pt must be set to the point you want to hit test.

Return value

Sets values in members of the MCHITTESTINFO structure at pMCHitTest and returns a DWORD value that contains a set of hit test result flags. See the return value description of MCM_HITTEST for a list of the hit test result flags.

The uHit member of the MCHITTESTINFO structure at pMCHitTest will equal the return value.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Commctrl.h

 

 

Community Additions

ADD
Show:
© 2015 Microsoft