Discuss this help topic in CBFS Forum

CallbackFileSystem.SetIcon method

Filter:

Pascal    C++ (Lib)    C++ (VCL)    C++ (.NET)    C#    VB.NET    Java 

CallbackFileSystem     See also    

Overview

Sets custom icon for the virtual disk

Declaration

[Pascal]
    procedure SetIcon( IconId : TCBString);
    type TCBString = {$ifdef UNICODE}UnicodeString{$else}WideString{$endif};

[C++ (Lib)]
    void SetIcon( const wchar_t * IconId);

[C++ (VCL)]
    void __fastcall SetIcon( const TCBString IconId);

[C++ (.NET)]
    void SetIcon( String* IconId);

[C#]
    void SetIcon( string IconId)

[VB.NET]
    Sub SetIcon( ByVal IconId As String)

[Java]
    void setIcon( String iconId)

Parameters

  • IconId - ID of the previously installed .ico file, which should be set.

Description

Use this function to set custom icon to be shown for the virtual disk in Explorer. The icon must be installed using InstallIcon method before it can be used.

Call from...

This method may be called only from outside of callback / event handlers and after successful call to CreateStorage().

See also

InstallIcon     ResetIcon     UninstallIcon    

Discuss this help topic in CBFS Forum