//================================================================================
// ListCtrlHandle.
//================================================================================

class ListCtrlHandle extends WindowHandle
	Native;

native final function InsertRecord (LVDataRecord Record);

native final function DeleteAllItem ();

native final function DeleteRecord (int Index);

native final function int GetRecordCount ();

native final function int GetSelectedIndex ();

native final function SetSelectedIndex (int Index, bool bMoveToRow);

native final function ShowScrollBar (bool bShow);

native final function bool ModifyRecord (int Index, LVDataRecord Record);

native final function GetSelectedRec (out LVDataRecord Record);

native final function GetRec (int Index, out LVDataRecord Record);

native final function InitListCtrl ();

native final function AdjustColumnWidth (int Col);

native final function SetHeaderAlignment (int Col, ETextAlign Align);

native final function SetHeaderTextOffset (int Col, int offset);

native final function SetResizable (bool B);

native final function SetColumnWidth (int Index, int Width);

native final function EnablePageBrowser (bool Enable);

native final function SetSelectedSelTooltip (bool bFlag);

native final function SetAppearTooltipAtMouseX (bool bFlag);

native final function SetColumnString (int Index, int StrIndex);

native final function SetColumnMinimumWidth (bool bFlag);

native final function SetUseHorizontalScrollBar (bool bFlag);

// Export UListCtrlHandle::execGetShowRow(FFrame&, void* const)
native final function int GetShowRow();

// Export UListCtrlHandle::execSetSortable(FFrame&, void* const)
native final function SetSortable(bool bSortable);

// Export UListCtrlHandle::execShowSortIcon(FFrame&, void* const)
native final function ShowSortIcon(int HeaderIndex);

// Export UListCtrlHandle::execHideSortIcon(FFrame&, void* const)
native final function HideSortIcon();

// Export UListCtrlHandle::execSetAscend(FFrame&, void* const)
native final function SetAscend(int HeaderIndex, bool bAscend);

// Export UListCtrlHandle::execIsAscending(FFrame&, void* const)
native final function bool IsAscending(int HeaderIndex);