LISTS.H
资源名称:MSDN_VC98.zip [点击查看]
上传用户:bangxh
上传日期:2007-01-31
资源大小:42235k
文件大小:2k
源码类别:
Windows编程
开发平台:
Visual C++
- /******************************************************************************
- * This is a part of the Microsoft Source Code Samples.
- * Copyright (C) 1993-1997 Microsoft Corporation.
- * All rights reserved.
- * This source code is only intended as a supplement to
- * Microsoft Development Tools and/or WinHelp documentation.
- * See these sources for detailed information regarding the
- * Microsoft samples programs.
- ******************************************************************************/
- /*
- * LISTS.H
- *
- * Header file for multi-column listbox module.
- */
- typedef struct {
- LPTSTR lpszHeadings;
- } MCLBCREATESTRUCT;
- typedef struct {
- HWND hwndLB;
- LPTSTR pszHeadings;
- INT cCols;
- INT SortCol;
- } MCLBSTRUCT;
- #define MYLBSTYLE WS_CHILD|WS_BORDER |LBS_SORT|
- WS_VSCROLL|LBS_OWNERDRAWFIXED|LBS_NOINTEGRALHEIGHT
- HWND CreateMCLBFrame(
- HWND hwndParent,
- LPTSTR lpszTitle, /* frame title string */
- UINT dwStyle, /* frame styles */
- HICON hIcon, /* icon */
- HBRUSH hbrBkgnd, /* background for heading.*/
- LPTSTR lpszHeadings); /* tab delimited list of headings. */
- /* The number of headings indicate */
- /* the number of collumns. */
- VOID AddMCLBText(LPTSTR pszSearch, LPTSTR pszReplace, HWND hwndLBFrame);
- INT GetMCLBColValue(LPTSTR pszSearch, HWND hwndLBFrame, int cCol);
- BOOL DeleteMCLBText(LPTSTR pszSearch, HWND hwndLBFrame);