Header_SetFocusedItem

 

Description

 

Sets the focus to a specified item in a header control. You can use this function or send the HDM_SETFOCUSEDITEM message explicitly.

 

C/C++ Syntax

 

BOOL Header_SetFocusedItem(

HWND hwndHD,

int iItem

);

 

PB Syntax

 

FUNCTION Header_SetFocusedItem( _

BYVAL hwndHD AS DWORD, _

BYVAL iItem AS LONG _

) AS LONG

 

SendMessage Syntax

 

lResult = SendMessage(hwndHD, %HDM_SETFOCUSEDITEM, 0, iItem)

 

Parameters

 

hwndHD

[in] A handle to the header control.

iItem

[in] The index of item.

 

Return Value

 

Returns TRUE if successful, or FALSE otherwise.

 

Minimum Operating Systems

 

Windows Vista.

 

Valid XHTML 1.0 Transitional