Skip to main content
Version: 2025

VisDriveListBox

Namespace: PPJ.Runtime.Vis

Assembly: PPJ.Web.Vis.50 (5.0.0.0)

Lists logical drives available to the application server with their drive-type pictures.

public class VisDriveListBox : VisListBoxBase

Paths refer to the server filesystem. The control handles SAL creation messages to initialize its contents.

Example:

var list = new VisDriveListBox();
SalNumber count = list.Populate();

Constructors

Instance member VisDriveListBox()

Creates the control and registers its SAL message handlers.

Methods

Static member FromHandle(hWnd)

Resolves a SAL handle to an existing VisDriveListBox.

ParameterTypeDescription
hWndSalWindowHandleThe control handle to resolve.

Returns: VisDriveListBox. The associated control, or when no control is resolved.

Throws:

Instance member GetDrive(nIndex)

Extracts a drive path from an item caption.

ParameterTypeDescription
nIndexSalNumberThe zero-based item index.

Returns: SalString. The caption through its first directory separator, or the entire caption when no separator occurs.

Instance member GetDriveType(nIndex)

Reads the drive-type value associated with an item.

ParameterTypeDescription
nIndexSalNumberThe zero-based item index.

Returns: SalNumber. The stored Visual Toolchest drive-type code.

Instance member GetSelectedDrive()

Gets the drive path of the selected item.

Returns: SalString. The selected drive path, or an empty string if no item is selected.

Instance member Populate()

Replaces the items with the server's logical drives and selects the current drive.

Returns: SalNumber. The resulting number of items.

Implements

NameDescription
ISalControl
ISalListControl
ISalWindow