49
Large icons

ExFolderView1->SmallIcons = false;
/*
	Select the Component\Import Component...\Import a Type Library,
	to import the following Type Library:

		OLE Automation

	TypeLib: stdole2.tlb

	to define the namespace: Stdole_tlb
*/
//#include "STDOLE_TLB.h"
Stdole_tlb::FontPtr f = Variant::CreateObject(L"StdFont");
	f->Size = TVariant(long(16));
ExFolderView1->Font = (IFontDisp*)(f);

48
Small icons

ExFolderView1->SmallIcons = true;

47
Folder icons are very close together vertically. Can you change the icon or increase the separation

ExFolderView1->ItemHeight = 24;

46
Is it possible to re-call the ExploreFromHere without re-selecting/expanding any previously item

// Click event - Occurs when the user presses and then releases the left mouse button over the control.
void __fastcall TForm1::ExFolderView1Click(TObject *Sender)
{
	ExFolderView1->ExploreFromHere = L"|reset";
}

ExFolderView1->ExploreFromHere = L"c:\\";

45
How can I expand a folder

ExFolderView1->ShellFolder[TVariant("C:\\")]->Expanded = true;

44
How do I get the subfolders of specified folder

Exfolderviewlib_tlb::IExShellFoldersPtr var_ShellFolders = ExFolderView1->ShellFolder[TVariant("C:\\")]->get_Folders();

43
How do I check a folder

ExFolderView1->HasCheckBoxes = true;
ExFolderView1->ShellFolder[TVariant("C:\\")]->Check = true;

42
How do I get the name of folder, as it is displayed in the control

String var_DisplayName = ExFolderView1->FirstVisibleFolder->DisplayName;

41
How can I specify the folders being displayed in the control

// IncludeFolder event - Occurs when the user includes folders to the control.
void __fastcall TForm1::ExFolderView1IncludeFolder(TObject *Sender,Exfolderviewlib_tlb::IExShellFolder   *Folder,VARIANT_BOOL *   Include)
{
	Include = false;
}

ExFolderView1->IncludeFolder = true;

40
How can I include the files and folders in the control

ExFolderView1->IncludeAttributeMask = 2147483703;

39
How can I change the control's font

/*
	Select the Component\Import Component...\Import a Type Library,
	to import the following Type Library:

		OLE Automation

	TypeLib: stdole2.tlb

	to define the namespace: Stdole_tlb
*/
//#include "STDOLE_TLB.h"
Stdole_tlb::FontPtr f = Variant::CreateObject(L"StdFont");
	f->Name = L"Verdana";
	f->Size = TVariant(long(12));
ExFolderView1->Font = (IFontDisp*)(f);

38
Can I add a rename to the control's context menu
ExFolderView1->CanRename = true;

37
How can I change the shape of the cursor
ExFolderView1->MousePointer = 2;

36
How can I get height of the horizontal scroll bar
OutputDebugString( PChar(ExFolderView1->HorizontalHeight) );

35
How can I get width of the vertical scroll bar
OutputDebugString( PChar(ExFolderView1->VerticalWidth) );

34
How can I remove the control's scroll bars
OutputDebugString( PChar(ExFolderView1->Scrollbars) );

33
How can I get the horizontal scroll range
OutputDebugString( PChar(ExFolderView1->HorizontalOversize) );

32
How can I get the horizontal scroll position
OutputDebugString( PChar(ExFolderView1->HorizontalOffset) );

31
How can I get the vertical scroll range
OutputDebugString( PChar(ExFolderView1->VerticalOversize) );

30
How can I get the vertical scroll position
OutputDebugString( PChar(ExFolderView1->VerticalOffset) );

29
Can I assign partial check boxes to folders, so the sub folders get checked when the user checks the parent folder

ExFolderView1->HasCheckBoxes = true;
ExFolderView1->PartialCheck = true;
ExFolderView1->FirstVisibleFolder->Check = true;

28
How can I drop files to control
ExFolderView1->AllowDropFiles = true;

27
Can I explore only a folder, so the user can't see the parent folder

ExFolderView1->ExploreFromHere = L"c:\\";

26
How can I hide the icons

ExFolderView1->IconsVisible = false;

25
How can I disable or enable the entire control
ExFolderView1->Enabled = false;

24
How can I expand a folder

ExFolderView1->EnsureVisible(TVariant(ExFolderView1->SpecialFolderPath[Exfolderviewlib_tlb::SpecialFolderPathEnum::StartMenu]));

23
How can I ensure that a specified folder fits the contrl's client area

ExFolderView1->EnsureVisible(TVariant(ExFolderView1->SpecialFolderPath[Exfolderviewlib_tlb::SpecialFolderPathEnum::StartMenu]));

22
How do I refresh the control
ExFolderView1->Refresh();

21
Is there any function or property to get the first visible folder

ExFolderView1->HasCheckBoxes = true;
ExFolderView1->FirstVisibleFolder->Check = true;

20
How do I find a special folder, like My Computer

ExFolderView1->set_SelectedFolder(TVariant("::{20D04FE0-3AEA-1069-A2D8-08002B30309D}"));

19
How do I find a special folder, like My Computer

ExFolderView1->set_SelectedFolder(TVariant(ExFolderView1->SpecialFolderPath[Exfolderviewlib_tlb::SpecialFolderPathEnum::MyComputer]));

18
How do I select and expand a folder

ExFolderView1->set_SelectedFolder(TVariant(ExFolderView1->SpecialFolderPath[Exfolderviewlib_tlb::SpecialFolderPathEnum::Programs]));

17
How do I select and expand a folder

ExFolderView1->set_SelectedFolder(TVariant("c:\\"));

16
How do I select a folder

ExFolderView1->set_SelectedFolder(TVariant("c:\\"));

15
How do I get the checked folders or files

ExFolderView1->HasCheckBoxes = true;
ExFolderView1->FirstVisibleFolder->Check = true;
OutputDebugString( PChar(ExFolderView1->FoldersCheck->Count) );

14
How can I display the hidden folders

ExFolderView1->HiddenFolders = true;

13
How can I get the folder or the file from the point
// MouseMove event - Fired when the user move the mouse over the ExFolderView control.
void __fastcall TForm1::ExFolderView1MouseMove(TObject *Sender,short   Button,short   Shift,int   X,int   Y)
{
	OutputDebugString( PChar(ExFolderView1->FolderFromPoint[-1,-1]) );
}


12
How can I refresh the control as soon as the user renames a folder in Windows Explorer
ExFolderView1->AutoUpdate = true;

11
How do I enable or disable the control's context menu
ExFolderView1->EnableShellMenu = false;

10
How do I hide the overlay icons
ExFolderView1->OverlayIcons = false;

9
How do I display the overlay icons
ExFolderView1->OverlayIcons = true;

8
How do I display the share name for folders and files
ExFolderView1->DisplayShareName = true;

7
How do I assign a checkbox for each folder/file in the control

ExFolderView1->HasCheckBoxes = true;

6
How do I remove the lines that link the root items

ExFolderView1->HasLinesAtRoot = false;

5
How do I remove the buttons to expand or collapse the folders

ExFolderView1->HasButtons = false;

4
How do I remove the lines between items

ExFolderView1->HasLines = false;

3
How do I remove the control's border
ExFolderView1->Appearance = Exfolderviewlib_tlb::AppearanceEnum::Flat;

2
How do I change the control's foreground color

ExFolderView1->ForeColor = RGB(255,0,0);

1
How do I change the control's background color

ExFolderView1->BackColor = RGB(255,0,0);