获取列表视图项的状态。 可以使用此宏或显式发送 LVM_GETITEMSTATE 消息。语法C++ 复制 UINT ListView_GetItemState( HWND hwndLV, int i, UINT mask ); 参数hwndLV类型:HWND列表视图控件的句柄。i类型:int列表视图项的索引。mask类型:UINT要检索的状态信息。 此参数可以是以下值的组合:展开...
for(inti =0; i < mylist4.GetItemCount(); i++) {UINT n= mylist4.GetItemState(i, LVIS_SELECTED);//获取指定行的状态/*参数1:int nItem 行号 参数2:UINT nMask 要获取的状态 LVIS_SELECTED=2 选中状态 LVIS_FOCUSED 焦点状态 返回值:如果该行处于nMask的状态,则返回nMask的状态号,否则,返回0*...
检索树视图项的部分或全部状态属性。 可以显式发送此消息,也可以使用 TreeView_GetItemState 宏发送。参数wParam 项的句柄。 lParam 用于指定要查询的状态的掩码。 它等效于 TVITEMEX 的stateMask 成员。返回值返回一个 UINT 值,其相应状态位设置为 TRUE。 仅设置 由lParam 指定且为 TRUE 的位。 此值等效于...
GetItemState(),是一种计算机用语,用于返回由hItem指定的项的状态。
i Type:int The index of the list-view item. mask Type:UINT --- 第一个参数:listCtrl句柄; 第二个参数:行索引; 第三个参数:状态信息; 举个例子:判断第一行是否选中 if(ListView_GetItemState(hwndLV,1,LVIS_SELECTED)) { MessageBox(hDlg, "SDF...
HRESULT GetItemState( [in] IShellItem *psi, [in] NSTCITEMSTATE nstcisMask, [out] NSTCITEMSTATE *pnstcisFlags ); 参数[in] psi类型: IShellItem*指向要从中检索状态的 Shell 项的指针。[in] nstcisMask类型: NSTCITEMSTATE以位图的形式指定要请求的信息。 一个或多个 NSTCITEMSTATE 常量。[...
CTabCtrl::GetItem CTabCtrl::GetItemCount CTabCtrl::GetItemRect CTabCtrl::GetItemState CTabCtrl::GetRowCount CTabCtrl::GetToolTips CTabCtrl::HighlightItem CTabCtrl::HitTest CTabCtrl::InsertItem CTabCtrl::RemoveImage CTabCtrl::SetCurFocus CTabCtrl::SetCurSel CTabCtrl::SetExtendedStyle CTabCtrl::SetImageList CTa...
LVM_GETITEMSTATE wParam = (WPARAM)(int) i; lParam = (LPARAM)(UINT) mask; Parametersi Index of the list-view item.mask State data to retrieve. It is one or a combination of the following values. Expand table ValueDescription LVIS_CUT The item is marked for a cut-and-paste operation....
Return ValueReturns the current state for the specified item. The only valid bits in the return value are those that correspond to the bits set in the mask parameter.RequirementsExpand table Header commctrl.hSee AlsoReferenceList-View Controls Messages ListView_GetItemState...