CTreeCtrl的GetItemState的返回值

CListCtrl::GetItemState

UNIT GetItemState(int nItem,UNIT nMask) const

返回值:指定列表视图项的状态标志。

参数:

nItem 要获取的状态的项的索引值。
nMask 被指定的要返回项的状态标志掩码。

说明:
获取列表视图项的状态。
项的状态被LVITEM结构的state成员所指定,如同联机文档“平台SDK”中所描述的。当指定或更改一个项的状态后,stateMask成员指定希望更改的状态位。
CListCtrl::GetItemState

UNIT GetItemState(int nItem,UNIT nMask) const

返回值:指定列表视图项的状态标志。

参数:
nItem 要获取的状态的项的索引值。
nMask 被指定的要返回项的状态标志掩码。

说明:
获取列表视图项的状态。
项的状态被LVITEM结构的state成员所指定,如同联机文档“平台SDK”中所描述的。当指定或更改一个项的状态后,stateMask成员指定希望更改的状态位。

Value

 
LVIS_CUT

The item is marked for a cut-and-paste operation.

LVIS_DROPHILITED

The item is highlighted as a drag-and-drop target.

LVIS_FOCUSED

The item has the focus, so it is surrounded by a standard focus rectangle. Although more than one item may be selected, only one item can have the focus.

LVIS_SELECTED

The item is selected. The appearance of a selected item depends on whether it has the focus and also on the system colors used for selection.

LVIS_OVERLAYMASK

Use this mask to retrieve the item's overlay image index.

LVIS_STATEIMAGEMASK

Use this mask to retrieve the item's state image index.

   节点插入排序规则:TVI_LAST(附加至最后,无排序)、TVI_SORT(排序)。

  • 1
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值