mirror of
https://github.com/reactos/reactos.git
synced 2025-01-13 01:22:03 +00:00
add the remaining code for changing the list view text
svn path=/trunk/; revision=28656
This commit is contained in:
parent
0dd73d72c9
commit
592433992d
1 changed files with 34 additions and 2 deletions
|
@ -105,6 +105,23 @@ ChangeListViewText(PMAIN_WND_INFO Info,
|
|||
switch (Column)
|
||||
{
|
||||
case LVNAME:
|
||||
{
|
||||
LPQUERY_SERVICE_CONFIG lpServiceConfig;
|
||||
|
||||
lpServiceConfig = GetServiceConfig(pService->lpServiceName);
|
||||
if (lpServiceConfig)
|
||||
{
|
||||
lvItem.pszText = lpServiceConfig->lpDisplayName;
|
||||
SendMessage(Info->hListView,
|
||||
LVM_SETITEMTEXT,
|
||||
lvItem.iItem,
|
||||
(LPARAM)&lvItem);
|
||||
|
||||
HeapFree(ProcessHeap,
|
||||
0,
|
||||
lpServiceConfig);
|
||||
}
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
|
@ -186,7 +203,23 @@ ChangeListViewText(PMAIN_WND_INFO Info,
|
|||
break;
|
||||
|
||||
case LVLOGONAS:
|
||||
{
|
||||
LPQUERY_SERVICE_CONFIG lpServiceConfig;
|
||||
|
||||
lpServiceConfig = GetServiceConfig(pService->lpServiceName);
|
||||
if (lpServiceConfig)
|
||||
{
|
||||
lvItem.pszText = lpServiceConfig->lpServiceStartName;
|
||||
SendMessage(Info->hListView,
|
||||
LVM_SETITEMTEXT,
|
||||
lvItem.iItem,
|
||||
(LPARAM)&lvItem);
|
||||
|
||||
HeapFree(ProcessHeap,
|
||||
0,
|
||||
lpServiceConfig);
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -309,7 +342,7 @@ RefreshServiceList(PMAIN_WND_INFO Info)
|
|||
NumListedServ = ListView_GetItemCount(Info->hListView);
|
||||
|
||||
_sntprintf(szNumServices,
|
||||
300,
|
||||
31,
|
||||
lpNumServices,
|
||||
NumListedServ);
|
||||
|
||||
|
@ -322,7 +355,6 @@ RefreshServiceList(PMAIN_WND_INFO Info)
|
|||
0,
|
||||
lpNumServices);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/* turn redraw flag on. It's turned off initially via the LBS_NOREDRAW flag */
|
||||
|
|
Loading…
Reference in a new issue