导航:  Windows Controls Procedures > List View Control > Structures >

LVFINDINFO

上一页返回章节概述下一页

描述

 

包含搜索列表视图项时使用的信息.这种结构是相同的LV_FINDINFO但已更名为符合标准命名约定.

 

FreeBASIC 语法

 

TYPE LVFINDINFOW

  flags       AS UINT

  psz         AS LPCWSTR

  lParam      AS LPARAM

  pt          AS POINT

  vkDirection AS UINT

END TYPE

 

成员

 

flags

 

Type of search to perform. This member can be set to one or more of the following values:

 

LVFI_PARAM

Searches for a match between this structure's lParam member and the lParam member of an item's LVITEM structure.

LVFI_PARTIAL

Checks to see if the item text begins with the string pointed to by the psz member. This value implies use of LVFI_STRING.

LVFI_STRING

Searches based on the item text. Unless additional values are specified, the item text of the matching item must exactly match the string pointed to by the psz member. However, the search is case-insensitive.

LVFI_SUBSTRING

Windows Vista and later. Equivalent to LVFI_PARTIAL.

LVFI_WRAP

Continues the search at the beginning if no match is found. If this flag is used by itself, it is assumed that a string search is wanted.

LVFI_NEARESTXY

Finds the item nearest to the position specified in the pt member, in the direction specified by the vkDirection member. This flag is supported only by large icon and small icon modes. If LVFI_NEARESTXY is specified, all other flags are ignored.

 

psz

 

Address of a null-terminated string to compare with the item text. It is valid only if LVFI_STRING or LVFI_PARTIAL is set in the flags member.

 

lParam

 

Value to compare with the lParam member of a list-view item's LVITEM structure. It is valid only if LVFI_PARAM is set in the flags member.

 

pt

 

POINT structure with the initial search position. It is valid only if LVFI_NEARESTXY is set in the flags member.

 

vkDirection

 

Virtual key code that specifies the direction to search. The following codes are supported:

 

·VK_LEFT
·VK_RIGHT
·VK_UP
·VK_DOWN
·VK_HOME
·VK_END
·VK_PRIOR
·VK_NEXT

 

This member is valid only if LVFI_NEARESTXY is set in the flags member.

 

引用文件

 

CommCtrl.bi