⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 listview.h

📁 minigui_1.6.9在WINDOWS32下的原代码,是嵌入式GUI产品,是北京飞漫公司的正式版本.
💻 H
📖 第 1 页 / 共 3 页
字号:
 * * \code * LVM_DELITEM * int nRow; * HLVITEM pi; * * wParam = (WPARAM)nRow; * lParam = (LPARAM)pi; * \endcode * * \param nRow If pi is zero, nRow specified the row index of the target item to delete. * \param pi Handle of the target item. * * \return Returns LV_OKAY if successful, or LV_ERR otherwise. */#define LVM_DELITEM            0xF113/** * \def LVM_CLEARSUBITEM * \brief Clears the content of a subitem. *  * \code * LVM_CLEARSUBITEM * PLVSUBITEM p; * HLVITEM pi; * * lParam = (LPARAM)p; * wParam = (WPARAM)pi; * \endcode * * \param p  Pointes to a PLVSUBITEM structure that contains the information of  *           the subitem to clear. If pi is not zero, nItem member of this struct *           has no meaning. * \param pi Handle of the target item. *           If pi equals zero, the row position of the target item is  *           specified by nItem member of p structure. * * \return Returns LV_OKAY if successful, or LV_ERR otherwise. */#define LVM_CLEARSUBITEM       0xF114/** * \def LVM_DELCOLUMN * \brief Deletes a column from listview, all subitem in this column will be removed.   * * \code * LVM_DELCOLUMN * int nCols; * * wParam = (WPARAM)nCol; * lParam = 0; * \endcode * * \param nCol The index of the column to be removed. * \return Returns LV_OKAY if successful, or LV_ERR otherwise. */#define LVM_DELCOLUMN          0xF115/** * \def LVM_COLSORT * \brief Sorts all subitems according to a certain column.  * * \code * LVM_COLSORT * int ncol; * * wParam = (WPARAM)ncol; * lParam = 0; * \endcode * * \param ncol Index of the column. * \return Returns LV_OKAY if successful, or LV_ERR otherwise. */#define LVM_COLSORT            0xF116/** * \def LVM_SETSUBITEMCOLOR * \brief Sets the text color of a subitem. * * \code * LVM_SETSUBITEMCOLOR * PLVSUBITEM p; * HLVITEM pi; * * lParam = (LPARAM)p; * wParam = (WPARAM)pi; * \endcode * * \param p  Pointes to a PLVSUBITEM structure that contains the information of  *           the subitem to set. If pi is not zero, nItem member of this struct *           has no meaning. * \param pi Handle of the target item. *           If pi equals zero, the row position of the target item is  *           specified by nItem member of p structure. * * \return Always returns 0; */#define LVM_SETSUBITEMCOLOR       0xF117/** * \def LVM_FINDITEM * \brief Searchs a item * \code * LVM_FINDITEM * PLVFINDINFO plvfi; * HLVITEM parent; * wParam = (WPARAM)parent; * lParam = (LPARAM)plvfi; * \endcode * \param parent Handle of the item to search in. * \param plvfi Points to a LVFINDINFO structure containing information for searching. *              If parent is zero, iStart member of plvfi specifieds the start position *              on search. * * \return Returns the handle of the found item if successful, or 0 otherwise. */#define LVM_FINDITEM           0xF118/** * * \def LVM_GETSUBITEMTEXT * \brief Retrieves the text of a listview subitem. * * \code  * LVM_GETSUBITEMTEXT * PLVSUBITEM p; * HLVITEM pi; * * lParam = (LPARAM)p; * wParam = (WPARAM)pi; * \endcode * * \param p  Pointes to a PLVSUBITEM structure that contains the information of  *           the subitem to set. If pi is not zero, nItem member of this struct *           has no meaning. * \param pi Handle of the target item. *           If pi equals zero, the row position of the target item is  *           specified by nItem member of p structure. * * \return Returns len of the text if successful, -1 otherwise. */#define LVM_GETSUBITEMTEXT         0xF119/** * \def LVM_GETITEMCOUNT * \brief Gets the number of all the items(rows) in a listview. * * \code * LVM_GETITEMCOUNT * * wParam = 0; * lParam = 0; * \endcode * * \return The number of the items. */#define LVM_GETITEMCOUNT       0xF11A/** * \def LVM_GETCOLUMNCOUNT * \brief Gets the number of all the columns in listview. * * \code * LVM_GETCOLUMNCOUNT * * wParam = 0; * lParam = 0; * \endcode * * \return Returns the number of all the columns in listview. */#define LVM_GETCOLUMNCOUNT     0xF11B/** * \def LVM_GETSELECTEDITEM * \brief Gets the current selected item. * * \code * LVM_GETSELECTEDITEM * * wParam = 0; * lParam = 0; * \endcode * * \return Returns the handle of the current selected item. */#define LVM_GETSELECTEDITEM    0xF11C/** * \def LVM_DELALLITEM * \brief Removes all the items in listview. * * \code * LVM_DEALLITEM * * wParam = 0; * lParam = 0; * \endcode * * \return Returns TRUE if successful, or FALSE otherwise. */#define LVM_DELALLITEM           0xF11D/** * \def LVM_MODIFYHEAD * \brief Changes the title of a column. * * \code * LVM_MODIFYHEAD * PLVCOLUMN pcol; * * wParam = 0; * lParam = (LPARAM)pcol; * \endcode * * \param pcol Pointer to a LVCOLUMN struct. * \return Returns LV_OKAY if successfull, or LV_ERR otherwise. */#define LVM_MODIFYHEAD           0xF11E/** * \def LVM_SELECTITEM * \brief Selects an item. * * \code * LVM_SELECTITEM * int nRow; * HLVITEM pi; * * wParam = (WPARAM)nRow; * lParam = (LPARAM)pi; * \endcode * * \param nRow If pi is zero, nRow specified the row index of the target item to select. * \param pi Handle of the target item. * * \return Always returns 0. */#define LVM_SELECTITEM		0xF11F /** * \def LVM_SHOWITEM * \brief Makes the item is entirely visible in the list view. * * \code * LVM_SHOWITEM * int nRow; * HLVITEM pi; * * wParam = (WPARAM)nRow; * lParam = (LPARAM)pi; * \endcode * * \param nRow If pi is zero, nRow specified the row index of the target item to show. * \param pi Handle of the target item. * * \return Always returns 0. */#define LVM_SHOWITEM		0xF120 /** * \def LVM_GETSUBITEMLEN * \brief Gets the text len of the subitem. * * \code * LVM_GETSUBITEMLEN * PLVSUBITEM p; * HLVITEM pi; * * lParam = (LPARAM)p; * wParam = (WPARAM)pi; * \endcode * * \param p  Pointes to a PLVSUBITEM structure that contains the information of  *           the subitem to set. If pi is not zero, nItem member of this struct *           has no meaning. * \param pi Handle of the target item. *           If pi equals zero, the row position of the target item is  *           specified by nItem member of p structure. * * \return Returns the text len if successful, or LV_ERR otherwise. */#define LVM_GETSUBITEMLEN   	0xF121/** * \def LVM_SETCOLUMN * \brief Sets the attributes of a list view column. * * \code * LVM_SETCOLUMN * PLVCOLUMN pcol; * * wParam = 0; * lParam = (LPARAM)pcol; * \endcode * * \param pcol Points to a LVCOLUMN structure containing the new column information. * * \return Returns LV_OKAY if successful, or LV_ERR otherwise. */#define LVM_SETCOLUMN		0xF122/** * \def LVM_SETSUBITEMTEXT * \brief Sets the text of a subitem. * * \code * LVM_SETSUBITEMTEXT * PLVSUBITEM p; * HLVITEM pi; * * wParam = (WPARAM)pi; * lParam = (LPARAM)p; * \endcode * * \param p  Pointes to a PLVSUBITEM structure that contains the information of  *           the subitem to set. If pi is not zero, nItem member of this struct *           has no meaning. * \param pi Handle of the target item. *           If pi equals zero, the row position of the target item is  *           specified by nItem member of p structure. * * \return Returns LV_OKAY if successful, or LV_ERR otherwise. */#define LVM_SETSUBITEMTEXT	0xF123/** * \def LVM_SETSUBITEM * \brief Sets the attributes of a subitem. * * \code * LVM_SETSUBITEM * PLVSUBITEM p; * HLVITEM pi; * * lParam = (LPARAM)p; * wParam = (WPARAM)pi; * \endcode * * \param p  Pointes to a PLVSUBITEM structure that contains the information of  *           the subitem to set. If pi is not zero, nItem member of this struct *           has no meaning. * \param pi Handle of the target item. *           If pi equals zero, the row position of the target item is  *           specified by nItem member of p structure. * * \return Returns LV_OKAY if successful, or LV_ERR otherwise. */#define LVM_SETSUBITEM		0xF124/** * \def LVM_GETCOLUMN * \brief Retrieves the information about a listview column. * * \code * LVM_GETCOLUMN * int nCol; * PLVCOLUMN pcol; * * wParam = (WPARAM)nCol; * lParam = (LPARAM)pcol; * \endcode * * \param nCol Index of the column. * \param pcol Points to a LVCOLUMN structure for retrieving the information  *             about the column. * * \return Returns TRUE if successful, or FALSE otherwise. */#define LVM_GETCOLUMN		0xF125 /** * \def LVM_GETCOLUMNWIDTH * \brief Retrieves the width of a listview column. * * \code * LVM_GETCOLUMNWIDTH * int nCol; * * wParam = (WPARAM)nCol; * lParam = (LPARAM)0; * \endcode * * \param nCol Index of the column. * * \return Returns the column width if successful, or -1 otherwise. */#define LVM_GETCOLUMNWIDTH	0xF126 /** * \def LVM_GETITEM * \brief Retrieves the item's attributes. * * \code * LVM_GETITEM * HLVITEM pi; * LVITEM item_info; * * wParam = (WPARAM)pi; * lParam = (LPARAM)&item_info; * \endcode * * \param pi Handle of the target item. * \param item_info Used for storing the target item's attributes.                     If pi is zero, nItem field of item_info specified the row index                     of the target item to get. * * \return Returns LV_OKAY if successful, or LV_ERR otherwise. */#define LVM_GETITEM		0xF127 /** * \def LVM_GETITEMSTATE * \brief Retrieves the state of a listview item. * * \code * LVM_GETITEMSTATE

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -