mirror of
https://github.com/reactos/reactos.git
synced 2024-08-25 04:38:43 +00:00
[REACTOS]
Add columns and column titles to the partition listview. svn path=/trunk/; revision=70701
This commit is contained in:
parent
b8c5994f8f
commit
8f032fb669
|
@ -30,6 +30,12 @@
|
|||
|
||||
/* GLOBALS ******************************************************************/
|
||||
|
||||
#define MAX_LIST_COLUMNS (IDS_LIST_COLUMN_LAST - IDS_LIST_COLUMN_FIRST + 1)
|
||||
static const int default_column_widths[MAX_LIST_COLUMNS] = {200, 150, 150};
|
||||
static const int column_alignment[MAX_LIST_COLUMNS] = {LVCFMT_LEFT, LVCFMT_LEFT, LVCFMT_LEFT};
|
||||
|
||||
/* FUNCTIONS ****************************************************************/
|
||||
|
||||
static INT_PTR CALLBACK
|
||||
MoreOptDlgProc(HWND hwndDlg,
|
||||
UINT uMsg,
|
||||
|
@ -103,6 +109,37 @@ PartitionDlgProc(HWND hwndDlg,
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
|
||||
static
|
||||
BOOL
|
||||
CreateListViewColumns(
|
||||
HINSTANCE hInstance,
|
||||
HWND hWndListView)
|
||||
{
|
||||
WCHAR szText[50];
|
||||
int index;
|
||||
LVCOLUMN lvC;
|
||||
|
||||
/* Create columns. */
|
||||
lvC.mask = LVCF_FMT | LVCF_WIDTH | LVCF_TEXT | LVCF_SUBITEM;
|
||||
lvC.pszText = szText;
|
||||
|
||||
/* Load the column labels from the resource file. */
|
||||
for (index = 0; index < MAX_LIST_COLUMNS; index++)
|
||||
{
|
||||
lvC.iSubItem = index;
|
||||
lvC.cx = default_column_widths[index];
|
||||
lvC.fmt = column_alignment[index];
|
||||
|
||||
LoadStringW(hInstance, IDS_LIST_COLUMN_FIRST + index, szText, 50);
|
||||
|
||||
if (ListView_InsertColumn(hWndListView, index, &lvC) == -1)
|
||||
return FALSE;
|
||||
}
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
||||
INT_PTR
|
||||
CALLBACK
|
||||
DriveDlgProc(
|
||||
|
@ -130,6 +167,9 @@ DriveDlgProc(
|
|||
pSetupData = (PSETUPDATA)((LPPROPSHEETPAGE)lParam)->lParam;
|
||||
SetWindowLongPtr(hwndDlg, GWL_USERDATA, (DWORD_PTR)pSetupData);
|
||||
|
||||
CreateListViewColumns(pSetupData->hInstance,
|
||||
GetDlgItem(hwndDlg, IDC_PARTITION));
|
||||
|
||||
#if 1
|
||||
h = SetupDiGetClassDevs(&GUID_DEVCLASS_DISKDRIVE, NULL, NULL, DIGCF_PRESENT);
|
||||
if (h != INVALID_HANDLE_VALUE)
|
||||
|
|
|
@ -128,3 +128,10 @@ BEGIN
|
|||
IDS_NO_TXTSETUP_SIF "Unable to find 'txtsetup.sif'\nSetup is unable to continue."
|
||||
IDS_CAPTION "Настройка на РеактОС"
|
||||
END
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_PARTITION_NAME "Name"
|
||||
IDS_PARTITION_SIZE "Size"
|
||||
IDS_PARTITION_TYPE "Type"
|
||||
END
|
||||
|
|
|
@ -134,3 +134,10 @@ BEGIN
|
|||
IDS_NO_TXTSETUP_SIF "Unable to find 'txtsetup.sif'\nSetup is unable to continue."
|
||||
IDS_CAPTION "Instalace systému ReactOS"
|
||||
END
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_PARTITION_NAME "Name"
|
||||
IDS_PARTITION_SIZE "Size"
|
||||
IDS_PARTITION_TYPE "Type"
|
||||
END
|
||||
|
|
|
@ -128,3 +128,10 @@ BEGIN
|
|||
IDS_NO_TXTSETUP_SIF "Die Datei 'txtsetup.sif' konnte nicht gefunden werden.\nSetup kann nicht fortfahren."
|
||||
IDS_CAPTION "ReactOS Setup"
|
||||
END
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_PARTITION_NAME "Name"
|
||||
IDS_PARTITION_SIZE "Size"
|
||||
IDS_PARTITION_TYPE "Type"
|
||||
END
|
||||
|
|
|
@ -128,3 +128,10 @@ BEGIN
|
|||
IDS_NO_TXTSETUP_SIF "Unable to find 'txtsetup.sif'\nSetup is unable to continue."
|
||||
IDS_CAPTION "ReactOS Setup"
|
||||
END
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_PARTITION_NAME "Name"
|
||||
IDS_PARTITION_SIZE "Size"
|
||||
IDS_PARTITION_TYPE "Type"
|
||||
END
|
||||
|
|
|
@ -128,3 +128,10 @@ BEGIN
|
|||
IDS_NO_TXTSETUP_SIF "Unable to find 'txtsetup.sif'\nSetup is unable to continue"
|
||||
IDS_CAPTION "ReactOS Setup"
|
||||
END
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_PARTITION_NAME "Name"
|
||||
IDS_PARTITION_SIZE "Size"
|
||||
IDS_PARTITION_TYPE "Type"
|
||||
END
|
|
@ -130,3 +130,10 @@ BEGIN
|
|||
IDS_NO_TXTSETUP_SIF "Unable to find 'txtsetup.sif'\nSetup is unable to continue."
|
||||
IDS_CAPTION "Instalación de ReactOS"
|
||||
END
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_PARTITION_NAME "Name"
|
||||
IDS_PARTITION_SIZE "Size"
|
||||
IDS_PARTITION_TYPE "Type"
|
||||
END
|
||||
|
|
|
@ -128,3 +128,10 @@ BEGIN
|
|||
IDS_NO_TXTSETUP_SIF "Unable to find 'txtsetup.sif'\nSetup is unable to continue."
|
||||
IDS_CAPTION "ReactOSi paigaldamine"
|
||||
END
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_PARTITION_NAME "Name"
|
||||
IDS_PARTITION_SIZE "Size"
|
||||
IDS_PARTITION_TYPE "Type"
|
||||
END
|
||||
|
|
|
@ -128,3 +128,10 @@ BEGIN
|
|||
IDS_NO_TXTSETUP_SIF "Unable to find 'txtsetup.sif'\nSetup is unable to continue."
|
||||
IDS_CAPTION "ReactOS Setup"
|
||||
END
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_PARTITION_NAME "Name"
|
||||
IDS_PARTITION_SIZE "Size"
|
||||
IDS_PARTITION_TYPE "Type"
|
||||
END
|
||||
|
|
|
@ -128,3 +128,10 @@ BEGIN
|
|||
IDS_NO_TXTSETUP_SIF "Unable to find 'txtsetup.sif'\nSetup is unable to continue."
|
||||
IDS_CAPTION "Installation de ReactOS"
|
||||
END
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_PARTITION_NAME "Name"
|
||||
IDS_PARTITION_SIZE "Size"
|
||||
IDS_PARTITION_TYPE "Type"
|
||||
END
|
||||
|
|
|
@ -130,3 +130,10 @@ BEGIN
|
|||
IDS_NO_TXTSETUP_SIF "Unable to find 'txtsetup.sif'\nSetup is unable to continue."
|
||||
IDS_CAPTION "התקנת ReactOS"
|
||||
END
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_PARTITION_NAME "Name"
|
||||
IDS_PARTITION_SIZE "Size"
|
||||
IDS_PARTITION_TYPE "Type"
|
||||
END
|
||||
|
|
|
@ -130,3 +130,10 @@ BEGIN
|
|||
IDS_NO_TXTSETUP_SIF "Unable to find 'txtsetup.sif'\nSetup is unable to continue."
|
||||
IDS_CAPTION "ReactOS Setup"
|
||||
END
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_PARTITION_NAME "Name"
|
||||
IDS_PARTITION_SIZE "Size"
|
||||
IDS_PARTITION_TYPE "Type"
|
||||
END
|
||||
|
|
|
@ -128,3 +128,10 @@ BEGIN
|
|||
IDS_NO_TXTSETUP_SIF "Unable to find 'txtsetup.sif'\nSetup is unable to continue."
|
||||
IDS_CAPTION "Installazione di ReactOS"
|
||||
END
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_PARTITION_NAME "Name"
|
||||
IDS_PARTITION_SIZE "Size"
|
||||
IDS_PARTITION_TYPE "Type"
|
||||
END
|
||||
|
|
|
@ -130,3 +130,10 @@ BEGIN
|
|||
IDS_NO_TXTSETUP_SIF "Persediaan tidak dapat mencari 'txtsetup.sif'\nPersediaan tidak dapat meneruskan"
|
||||
IDS_CAPTION "ReactOS Persediaan"
|
||||
END
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_PARTITION_NAME "Name"
|
||||
IDS_PARTITION_SIZE "Size"
|
||||
IDS_PARTITION_TYPE "Type"
|
||||
END
|
||||
|
|
|
@ -128,3 +128,10 @@ BEGIN
|
|||
IDS_NO_TXTSETUP_SIF "Unable to find 'txtsetup.sif'\nSetup is unable to continue."
|
||||
IDS_CAPTION "ReactOS installering"
|
||||
END
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_PARTITION_NAME "Name"
|
||||
IDS_PARTITION_SIZE "Size"
|
||||
IDS_PARTITION_TYPE "Type"
|
||||
END
|
||||
|
|
|
@ -138,3 +138,10 @@ BEGIN
|
|||
IDS_NO_TXTSETUP_SIF "Nie można znaleźć 'txtsetup.sif'\nInstalator nie może kontynuować."
|
||||
IDS_CAPTION "Instalator ReactOS"
|
||||
END
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_PARTITION_NAME "Name"
|
||||
IDS_PARTITION_SIZE "Size"
|
||||
IDS_PARTITION_TYPE "Type"
|
||||
END
|
||||
|
|
|
@ -128,3 +128,10 @@ BEGIN
|
|||
IDS_NO_TXTSETUP_SIF "Unable to find 'txtsetup.sif'\nSetup is unable to continue."
|
||||
IDS_CAPTION "Instalação do ReactOS"
|
||||
END
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_PARTITION_NAME "Name"
|
||||
IDS_PARTITION_SIZE "Size"
|
||||
IDS_PARTITION_TYPE "Type"
|
||||
END
|
||||
|
|
|
@ -137,3 +137,10 @@ BEGIN
|
|||
IDS_NO_TXTSETUP_SIF "Nu se poate găsi „txtsetup.sif”\nInstalarea nu se poate continua."
|
||||
IDS_CAPTION "Asistentul de instalare ReactOS"
|
||||
END
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_PARTITION_NAME "Name"
|
||||
IDS_PARTITION_SIZE "Size"
|
||||
IDS_PARTITION_TYPE "Type"
|
||||
END
|
||||
|
|
|
@ -128,3 +128,10 @@ BEGIN
|
|||
IDS_NO_TXTSETUP_SIF "Не удалось найти файл 'txtsetup.sif'\nПродолжение установки невозможно."
|
||||
IDS_CAPTION "Установка ReactOS"
|
||||
END
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_PARTITION_NAME "Name"
|
||||
IDS_PARTITION_SIZE "Size"
|
||||
IDS_PARTITION_TYPE "Type"
|
||||
END
|
||||
|
|
|
@ -133,3 +133,10 @@ BEGIN
|
|||
IDS_NO_TXTSETUP_SIF "Unable to find 'txtsetup.sif'\nSetup is unable to continue."
|
||||
IDS_CAPTION "ReactOS Setup"
|
||||
END
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_PARTITION_NAME "Name"
|
||||
IDS_PARTITION_SIZE "Size"
|
||||
IDS_PARTITION_TYPE "Type"
|
||||
END
|
||||
|
|
|
@ -130,3 +130,10 @@ BEGIN
|
|||
IDS_NO_TXTSETUP_SIF "Unable to find 'txtsetup.sif'\nSetup is unable to continue."
|
||||
IDS_CAPTION "ReactOS Setup"
|
||||
END
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_PARTITION_NAME "Name"
|
||||
IDS_PARTITION_SIZE "Size"
|
||||
IDS_PARTITION_TYPE "Type"
|
||||
END
|
||||
|
|
|
@ -130,3 +130,10 @@ BEGIN
|
|||
IDS_NO_TXTSETUP_SIF """txtsetup.sif"" bulunamıyor.\nKur sürdüremiyor."
|
||||
IDS_CAPTION "ReactOS Kur"
|
||||
END
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_PARTITION_NAME "Name"
|
||||
IDS_PARTITION_SIZE "Size"
|
||||
IDS_PARTITION_TYPE "Type"
|
||||
END
|
||||
|
|
|
@ -136,3 +136,10 @@ BEGIN
|
|||
IDS_NO_TXTSETUP_SIF "Unable to find 'txtsetup.sif'\nSetup is unable to continue."
|
||||
IDS_CAPTION "Встановлення ReactOS"
|
||||
END
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_PARTITION_NAME "Name"
|
||||
IDS_PARTITION_SIZE "Size"
|
||||
IDS_PARTITION_TYPE "Type"
|
||||
END
|
||||
|
|
|
@ -128,3 +128,10 @@ BEGIN
|
|||
IDS_NO_TXTSETUP_SIF "无法找到 'txtsetup.sif'\n安装程序无法继续。"
|
||||
IDS_CAPTION "ReactOS 安装"
|
||||
END
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_PARTITION_NAME "Name"
|
||||
IDS_PARTITION_SIZE "Size"
|
||||
IDS_PARTITION_TYPE "Type"
|
||||
END
|
||||
|
|
|
@ -130,3 +130,10 @@ BEGIN
|
|||
IDS_NO_TXTSETUP_SIF "無法找到 'txtsetup.sif'\n安裝程式無法繼續。"
|
||||
IDS_CAPTION "ReactOS 安裝"
|
||||
END
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_PARTITION_NAME "Name"
|
||||
IDS_PARTITION_SIZE "Size"
|
||||
IDS_PARTITION_TYPE "Type"
|
||||
END
|
||||
|
|
|
@ -72,3 +72,11 @@
|
|||
#define IDS_SUMMARYSUBTITLE 5051
|
||||
#define IDS_NO_TXTSETUP_SIF 5053
|
||||
#define IDS_CAPTION 5054
|
||||
|
||||
|
||||
#define IDS_PARTITION_NAME 5200
|
||||
#define IDS_PARTITION_SIZE 5201
|
||||
#define IDS_PARTITION_TYPE 5202
|
||||
|
||||
#define IDS_LIST_COLUMN_FIRST IDS_PARTITION_NAME
|
||||
#define IDS_LIST_COLUMN_LAST IDS_PARTITION_TYPE
|
||||
|
|
Loading…
Reference in a new issue