Header_SetFocusedItem macro

Sets the focus to a specified item in a header control. Use this macro or send the HDM_SETFOCUSEDITEM message explicitly.

Syntax


BOOL Header_SetFocusedItem(
  [in]  HWND hwndHD,
  [in]  int iItem
);

Parameters

hwndHD [in]

Type: HWND

A handle to the header control.

iItem [in]

Type: int

The index of item.

Return value

Returns TRUE if successful, or FALSE otherwise.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Commctrl.h

See also

About Header Controls

 

 

Community Additions

ADD
Show:
© 2014 Microsoft