Something went wrong. Try again.
Reactos
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113/* * ReactOS kernel * Copyright (C) 2004 ReactOS Team * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. *//* * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS text-mode setup * FILE: base/setup/usetup/genlist.h * PURPOSE: Generic list functions * PROGRAMMER: */
#pragma once
// #include "../lib/utils/genlist.h"
typedef NTSTATUS(NTAPI *PGET_ENTRY_DESCRIPTION)( IN PGENERIC_LIST_ENTRY Entry, OUT PSTR Buffer, IN SIZE_T cchBufferSize);
typedef struct _GENERIC_LIST_UI{ PGENERIC_LIST List;
PLIST_ENTRY FirstShown; PLIST_ENTRY LastShown; PGENERIC_LIST_ENTRY BackupEntry;
PGET_ENTRY_DESCRIPTION GetEntryDescriptionProc;
SHORT Left; SHORT Top; SHORT Right; SHORT Bottom; BOOL Redraw;
CHAR CurrentItemText[256];
} GENERIC_LIST_UI, *PGENERIC_LIST_UI;
VOIDInitGenericListUi( IN OUT PGENERIC_LIST_UI ListUi, IN PGENERIC_LIST List, IN PGET_ENTRY_DESCRIPTION GetEntryDescriptionProc);
VOIDRestoreGenericListUiState( IN PGENERIC_LIST_UI ListUi);
VOIDDrawGenericList( IN PGENERIC_LIST_UI ListUi, IN SHORT Left, IN SHORT Top, IN SHORT Right, IN SHORT Bottom);
VOIDDrawGenericListCurrentItem( IN PGENERIC_LIST List, IN PGET_ENTRY_DESCRIPTION GetEntryDescriptionProc, IN SHORT Left, IN SHORT Top);
VOIDScrollDownGenericList( IN PGENERIC_LIST_UI ListUi);
VOIDScrollUpGenericList( IN PGENERIC_LIST_UI ListUi);
VOIDScrollPageDownGenericList( IN PGENERIC_LIST_UI ListUi);
VOIDScrollPageUpGenericList( IN PGENERIC_LIST_UI ListUi);
VOIDScrollToPositionGenericList( IN PGENERIC_LIST_UI ListUi, IN ULONG uIndex);
VOIDRedrawGenericList( IN PGENERIC_LIST_UI ListUi);
VOIDGenericListKeyPress( IN PGENERIC_LIST_UI ListUi, IN CHAR AsciiChar);
/* EOF */