Author: gedmurphy Date: Thu Aug 30 00:20:23 2007 New Revision: 28656
URL: http://svn.reactos.org/svn/reactos?rev=28656&view=rev Log: add the remaining code for changing the list view text
Modified: trunk/reactos/base/applications/mscutils/servman/listview.c
Modified: trunk/reactos/base/applications/mscutils/servman/listview.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mscutils/... ============================================================================== --- trunk/reactos/base/applications/mscutils/servman/listview.c (original) +++ trunk/reactos/base/applications/mscutils/servman/listview.c Thu Aug 30 00:20:23 2007 @@ -105,6 +105,23 @@ 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 @@ 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 @@ NumListedServ = ListView_GetItemCount(Info->hListView);
_sntprintf(szNumServices, - 300, + 31, lpNumServices, NumListedServ);
@@ -322,7 +355,6 @@ 0, lpNumServices); } - }
/* turn redraw flag on. It's turned off initially via the LBS_NOREDRAW flag */