commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject cvs commit: jakarta-commons-sandbox/daemon/src/native/nt/procrun procgui.c
Date Fri, 09 May 2003 07:25:04 GMT
mturk       2003/05/09 00:25:04

  Modified:    daemon/src/native/nt/procrun procgui.c
  Log:
  Make the listview full-row selectable.
  
  Revision  Changes    Path
  1.22      +6 -3      jakarta-commons-sandbox/daemon/src/native/nt/procrun/procgui.c
  
  Index: procgui.c
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/daemon/src/native/nt/procrun/procgui.c,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- procgui.c	8 May 2003 18:38:01 -0000	1.21
  +++ procgui.c	9 May 2003 07:25:04 -0000	1.22
  @@ -136,7 +136,7 @@
       DWORD   width;
   } ac_columns[] = {
       {   "Status",   140     },
  -    {   "Class",    170     },
  +    {   "Class",    172     },
       {   "Message",  300     },
   };
   
  @@ -209,7 +209,7 @@
           lvi.cchTextMax  = strlen(ac_lv_stat) + 1;
           row = ListView_InsertItem(ac_list_hwnd, &lvi);
           if (row == -1)
  -            OutputDebugString("Error Inserting List view");
  +            return;
           ListView_SetItemText(ac_list_hwnd, row, 1, ac_lv_class); 
           ListView_SetItemText(ac_list_hwnd, row, 2, (char *)(str + off));
           ListView_EnsureVisible(ac_list_hwnd,
  @@ -501,7 +501,10 @@
                       lvc.cx          = ac_columns[i].width;
                       lvc.pszText     = ac_columns[i].label;
                       ListView_InsertColumn(ac_list_hwnd, i, &lvc );
  -                }
  +               }
  +               ListView_SetExtendedListViewStyleEx(ac_list_hwnd, 0,
  +                                                   LVS_EX_FULLROWSELECT |
  +                                                   LVS_EX_INFOTIP);
              }
              ac_add_list_string(NULL, 0);
              break;
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message