Remove old listbox code from driveui.

This commit is contained in:
James Hawkins 2005-05-10 08:29:17 +00:00 committed by Alexandre Julliard
parent 0ade757920
commit bf1061bfc6
1 changed files with 0 additions and 10 deletions

View File

@ -289,12 +289,6 @@ int fill_drives_list(HWND dialog)
lv_set_item(dialog, &item); lv_set_item(dialog, &item);
#if 0
/* the first SendMessage call adds the string and returns the index, the second associates that index with it */
index = SendMessage(GetDlgItem(dialog, IDC_LIST_DRIVES), LB_ADDSTRING ,(WPARAM) -1, (LPARAM) letter);
SendMessage(GetDlgItem(dialog, IDC_LIST_DRIVES), LB_SETITEMDATA, index, (LPARAM) &drives[i]);
#endif
HeapFree(GetProcessHeap(), 0, letter); HeapFree(GetProcessHeap(), 0, letter);
count++; count++;
} }
@ -378,10 +372,6 @@ void on_remove_click(HWND dialog)
WINE_ERR("unixpath: %s\n", drive->unixpath); WINE_ERR("unixpath: %s\n", drive->unixpath);
#if 0
drive = (struct drive *) SendDlgItemMessage(dialog, IDC_LIST_DRIVES, LB_GETITEMDATA, item, 0);
#endif
if (drive->letter == 'C') if (drive->letter == 'C')
{ {
DWORD result = MessageBox(dialog, "Are you sure you want to delete drive C?\n\nMost Windows applications expect drive C to exist, and will die messily if it doesn't. If you proceed remember to recreate it!", "", MB_YESNO | MB_ICONEXCLAMATION); DWORD result = MessageBox(dialog, "Are you sure you want to delete drive C?\n\nMost Windows applications expect drive C to exist, and will die messily if it doesn't. If you proceed remember to recreate it!", "", MB_YESNO | MB_ICONEXCLAMATION);