CListCtrl::Arrange

重新定位在图标视图中的项,以便在网格对齐。

BOOL Arrange(
   UINT nCode 
);

参数

  • nCode
    为项目指定对齐样式。 它可以是下列值之一:

    • LVA_ALIGNLEFT 对齐沿窗口的左边缘的项目。

    • LVA_ALIGNTOP 对齐沿窗口上边缘的项目。

    • LVA_DEFAULT 基于列表视图的当前对齐样式(默认值)对齐项目。

    • LVA_SNAPTOGRID 捕捉所有图标对最新的网格位置。

返回值

非零,如果成功;否则零。

备注

nCode 参数指定对齐样式。

示例

    // Align all of the list view control items along the top
    // of the window (the list view control must be in icon or
    // small icon mode).
    m_myListCtrl.Arrange(LVA_ALIGNTOP);

要求

Header: afxcmn.h

请参见

参考

CListCtrl选件类

层次结构图

CListCtrl::EnsureVisible