mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 04:45:45 +00:00
Sort control panels by name.
svn path=/trunk/; revision=11471
This commit is contained in:
parent
7c19997893
commit
b0a01fd7b7
1 changed files with 5 additions and 5 deletions
|
@ -17,7 +17,7 @@
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
/* $Id: control.c,v 1.6 2004/10/29 12:27:58 ekohl Exp $
|
/* $Id: control.c,v 1.7 2004/10/29 16:59:16 ekohl Exp $
|
||||||
*
|
*
|
||||||
* PROJECT: ReactOS System Control Panel
|
* PROJECT: ReactOS System Control Panel
|
||||||
* FILE: lib/cpl/system/control.c
|
* FILE: lib/cpl/system/control.c
|
||||||
|
@ -158,7 +158,7 @@ VOID PopulateCPLList(HWND hLisCtrl)
|
||||||
LV_ITEM lvi;
|
LV_ITEM lvi;
|
||||||
|
|
||||||
memset(&lvi,0x00,sizeof(lvi));
|
memset(&lvi,0x00,sizeof(lvi));
|
||||||
lvi.mask = LVIF_TEXT|LVIF_PARAM|LVIF_STATE|LVIF_IMAGE;
|
lvi.mask = LVIF_TEXT | LVIF_PARAM | LVIF_STATE | LVIF_IMAGE;
|
||||||
lvi.pszText = Name;
|
lvi.pszText = Name;
|
||||||
lvi.state = 0;
|
lvi.state = 0;
|
||||||
lvi.iImage = index;
|
lvi.iImage = index;
|
||||||
|
@ -189,12 +189,12 @@ LRESULT CALLBACK MyWindowProc(HWND hWnd,UINT uMsg,WPARAM wParam,LPARAM lParam)
|
||||||
LV_COLUMN column;
|
LV_COLUMN column;
|
||||||
|
|
||||||
GetClientRect(hWnd,&rect);
|
GetClientRect(hWnd,&rect);
|
||||||
hListView = CreateWindow(WC_LISTVIEW,_T(""),LVS_REPORT | LVS_ALIGNLEFT | LVS_AUTOARRANGE | LVS_SINGLESEL | WS_VISIBLE | WS_CHILD | WS_TABSTOP,0,0,rect.right ,rect.bottom,hWnd,NULL,hInst,0);
|
hListView = CreateWindow(WC_LISTVIEW,_T(""),LVS_REPORT | LVS_ALIGNLEFT | LVS_SORTASCENDING | LVS_AUTOARRANGE | LVS_SINGLESEL | WS_VISIBLE | WS_CHILD | WS_TABSTOP,0,0,rect.right ,rect.bottom,hWnd,NULL,hInst,0);
|
||||||
CTL_DEBUG((_T("Listview Window %08X\r\n"),hListView));
|
CTL_DEBUG((_T("Listview Window %08X\r\n"),hListView));
|
||||||
|
|
||||||
memset(&column,0x00,sizeof(column));
|
memset(&column,0x00,sizeof(column));
|
||||||
column.mask=LVCF_FMT | LVCF_WIDTH | LVCF_SUBITEM|LVCF_TEXT;
|
column.mask = LVCF_FMT | LVCF_WIDTH | LVCF_SUBITEM | LVCF_TEXT;
|
||||||
column.fmt=LVCFMT_LEFT;
|
column.fmt = LVCFMT_LEFT;
|
||||||
column.cx = (rect.right - rect.left) / 3;
|
column.cx = (rect.right - rect.left) / 3;
|
||||||
column.iSubItem = 0;
|
column.iSubItem = 0;
|
||||||
column.pszText = _T("Name");
|
column.pszText = _T("Name");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue