125
|
Explorer control (browse for the folder being double-clicked)

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'
#import <ExThumbnail.dll>
using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutAcceptFolders(EXTHUMBNAILLib::exIncludeAny);
spThumbnail1->PutMode(EXTHUMBNAILLib::exThumbnailBrowseOnDblClk);
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample");
spThumbnail1->EndUpdate();
|
124
|
Can I display the size of the files, using 1 decimal, such as 10.2 KB instead of 10 KB

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'
#import <ExThumbnail.dll>
using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutAcceptFolders(EXTHUMBNAILLib::exIncludeSubFilesOnly);
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample");
spThumbnail1->PutCaption(_bstr_t("ffolder ? ( fname + ( len( 22:=(int(0:=(1:=fsize)/1024/1024/1024) ? round(=:0*10)/10 + ` GB` : (int(0:==:1/1024/1024) ? round(=") +
":0*10)/10 + ` MB` : (int(0:==:1/1024) ? round(=:0*10)/10 + ` KB` : =:1 + ` B`))) ) ? `, ` + =:22 : `` ) ) : ffile");
spThumbnail1->PutToolTipText(_bstr_t("ffolder ? ( `Name: <b>` + fname + `</b>` + `<br>` + ( len( 0:= ftype ) ? `Type: <b>` + =:0 + `</b>` + `<br>` : `` ) + ( ffolder") +
" = 1 ? `Size: <b>` + (int(0:=(1:=fsize)/1024/1024/1024) ? round(=:0*10)/10 + ` GB` : (int(0:==:1/1024/1024) ? round(=:0*10)/10 +" +
" ` MB` : (int(0:==:1/1024) ? round(=:0*10)/10 + ` KB` : =:1 + ` B`))) + `</b>` + `<br>` : `` ) + `Created: <b>` + fcreated_local" +
" + `</b>` + `<br>` + `Modified: <b>` + fmodified_local + `</b>`+ `<br>` + `Last Opened: <b>` + fopened_local + `</b>`+ (fpicture" +
" ? (`<br>Dimensions: <b>` + fwidth + ` x ` + fheight + `</b>` ) : ``) ) : ffile");
spThumbnail1->EndUpdate();
|
123
|
It appears that Created, Modified and Last Opened values are not correct (local)
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'
#import <ExThumbnail.dll>
using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutPadding(L"");
spThumbnail1->PutAlignment(EXTHUMBNAILLib::exAlignBottomCenter);
spThumbnail1->PutInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample\\elogo.jpg");
spThumbnail1->PutCaption(_bstr_t("`Created: <b><r>` + fcreated_local + `</b>` + `<br>` + `Modified: <b><r>` + fmodified_local + `</b>`+ `<br>` + `Last Opened: <r") +
"><b>` + fopened_local + `</b>`");
spThumbnail1->PutSingleCaption(spThumbnail1->GetCaption());
spThumbnail1->EndUpdate();
|
122
|
It appears that Created, Modified and Last Opened values are not correct (bias)
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'
#import <ExThumbnail.dll>
using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutPadding(L"");
spThumbnail1->PutAlignment(EXTHUMBNAILLib::exAlignBottomCenter);
spThumbnail1->PutInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample\\elogo.jpg");
spThumbnail1->PutCaption(_bstr_t("`Created: <b><r>` + date(fcreated - bias/24/60) + `</b>` + `<br>` + `Modified: <b><r>` + date(fmodified - bias/24/60) + `</b>`+") +
" `<br>` + `Last Opened: <r><b>` + date(fopened - bias/24/60) + `</b>`");
spThumbnail1->PutSingleCaption(spThumbnail1->GetCaption());
spThumbnail1->EndUpdate();
|
121
|
How can I sort the thumbnails, case insensitive

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'
#import <ExThumbnail.dll>
using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutAcceptFolders(EXTHUMBNAILLib::exIncludeSubFilesOnly);
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample");
spThumbnail1->PutSort(EXTHUMBNAILLib::ThumbnailSortEnum(EXTHUMBNAILLib::exThumbailSortInsensitive | EXTHUMBNAILLib::exThumbailSortByName));
spThumbnail1->EndUpdate();
|
120
|
How can I select programatically multiple files
// StateChange event - Fired while the control's state has been changed.
void OnStateChangeThumbnail1(long State)
{
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'
#import <ExThumbnail.dll>
using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
OutputDebugStringW( L"State" );
OutputDebugStringW( spThumbnail1->GetSelect() );
}
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutAutoUpdate(VARIANT_TRUE);
spThumbnail1->PutAcceptFolders(EXTHUMBNAILLib::exIncludeSubFilesOnly);
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample");
spThumbnail1->PutSingleSel(VARIANT_FALSE);
spThumbnail1->PutSelect(L"Brazil.png\\r\\ncordova.png");
spThumbnail1->EndUpdate();
|
119
|
Does your control support multiple-selection

// StateChange event - Fired while the control's state has been changed.
void OnStateChangeThumbnail1(long State)
{
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'
#import <ExThumbnail.dll>
using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
OutputDebugStringW( L"State" );
OutputDebugStringW( spThumbnail1->GetSelect() );
}
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutAutoUpdate(VARIANT_TRUE);
spThumbnail1->PutAcceptFolders(EXTHUMBNAILLib::exIncludeSubFilesOnly);
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample");
spThumbnail1->PutSingleSel(VARIANT_FALSE);
spThumbnail1->PutSelect(L"Brazil.png\\r\\ncordova.png");
spThumbnail1->EndUpdate();
|
118
|
Is it possible to show the selection with a different color, when the control loses the focus

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'
#import <ExThumbnail.dll>
using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutAcceptFolders(EXTHUMBNAILLib::exIncludeAny);
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample");
spThumbnail1->PutBackground(EXTHUMBNAILLib::exThumbnailSelBorderColorHide,RGB(0,0,1));
spThumbnail1->PutSelect(L"Access2007");
spThumbnail1->EndUpdate();
|
117
|
Predefined Keywords of ShowContextMenu property

// StateChange event - Fired while the control's state has been changed.
void OnStateChangeThumbnail1(long State)
{
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'
#import <ExThumbnail.dll>
using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->PutExecuteContextMenu(0);
}
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutAutoUpdate(VARIANT_TRUE);
spThumbnail1->PutAcceptFolders(EXTHUMBNAILLib::exIncludeSubFilesOnly);
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample");
spThumbnail1->PutShowContextMenu(_bstr_t("`menu(` + menu + `)` + `,filecount=` + filecount + `,fileattr=` + hex(fileattr) + `,filename=` + filename + `,fileparsename=` +") +
" fileparsename + `,filefullname=` + filefullname");
spThumbnail1->EndUpdate();
|
116
|
How can I display the identifiers of the control's context menu (debug)

// StateChange event - Fired while the control's state has been changed.
void OnStateChangeThumbnail1(long State)
{
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'
#import <ExThumbnail.dll>
using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
OutputDebugStringW( L"State" );
OutputDebugStringW( L"State" );
OutputDebugStringW( L"ExecuteContextMenu" );
OutputDebugStringW( _bstr_t(spThumbnail1->GetExecuteContextMenu()) );
}
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutAutoUpdate(VARIANT_TRUE);
spThumbnail1->PutAcceptFolders(EXTHUMBNAILLib::exIncludeSubFilesOnly);
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample");
spThumbnail1->PutShowContextMenu(L"`[debug]` + menu");
spThumbnail1->EndUpdate();
|
115
|
How can I copy/execute command a file/folder as path (selection)

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'
#import <ExThumbnail.dll>
using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutAutoUpdate(VARIANT_TRUE);
spThumbnail1->PutAcceptFolders(EXTHUMBNAILLib::exIncludeSubFilesOnly);
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample");
spThumbnail1->PutSelect(L"Brazil.png");
spThumbnail1->ExecuteContextCommand(L"<selection>",VARIANT_TRUE,L"Copy As Path");
spThumbnail1->EndUpdate();
|
114
|
Is it possible to display the item's identifiers in the file's context menu

// StateChange event - Fired while the control's state has been changed.
void OnStateChangeThumbnail1(long State)
{
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'
#import <ExThumbnail.dll>
using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
OutputDebugStringW( L"State " );
OutputDebugStringW( L"State" );
OutputDebugStringW( L"ContextMenu" );
OutputDebugStringW( spThumbnail1->GetShowContextMenu() );
spThumbnail1->PutShowContextMenu(_bstr_t(spThumbnail1->FormatABC(L"B = 20 ? (`[debug]`+ value) : value ",spThumbnail1->GetShowContextMenu(),State,vtMissing,vtMissing)));
}
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutAutoUpdate(VARIANT_TRUE);
spThumbnail1->PutAcceptFolders(EXTHUMBNAILLib::exIncludeSubFilesOnly);
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample");
spThumbnail1->EndUpdate();
|
113
|
How can I copy/execute command a file/folder (selection)
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'
#import <ExThumbnail.dll>
using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutAutoUpdate(VARIANT_TRUE);
spThumbnail1->PutAcceptFolders(EXTHUMBNAILLib::exIncludeSubFilesOnly);
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample");
spThumbnail1->PutSelect(L"Brazil.png");
spThumbnail1->ExecuteContextCommand(L"<selection>",VARIANT_TRUE,L"Copy");
spThumbnail1->EndUpdate();
|
112
|
How can I copy a file/folder (absolute name)
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'
#import <ExThumbnail.dll>
using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutAutoUpdate(VARIANT_TRUE);
spThumbnail1->PutAcceptFolders(EXTHUMBNAILLib::exIncludeSubFilesOnly);
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample");
spThumbnail1->ExecuteContextCommand(L"c:\\Temp",VARIANT_TRUE,L"Copy");
spThumbnail1->EndUpdate();
|
111
|
How can I copy a file/folder (relative name)
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'
#import <ExThumbnail.dll>
using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutAutoUpdate(VARIANT_TRUE);
spThumbnail1->PutAcceptFolders(EXTHUMBNAILLib::exIncludeSubFilesOnly);
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample");
spThumbnail1->ExecuteContextCommand(L"Belgium.png",VARIANT_TRUE,L"Copy");
spThumbnail1->EndUpdate();
|
110
|
ShowContextMenu usage

// StateChange event - Fired while the control's state has been changed.
void OnStateChangeThumbnail1(long State)
{
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'
#import <ExThumbnail.dll>
using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
OutputDebugStringW( L"State" );
OutputDebugStringW( L"State" );
OutputDebugStringW( L"ExecuteContextMenu" );
OutputDebugStringW( _bstr_t(spThumbnail1->GetExecuteContextMenu()) );
}
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutAutoUpdate(VARIANT_TRUE);
spThumbnail1->PutAcceptFolders(EXTHUMBNAILLib::exIncludeSubFilesOnly);
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample");
spThumbnail1->PutShowContextMenu(L"filecount = 0 ? `Exit[id=1000]` : ( ( ( filecount = 1 ) ? filename : `multiple selection` ) + `[dis],[sep],` + menu)");
spThumbnail1->EndUpdate();
|
109
|
ShowContextMenu usage
// StateChange event - Fired while the control's state has been changed.
void OnStateChangeThumbnail1(long State)
{
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'
#import <ExThumbnail.dll>
using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
OutputDebugStringW( L"State" );
OutputDebugStringW( L"State" );
OutputDebugStringW( L"ExecuteContextMenu" );
OutputDebugStringW( _bstr_t(spThumbnail1->GetExecuteContextMenu()) );
}
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutAutoUpdate(VARIANT_TRUE);
spThumbnail1->PutAcceptFolders(EXTHUMBNAILLib::exIncludeSubFilesOnly);
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample");
spThumbnail1->PutShowContextMenu(L"filecount > 1 ? `multiple selection[dis]` : menu");
spThumbnail1->EndUpdate();
|
108
|
ShowContextMenu usage
// StateChange event - Fired while the control's state has been changed.
void OnStateChangeThumbnail1(long State)
{
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'
#import <ExThumbnail.dll>
using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
OutputDebugStringW( L"State" );
OutputDebugStringW( L"State" );
OutputDebugStringW( L"ExecuteContextMenu" );
OutputDebugStringW( _bstr_t(spThumbnail1->GetExecuteContextMenu()) );
}
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutAutoUpdate(VARIANT_TRUE);
spThumbnail1->PutAcceptFolders(EXTHUMBNAILLib::exIncludeSubFilesOnly);
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample");
spThumbnail1->PutShowContextMenu(L"filecount > 1 ? `multiple selection[dis]` : menu");
spThumbnail1->EndUpdate();
|
107
|
ShowContextMenu usage

// StateChange event - Fired while the control's state has been changed.
void OnStateChangeThumbnail1(long State)
{
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'
#import <ExThumbnail.dll>
using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
OutputDebugStringW( L"State" );
OutputDebugStringW( L"State" );
OutputDebugStringW( L"ExecuteContextMenu" );
OutputDebugStringW( _bstr_t(spThumbnail1->GetExecuteContextMenu()) );
}
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutAutoUpdate(VARIANT_TRUE);
spThumbnail1->PutAcceptFolders(EXTHUMBNAILLib::exIncludeSubFilesOnly);
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample");
spThumbnail1->PutShowContextMenu(L"menu replace `&Delete` with ``");
spThumbnail1->EndUpdate();
|
106
|
ShowContextMenu usage

// StateChange event - Fired while the control's state has been changed.
void OnStateChangeThumbnail1(long State)
{
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'
#import <ExThumbnail.dll>
using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
OutputDebugStringW( L"State" );
OutputDebugStringW( L"State" );
OutputDebugStringW( L"ExecuteContextMenu" );
OutputDebugStringW( _bstr_t(spThumbnail1->GetExecuteContextMenu()) );
}
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutAutoUpdate(VARIANT_TRUE);
spThumbnail1->PutAcceptFolders(EXTHUMBNAILLib::exIncludeSubFilesOnly);
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample");
spThumbnail1->PutShowContextMenu(L"`Popup(Item 1[id=1001],Item 2[id=1002],Item 3[id=1003]),` + menu + `,Exit[id=1000]`");
spThumbnail1->EndUpdate();
|
105
|
ShowContextMenu usage

// StateChange event - Fired while the control's state has been changed.
void OnStateChangeThumbnail1(long State)
{
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'
#import <ExThumbnail.dll>
using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
OutputDebugStringW( L"State" );
OutputDebugStringW( L"State" );
OutputDebugStringW( L"ExecuteContextMenu" );
OutputDebugStringW( _bstr_t(spThumbnail1->GetExecuteContextMenu()) );
}
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutAutoUpdate(VARIANT_TRUE);
spThumbnail1->PutAcceptFolders(EXTHUMBNAILLib::exIncludeSubFilesOnly);
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample");
spThumbnail1->PutShowContextMenu(L"filecount = 0 ? `Popup(Item 1[id=1001],Item 2[id=1002],Item 3[id=1003]),[sep],Exit[def][id=1000]` : menu");
spThumbnail1->EndUpdate();
|
104
|
ShowContextMenu usage

// StateChange event - Fired while the control's state has been changed.
void OnStateChangeThumbnail1(long State)
{
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'
#import <ExThumbnail.dll>
using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
OutputDebugStringW( L"State" );
OutputDebugStringW( L"State" );
OutputDebugStringW( L"ExecuteContextMenu" );
OutputDebugStringW( _bstr_t(spThumbnail1->GetExecuteContextMenu()) );
}
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutAutoUpdate(VARIANT_TRUE);
spThumbnail1->PutAcceptFolders(EXTHUMBNAILLib::exIncludeSubFilesOnly);
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample");
spThumbnail1->PutShowContextMenu(L"Popup(Item 1[id=1001],Item 2[id=1002],Item 3[id=1003]),[sep],Exit[def][id=1000]");
spThumbnail1->EndUpdate();
|
103
|
ShowContextMenu usage
// StateChange event - Fired while the control's state has been changed.
void OnStateChangeThumbnail1(long State)
{
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'
#import <ExThumbnail.dll>
using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
OutputDebugStringW( L"State" );
OutputDebugStringW( L"State" );
OutputDebugStringW( L"ExecuteContextMenu" );
OutputDebugStringW( _bstr_t(spThumbnail1->GetExecuteContextMenu()) );
OutputDebugStringW( L"no context menu is generated, so nothing is displayed" );
}
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutAutoUpdate(VARIANT_TRUE);
spThumbnail1->PutAcceptFolders(EXTHUMBNAILLib::exIncludeSubFilesOnly);
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample");
spThumbnail1->PutShowContextMenu(L"``");
spThumbnail1->EndUpdate();
|
102
|
How can I add new items to the default file's context menu

// StateChange event - Fired while the control's state has been changed.
void OnStateChangeThumbnail1(long State)
{
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'
#import <ExThumbnail.dll>
using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
OutputDebugStringW( L"State " );
OutputDebugStringW( L"State" );
OutputDebugStringW( L"ContextMenu" );
OutputDebugStringW( spThumbnail1->GetShowContextMenu() );
spThumbnail1->PutShowContextMenu(_bstr_t(spThumbnail1->FormatABC(L"B = 20 ? ( `My First Popup[def](A,B,C),[sep],`+ value + `,[sep],My Last Popup[def](A,B,C)` ) : value",spThumbnail1->GetShowContextMenu(),State,vtMissing,vtMissing)));
OutputDebugStringW( L"Execute" );
OutputDebugStringW( _bstr_t(spThumbnail1->GetExecuteContextMenu()) );
}
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutAutoUpdate(VARIANT_TRUE);
spThumbnail1->PutAcceptFolders(EXTHUMBNAILLib::exIncludeSubFilesOnly);
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample");
spThumbnail1->EndUpdate();
|
101
|
How can I disable the Delete command from the file's context menu

// StateChange event - Fired while the control's state has been changed.
void OnStateChangeThumbnail1(long State)
{
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'
#import <ExThumbnail.dll>
using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
OutputDebugStringW( L"State " );
OutputDebugStringW( L"State" );
OutputDebugStringW( L"ContextMenu" );
OutputDebugStringW( spThumbnail1->GetShowContextMenu() );
}
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutAutoUpdate(VARIANT_TRUE);
spThumbnail1->PutAcceptFolders(EXTHUMBNAILLib::exIncludeSubFilesOnly);
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample");
spThumbnail1->PutShowContextMenu(L"menu replace `Delete` with `Delete[dis]`");
spThumbnail1->EndUpdate();
|
100
|
How can I remove the Delete command from the file's context menu

// StateChange event - Fired while the control's state has been changed.
void OnStateChangeThumbnail1(long State)
{
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'
#import <ExThumbnail.dll>
using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
OutputDebugStringW( L"State " );
OutputDebugStringW( L"State" );
OutputDebugStringW( L"ContextMenu" );
OutputDebugStringW( spThumbnail1->GetShowContextMenu() );
}
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutAutoUpdate(VARIANT_TRUE);
spThumbnail1->PutAcceptFolders(EXTHUMBNAILLib::exIncludeSubFilesOnly);
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample");
spThumbnail1->PutShowContextMenu(L"menu replace `&Delete` with ``");
spThumbnail1->EndUpdate();
|
99
|
How can I provide my own context menu

// StateChange event - Fired while the control's state has been changed.
void OnStateChangeThumbnail1(long State)
{
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'
#import <ExThumbnail.dll>
using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
OutputDebugStringW( L"State " );
OutputDebugStringW( L"State" );
OutputDebugStringW( L"ContextMenu" );
OutputDebugStringW( spThumbnail1->GetShowContextMenu() );
spThumbnail1->PutShowContextMenu(L"Item 1[id=1][def],Item 2[id=2],[sep][id=3],Popup[id=4](Item 3[id=5],Item 4[id=6])");
OutputDebugStringW( L"ExecuteContextMenu" );
OutputDebugStringW( _bstr_t(spThumbnail1->GetExecuteContextMenu()) );
}
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutAutoUpdate(VARIANT_TRUE);
spThumbnail1->PutAcceptFolders(EXTHUMBNAILLib::exIncludeSubFilesOnly);
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample");
spThumbnail1->EndUpdate();
|
98
|
Is it possible to prevent executing a specific command from the object's context menu
// StateChange event - Fired while the control's state has been changed.
void OnStateChangeThumbnail1(long State)
{
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'
#import <ExThumbnail.dll>
using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
OutputDebugStringW( L"State " );
OutputDebugStringW( L"State" );
OutputDebugStringW( L"ContextMenu" );
OutputDebugStringW( spThumbnail1->GetShowContextMenu() );
OutputDebugStringW( L"ExecuteContextMenu" );
OutputDebugStringW( _bstr_t(spThumbnail1->GetExecuteContextMenu()) );
spThumbnail1->PutExecuteContextMenu(0);
}
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutAutoUpdate(VARIANT_TRUE);
spThumbnail1->PutAcceptFolders(EXTHUMBNAILLib::exIncludeSubFilesOnly);
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample");
spThumbnail1->EndUpdate();
|
97
|
How can I disable the Delete command from the object's context menu

// StateChange event - Fired while the control's state has been changed.
void OnStateChangeThumbnail1(long State)
{
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'
#import <ExThumbnail.dll>
using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
OutputDebugStringW( L"State " );
OutputDebugStringW( L"State" );
OutputDebugStringW( L"ContextMenu" );
OutputDebugStringW( spThumbnail1->GetShowContextMenu() );
spThumbnail1->PutShowContextMenu(_bstr_t(spThumbnail1->FormatABC(L"value replace `&Delete` with `&Delete[dis]`",spThumbnail1->GetShowContextMenu(),vtMissing,vtMissing,vtMissing)));
}
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutAutoUpdate(VARIANT_TRUE);
spThumbnail1->PutAcceptFolders(EXTHUMBNAILLib::exIncludeSubFilesOnly);
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample");
spThumbnail1->EndUpdate();
|
96
|
How can I programmatically selects a file

// StateChange event - Fired while the control's state has been changed.
void OnStateChangeThumbnail1(long State)
{
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'
#import <ExThumbnail.dll>
using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
OutputDebugStringW( L"State" );
}
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutAcceptFolders(EXTHUMBNAILLib::exIncludeAny);
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample");
spThumbnail1->PutBackground(EXTHUMBNAILLib::exThumbnailSelBorderColor,RGB(255,0,0));
spThumbnail1->PutBackground(EXTHUMBNAILLib::exThumbnailSelBorderColorHide,spThumbnail1->GetBackground(EXTHUMBNAILLib::exThumbnailSelBorderColor));
spThumbnail1->PutSelect(L"Access2007");
spThumbnail1->EndUpdate();
|
95
|
How can I programmatically unselect the file
// StateChange event - Fired while the control's state has been changed.
void OnStateChangeThumbnail1(long State)
{
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'
#import <ExThumbnail.dll>
using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
OutputDebugStringW( L"State" );
}
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutAcceptFolders(EXTHUMBNAILLib::exIncludeAny);
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample");
spThumbnail1->PutBackground(EXTHUMBNAILLib::exThumbnailSelBorderColor,RGB(255,0,0));
spThumbnail1->PutBackground(EXTHUMBNAILLib::exThumbnailSelBorderColorHide,spThumbnail1->GetBackground(EXTHUMBNAILLib::exThumbnailSelBorderColor));
spThumbnail1->PutSelect(L"");
spThumbnail1->EndUpdate();
|
94
|
How can I change the color to show the selected frame

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'
#import <ExThumbnail.dll>
using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutAcceptFolders(EXTHUMBNAILLib::exIncludeAny);
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample");
spThumbnail1->PutBackground(EXTHUMBNAILLib::exThumbnailSelBorderColor,RGB(255,0,0));
spThumbnail1->EndUpdate();
|
93
|
How can I remove the frame being selected when the control loses the focus (hidesel)
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'
#import <ExThumbnail.dll>
using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutAcceptFolders(EXTHUMBNAILLib::exIncludeAny);
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample");
spThumbnail1->PutBackground(EXTHUMBNAILLib::exThumbnailSelBorderColorHide,-1);
spThumbnail1->EndUpdate();
|
92
|
When I drop a folder, can I include all its content, files and sub-folders

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'
#import <ExThumbnail.dll>
using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutAcceptFolders(EXTHUMBNAILLib::exIncludeAny);
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample");
spThumbnail1->EndUpdate();
|
91
|
When I drop a folder, can I include sub-folders only

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'
#import <ExThumbnail.dll>
using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutAcceptFolders(EXTHUMBNAILLib::exIncludeSubFoldersOnly);
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample");
spThumbnail1->EndUpdate();
|
90
|
I've noticed that if I drop a single file I get a different caption. How can I change that (sample 2)

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'
#import <ExThumbnail.dll>
using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample\\Brazil.png");
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample\\Romania.png");
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample\\USA.png");
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample\\Venezuela.png");
spThumbnail1->PutCaption(L"`<sha ;;0><fgcolor=808080>` + upper(fname replace `.` + fext with ``)");
spThumbnail1->PutSingleCaption(L"");
spThumbnail1->PutFilterBarPromptPattern(L"USA");
spThumbnail1->EndUpdate();
|
89
|
I've noticed that if I drop a single file I get a different caption. How can I change that (sample 1)

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'
#import <ExThumbnail.dll>
using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->PutInputFile(L"C:\\Program Files\\Exontrol\\ExThumbnail\\Sample\\elogo.jpg");
spThumbnail1->PutSingleCaption(spThumbnail1->GetCaption());
|
88
|
Can I somehow show the close button of the control's filter bar to the right, only if required

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'
#import <ExThumbnail.dll>
using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutFilterBarVisible(EXTHUMBNAILLib::FilterBarVisibleEnum(EXTHUMBNAILLib::exFilterBarShowCloseOnRight | EXTHUMBNAILLib::exFilterBarShowCloseIfRequired | EXTHUMBNAILLib::exFilterBarVisible));
spThumbnail1->PutAcceptFolders(EXTHUMBNAILLib::exIncludeSubFilesOnly);
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample");
spThumbnail1->PutFilterBarBackColor(RGB(0,0,0));
spThumbnail1->PutFilterBarForeColor(RGB(255,255,255));
spThumbnail1->PutFilterBarPromptPattern(L"elogo");
spThumbnail1->EndUpdate();
|
87
|
I have a filter being applied, the question is how can I display the number/count of results (sample 3)

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'
#import <ExThumbnail.dll>
using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutAcceptFolders(EXTHUMBNAILLib::exIncludeSubFilesOnly);
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample");
spThumbnail1->PutFilterBarPromptPattern(L"el");
spThumbnail1->PutStatusCaption(L"(len(ffilter) = 0) ? `` : ( `<fgcolor=808080>` + ( fvcount ? ( fvcount format `0` ) + ` result(s).` : `No results.` ) )");
spThumbnail1->EndUpdate();
|
86
|
Just icons are shown when droping the file into the control. What can I check

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'
#import <ExThumbnail.dll>
using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutThumbnailType(EXTHUMBNAILLib::exThumbnailAvail);
spThumbnail1->PutExtractMethod(L"ThumbnailCache,ThumbnailProvider,ExtractImage");
spThumbnail1->PutAcceptFolders(EXTHUMBNAILLib::exIncludeSubFilesOnly);
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample");
spThumbnail1->EndUpdate();
|
85
|
How can I turn on the auto-update, so the thumbnails updates automatically once the user changes the files
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'
#import <ExThumbnail.dll>
using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutAutoUpdate(VARIANT_TRUE);
spThumbnail1->PutAllowContextMenu(VARIANT_TRUE);
spThumbnail1->PutAcceptFolders(EXTHUMBNAILLib::exIncludeSubFilesOnly);
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample");
spThumbnail1->PutStatusCaption(L"<c><font ;10><sha ;;0>Open the Windows Explorer, and delete or edit any of these files.");
spThumbnail1->EndUpdate();
|
84
|
I am using the control's default context menu to delete the file, and the file still shows in the control with no thumbnail. What can I do so it won't be shown
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'
#import <ExThumbnail.dll>
using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutAutoUpdate(VARIANT_TRUE);
spThumbnail1->PutAllowContextMenu(VARIANT_TRUE);
spThumbnail1->PutAcceptFolders(EXTHUMBNAILLib::exIncludeSubFilesOnly);
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample");
spThumbnail1->PutStatusCaption(L"<c><font ;10><sha ;;0>Open the Windows Explorer, and delete or edit any of these files.");
spThumbnail1->EndUpdate();
|
83
|
Is it possible to displays the file's context menu

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'
#import <ExThumbnail.dll>
using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutAllowContextMenu(VARIANT_TRUE);
spThumbnail1->PutAcceptFolders(EXTHUMBNAILLib::exIncludeSubFilesOnly);
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample");
spThumbnail1->EndUpdate();
|
82
|
How can I programmatically get the number of results

// Click event - Occurs when the user presses and then releases the left mouse button over the control.
void OnClickThumbnail1()
{
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'
#import <ExThumbnail.dll>
using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
OutputDebugStringW( L"Results:" );
OutputDebugStringW( _bstr_t(spThumbnail1->FormatABC(L"fvcount",vtMissing,vtMissing,vtMissing,vtMissing)) );
OutputDebugStringW( L"Total:" );
OutputDebugStringW( _bstr_t(spThumbnail1->FormatABC(L"fcount",vtMissing,vtMissing,vtMissing,vtMissing)) );
}
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutAcceptFolders(EXTHUMBNAILLib::exIncludeSubFilesOnly);
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample");
spThumbnail1->PutFilterBarPromptPattern(L"el");
spThumbnail1->PutStatusCaption(L"(fvcount = fcount) ? `` : ( `<fgcolor=808080>` + ( fvcount ? ( fvcount format `0` ) + ` result(s).` : `No results.` ) )");
spThumbnail1->EndUpdate();
|
81
|
I have a filter being applied, the question is how can I display the number/count of results (sample 2)

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'
#import <ExThumbnail.dll>
using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutAcceptFolders(EXTHUMBNAILLib::exIncludeSubFilesOnly);
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample");
spThumbnail1->PutFilterBarPromptPattern(L"el");
spThumbnail1->PutStatusCaption(L"(fvcount = fcount) ? `` : ( `<fgcolor=808080>` + ( fvcount ? ( fvcount format `0` ) + ` result(s).` : `No results.` ) )");
spThumbnail1->EndUpdate();
|
80
|
I have a filter being applied, the question is how can I display the number of results (sample 1)

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'
#import <ExThumbnail.dll>
using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutAcceptFolders(EXTHUMBNAILLib::exIncludeSubFilesOnly);
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample");
spThumbnail1->PutFilterBarPromptPattern(L"e");
spThumbnail1->PutStatusCaption(L"not (fcount = fvcount ) ? (`<r><font ;6><fgcolor=808080><sha ;;0>Found: <b>` + (len(fvcount) ? fvcount format `0` : 0)) : ``");
spThumbnail1->EndUpdate();
|
79
|
Is it possible to display the number of files that are currently in the list

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'
#import <ExThumbnail.dll>
using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutAcceptFolders(EXTHUMBNAILLib::exIncludeSubFilesOnly);
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample");
spThumbnail1->PutStatusCaption(L"`<r><font ;6><fgcolor=808080><sha ;;0>Count: <b>` + (len(fvcount) ? fvcount : 0)");
spThumbnail1->EndUpdate();
|
78
|
How can I specify the number of files to be displayed

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'
#import <ExThumbnail.dll>
using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutLimitInputFiles(4);
spThumbnail1->PutAcceptFolders(EXTHUMBNAILLib::exIncludeSubFilesOnly);
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample");
spThumbnail1->EndUpdate();
|
77
|
Is it possible to limit the number of files to be shown to one

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'
#import <ExThumbnail.dll>
using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutLimitInputFiles(1);
spThumbnail1->PutAcceptFolders(EXTHUMBNAILLib::exIncludeSubFilesOnly);
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample");
spThumbnail1->EndUpdate();
|
76
|
I've seen that you can magnify the view once the user draggs the control while middle-mouse button is pressed. How can I disable that
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'
#import <ExThumbnail.dll>
using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutAcceptFolders(EXTHUMBNAILLib::exIncludeSubFilesOnly);
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample");
spThumbnail1->PutMode(EXTHUMBNAILLib::ThumbnailModeEnum(EXTHUMBNAILLib::exThumbnailKeepAspectRatio | EXTHUMBNAILLib::exThumbnailAutoFitOnDblClk | EXTHUMBNAILLib::exThumbnailCenter | EXTHUMBNAILLib::exThumbnailStretch | EXTHUMBNAILLib::exThumbnailAutoFit));
spThumbnail1->EndUpdate();
|
75
|
How can I display the name on a line, and the size on the other line

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'
#import <ExThumbnail.dll>
using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutAcceptFolders(EXTHUMBNAILLib::exIncludeSubFilesOnly);
spThumbnail1->PutPadding(L"0 0 0 36");
spThumbnail1->PutMargins(L"4 0");
spThumbnail1->PutSort(EXTHUMBNAILLib::exThumbailSortBySize);
spThumbnail1->PutWordWrap(VARIANT_TRUE);
spThumbnail1->PutCaption(L"ffolder ? ( lower(fname) + ( len( 0:=fsizeF ) ? `<br><c>` + =:0 : `` ) ) : ffile");
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample");
spThumbnail1->EndUpdate();
|
74
|
Can I display the name of the thumbnails without the extension

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'
#import <ExThumbnail.dll>
using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutBackground(EXTHUMBNAILLib::exThumbnailBorderColor,RGB(1,0,0));
spThumbnail1->PutAcceptFolders(EXTHUMBNAILLib::exIncludeSubFilesOnly);
spThumbnail1->PutWordWrap(VARIANT_FALSE);
spThumbnail1->PutCaption(L"ffolder ? ( lower(fname replace `.` + fext with ``) + ( len( 0:=fsizeF ) ? `, ` + =:0 : `` ) ) : ffile");
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample");
spThumbnail1->EndUpdate();
|
73
|
I am trying to use the DblClick event, but the control switch the view to a different mode. Can I open the file, when user double clicks the control
// DblClick event - Occurs when the user dblclk the left mouse button over an object.
void OnDblClickThumbnail1(short Shift,long X,long Y)
{
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'
#import <ExThumbnail.dll>
using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
OutputDebugStringW( _bstr_t(spThumbnail1->GetThumbnailFromPoint(-1,-1)) );
}
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutAcceptFolders(EXTHUMBNAILLib::exIncludeSubFilesOnly);
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample");
spThumbnail1->PutMode(EXTHUMBNAILLib::ThumbnailModeEnum(EXTHUMBNAILLib::exThumbnailKeepAspectRatio | EXTHUMBNAILLib::exThumbnailAllowResize | EXTHUMBNAILLib::exThumbnailCenter | EXTHUMBNAILLib::exThumbnailStretch | EXTHUMBNAILLib::exThumbnailAutoFit));
spThumbnail1->EndUpdate();
|
72
|
How can I hide/prevent showing the control's filter

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'
#import <ExThumbnail.dll>
using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutFilterBarVisible(EXTHUMBNAILLib::exFilterBarHidden);
spThumbnail1->PutAcceptFolders(EXTHUMBNAILLib::exIncludeSubFilesOnly);
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample");
spThumbnail1->EndUpdate();
|
71
|
The thumbnails get resized as soon as I change the filter. Can I make it fixed

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'
#import <ExThumbnail.dll>
using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutScrollPartVisible(EXTHUMBNAILLib::exVScroll,EXTHUMBNAILLib::exExtentThumbPart,VARIANT_TRUE);
spThumbnail1->PutScrollPartVisible(EXTHUMBNAILLib::exHScroll,EXTHUMBNAILLib::exExtentThumbPart,VARIANT_TRUE);
spThumbnail1->PutScrollPartVisible(EXTHUMBNAILLib::ScrollBarEnum(0x2),EXTHUMBNAILLib::exExtentThumbPart,VARIANT_TRUE);
spThumbnail1->PutScrollWidth(4);
spThumbnail1->PutBackground(EXTHUMBNAILLib::exVSBack,RGB(240,240,240));
spThumbnail1->PutBackground(EXTHUMBNAILLib::exVSThumb,RGB(128,128,128));
spThumbnail1->PutScrollHeight(4);
spThumbnail1->PutBackground(EXTHUMBNAILLib::exHSBack,spThumbnail1->GetBackground(EXTHUMBNAILLib::exVSBack));
spThumbnail1->PutBackground(EXTHUMBNAILLib::exHSThumb,spThumbnail1->GetBackground(EXTHUMBNAILLib::exVSThumb));
spThumbnail1->PutBackground(EXTHUMBNAILLib::exScrollSizeGrip,spThumbnail1->GetBackground(EXTHUMBNAILLib::exVSBack));
spThumbnail1->PutMode(EXTHUMBNAILLib::ThumbnailModeEnum(EXTHUMBNAILLib::exThumbnailKeepAspectRatio | EXTHUMBNAILLib::exThumbnailAutoFitOnDblClk | EXTHUMBNAILLib::exThumbnailAllowResize | EXTHUMBNAILLib::exThumbnailCenter | EXTHUMBNAILLib::exThumbnailStretch));
spThumbnail1->PutAcceptFolders(EXTHUMBNAILLib::exIncludeSubFilesOnly);
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample");
spThumbnail1->EndUpdate();
|
70
|
Is it possible to display the names in lower-case, and with a different color the size

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'
#import <ExThumbnail.dll>
using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutAcceptFolders(EXTHUMBNAILLib::exIncludeSubFilesOnly);
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample");
spThumbnail1->PutCaption(L"lower(ffolder ? ( fname : ffile)) + ( len( 0:=fsizeF ) ? `, <fgcolor=A0A0A0>` + =:0 + `</fgcolor>` : `` )");
spThumbnail1->EndUpdate();
|
69
|
Is it possible to display the names in upper-case

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'
#import <ExThumbnail.dll>
using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutAcceptFolders(EXTHUMBNAILLib::exIncludeSubFilesOnly);
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample");
spThumbnail1->PutCaption(L"upper(ffolder ? ( fname + ( len( 0:=fsizeF ) ? `, ` + =:0 : `` ) ) : ffile)");
spThumbnail1->EndUpdate();
|
68
|
How can I programmatically apply a filter to the control

// Click event - Occurs when the user presses and then releases the left mouse button over the control.
void OnClickThumbnail1()
{
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'
#import <ExThumbnail.dll>
using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->PutFilterBarPromptPattern(L"jpg");
}
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutAcceptFolders(EXTHUMBNAILLib::exIncludeSubFilesOnly);
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample");
spThumbnail1->EndUpdate();
|
67
|
How can I clear programmatically the control's filter

// Click event - Occurs when the user presses and then releases the left mouse button over the control.
void OnClickThumbnail1()
{
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'
#import <ExThumbnail.dll>
using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->PutFilterBarPromptPattern(L"");
}
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutAcceptFolders(EXTHUMBNAILLib::exIncludeSubFilesOnly);
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample");
spThumbnail1->PutFilterBarPromptPattern(L"jpg");
spThumbnail1->EndUpdate();
|
66
|
Is the "Start Filter ..." customizable, so I can change to my language

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'
#import <ExThumbnail.dll>
using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutFilterBarBackColor(RGB(0,0,0));
spThumbnail1->PutFilterBarForeColor(RGB(255,255,255));
spThumbnail1->PutFilterBarPrompt(L"<i><b>Click here to start filter for...</b></i>");
spThumbnail1->PutAcceptFolders(EXTHUMBNAILLib::exIncludeSubFilesOnly);
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample");
spThumbnail1->EndUpdate();
|
65
|
How can I define what to filter for. For instance, just the name, extension. Is it possible

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'
#import <ExThumbnail.dll>
using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutAcceptFolders(EXTHUMBNAILLib::exIncludeSubFilesOnly);
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample");
spThumbnail1->PutFilterBarFor(L"fname");
spThumbnail1->PutFilterBarPromptPattern(L"jpg");
spThumbnail1->EndUpdate();
|
64
|
It is possible to turn-on case-sensitive for the control's filter

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'
#import <ExThumbnail.dll>
using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutAcceptFolders(EXTHUMBNAILLib::exIncludeSubFilesOnly);
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample");
spThumbnail1->PutFilterBarPromptType(EXTHUMBNAILLib::FilterPromptEnum(EXTHUMBNAILLib::exFilterPromptCaseSensitive | EXTHUMBNAILLib::exFilterPromptContainsAll));
spThumbnail1->PutFilterBarPromptPattern(L"el");
spThumbnail1->EndUpdate();
|
63
|
Can I filter the thumbnails that starts with instead contains typed characters

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'
#import <ExThumbnail.dll>
using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutAcceptFolders(EXTHUMBNAILLib::exIncludeSubFilesOnly);
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample");
spThumbnail1->PutFilterBarPromptType(EXTHUMBNAILLib::exFilterPromptStartWith);
spThumbnail1->PutFilterBarPromptPattern(L"el");
spThumbnail1->EndUpdate();
|
62
|
Can I use wild characters in the filter

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'
#import <ExThumbnail.dll>
using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutAcceptFolders(EXTHUMBNAILLib::exIncludeSubFilesOnly);
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample");
spThumbnail1->PutFilterBarPromptType(EXTHUMBNAILLib::exFilterPromptPattern);
spThumbnail1->PutFilterBarFor(L"fname");
spThumbnail1->PutFilterBarPromptPattern(L"*.jpg");
spThumbnail1->EndUpdate();
|
61
|
I've noticed that If I type more words on filter bar all should be included, the question is can I display thumbnails that contains any of these words

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'
#import <ExThumbnail.dll>
using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutAcceptFolders(EXTHUMBNAILLib::exIncludeSubFilesOnly);
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample");
spThumbnail1->PutFilterBarPromptType(EXTHUMBNAILLib::exFilterPromptContainsAny);
spThumbnail1->PutFilterBarPromptPattern(L"elogo or something that you won't find");
spThumbnail1->EndUpdate();
|
60
|
How can I change the filter's bar foreground/background color

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'
#import <ExThumbnail.dll>
using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutFilterBarBackColor(RGB(0,0,0));
spThumbnail1->PutFilterBarForeColor(RGB(255,255,255));
spThumbnail1->PutFilterBarPrompt(L"<i>Start Filter...</i>");
spThumbnail1->PutAcceptFolders(EXTHUMBNAILLib::exIncludeSubFilesOnly);
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample");
spThumbnail1->EndUpdate();
|
59
|
The question is can I somehow show the close button of the control's filter bar to the right

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'
#import <ExThumbnail.dll>
using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutFilterBarVisible(EXTHUMBNAILLib::FilterBarVisibleEnum(EXTHUMBNAILLib::exFilterBarShowCloseOnRight | EXTHUMBNAILLib::exFilterBarVisible));
spThumbnail1->PutAcceptFolders(EXTHUMBNAILLib::exIncludeSubFilesOnly);
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample");
spThumbnail1->EndUpdate();
|
58
|
Is it possible to change the color to show the close button of the control's filter bar

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'
#import <ExThumbnail.dll>
using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutBackground(EXTHUMBNAILLib::exFooterFilterBarButton,RGB(0,255,0));
spThumbnail1->PutAcceptFolders(EXTHUMBNAILLib::exIncludeSubFilesOnly);
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample");
spThumbnail1->EndUpdate();
|
57
|
How can I prevent showing the close button, in the control's filter bar

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'
#import <ExThumbnail.dll>
using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutBackground(EXTHUMBNAILLib::exFooterFilterBarButton,-1);
spThumbnail1->PutAcceptFolders(EXTHUMBNAILLib::exIncludeSubFilesOnly);
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample");
spThumbnail1->EndUpdate();
|
56
|
Is it possible to show the close button, only if there is a filter applied

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'
#import <ExThumbnail.dll>
using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutFilterBarVisible(EXTHUMBNAILLib::FilterBarVisibleEnum(EXTHUMBNAILLib::exFilterBarShowCloseIfRequired | EXTHUMBNAILLib::exFilterBarVisible));
spThumbnail1->PutAcceptFolders(EXTHUMBNAILLib::exIncludeSubFilesOnly);
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample");
spThumbnail1->EndUpdate();
|
55
|
How can I close/hide the filter once the user clicks the close button
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'
#import <ExThumbnail.dll>
using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutFilterBarVisible(EXTHUMBNAILLib::FilterBarVisibleEnum(EXTHUMBNAILLib::exFilterBarToggle | EXTHUMBNAILLib::exFilterBarVisible));
spThumbnail1->PutAcceptFolders(EXTHUMBNAILLib::exIncludeSubFilesOnly);
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample");
spThumbnail1->EndUpdate();
|
54
|
How can I disable the control's filter bar

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'
#import <ExThumbnail.dll>
using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutFilterBarVisible(EXTHUMBNAILLib::exFilterBarHidden);
spThumbnail1->PutAcceptFolders(EXTHUMBNAILLib::exIncludeSubFilesOnly);
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample");
spThumbnail1->EndUpdate();
|
53
|
How can I enable the control's filter bar

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'
#import <ExThumbnail.dll>
using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutFilterBarVisible(EXTHUMBNAILLib::exFilterBarVisible);
spThumbnail1->PutAcceptFolders(EXTHUMBNAILLib::exIncludeSubFilesOnly);
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample");
spThumbnail1->EndUpdate();
|
52
|
How can I enable alternate background/foreground colors

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'
#import <ExThumbnail.dll>
using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutBackground(EXTHUMBNAILLib::exThumbnailBackColorAlt,RGB(240,240,240));
spThumbnail1->PutBackground(EXTHUMBNAILLib::exThumbnailForeColorAlt,RGB(128,128,128));
spThumbnail1->PutAcceptFolders(EXTHUMBNAILLib::exIncludeSubFilesOnly);
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample");
spThumbnail1->EndUpdate();
|
51
|
How can I remove all margins, so I have a compact view

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'
#import <ExThumbnail.dll>
using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutMargins(L"0 0");
spThumbnail1->PutPadding(L"0 0 0 0");
spThumbnail1->PutBorders(L"0 0 0 0");
spThumbnail1->PutBackground(EXTHUMBNAILLib::exThumbnailBorderColor,RGB(1,0,0));
spThumbnail1->PutAlignment(EXTHUMBNAILLib::exAlignBottomCenter);
spThumbnail1->PutAcceptFolders(EXTHUMBNAILLib::exIncludeSubFilesOnly);
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample");
spThumbnail1->EndUpdate();
|
50
|
The thumbnail's caption gets wrapped, the question is can I disable that

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'
#import <ExThumbnail.dll>
using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutMargins(L"16 16");
spThumbnail1->PutThumbnailMinWidth(32);
spThumbnail1->PutThumbnailMinHeight(32);
spThumbnail1->PutMode(EXTHUMBNAILLib::ThumbnailModeEnum(EXTHUMBNAILLib::exThumbnailKeepAspectRatio | EXTHUMBNAILLib::exThumbnailAutoFitOnDblClk | EXTHUMBNAILLib::exThumbnailAllowResize | EXTHUMBNAILLib::exThumbnailCenter | EXTHUMBNAILLib::exThumbnailStretch));
spThumbnail1->PutAcceptFolders(EXTHUMBNAILLib::exIncludeSubFilesOnly);
spThumbnail1->PutWordWrap(VARIANT_FALSE);
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample");
spThumbnail1->EndUpdate();
|
49
|
How can I display the thumbnail's caption on the right rather than bottom

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'
#import <ExThumbnail.dll>
using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutMargins(L"0 16");
spThumbnail1->PutPadding(L"0 0 16 0");
spThumbnail1->PutBorders(L"16 16 16 16");
spThumbnail1->PutCaptionRotate(EXTHUMBNAILLib::HTMLRotateEnum(EXTHUMBNAILLib::exHTMLMirror | EXTHUMBNAILLib::exHTMLVertical));
spThumbnail1->PutBackground(EXTHUMBNAILLib::exThumbnailBorderColor,RGB(1,0,0));
spThumbnail1->PutAcceptFolders(EXTHUMBNAILLib::exIncludeSubFilesOnly);
spThumbnail1->PutWordWrap(VARIANT_FALSE);
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample");
spThumbnail1->EndUpdate();
|
48
|
How can I display the thumbnail's caption on the left rather than bottom

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'
#import <ExThumbnail.dll>
using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutMargins(L"0 16");
spThumbnail1->PutPadding(L"16 0 0 0");
spThumbnail1->PutBorders(L"16 16 16 16");
spThumbnail1->PutCaptionRotate(EXTHUMBNAILLib::exHTMLVertical);
spThumbnail1->PutBackground(EXTHUMBNAILLib::exThumbnailBorderColor,RGB(1,0,0));
spThumbnail1->PutAcceptFolders(EXTHUMBNAILLib::exIncludeSubFilesOnly);
spThumbnail1->PutWordWrap(VARIANT_FALSE);
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample");
spThumbnail1->EndUpdate();
|
47
|
How can I display the thumbnail's caption on the top rather than bottom

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'
#import <ExThumbnail.dll>
using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutMargins(L"16 0");
spThumbnail1->PutPadding(L"0 16 0 0");
spThumbnail1->PutBorders(L"16 16 16 16");
spThumbnail1->PutBackground(EXTHUMBNAILLib::exThumbnailBorderColor,RGB(1,0,0));
spThumbnail1->PutAcceptFolders(EXTHUMBNAILLib::exIncludeSubFilesOnly);
spThumbnail1->PutWordWrap(VARIANT_FALSE);
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample");
spThumbnail1->EndUpdate();
|
46
|
How do I enable the scrollbar-extension, as thumb to be shown outside of the control's client area

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'
#import <ExThumbnail.dll>
using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutScrollPartVisible(EXTHUMBNAILLib::exVScroll,EXTHUMBNAILLib::exExtentThumbPart,VARIANT_TRUE);
spThumbnail1->PutScrollPartVisible(EXTHUMBNAILLib::exHScroll,EXTHUMBNAILLib::exExtentThumbPart,VARIANT_TRUE);
spThumbnail1->PutScrollPartVisible(EXTHUMBNAILLib::ScrollBarEnum(0x2),EXTHUMBNAILLib::exExtentThumbPart,VARIANT_TRUE);
spThumbnail1->PutScrollWidth(4);
spThumbnail1->PutBackground(EXTHUMBNAILLib::exVSBack,RGB(240,240,240));
spThumbnail1->PutBackground(EXTHUMBNAILLib::exVSThumb,RGB(128,128,128));
spThumbnail1->PutScrollHeight(4);
spThumbnail1->PutBackground(EXTHUMBNAILLib::exHSBack,spThumbnail1->GetBackground(EXTHUMBNAILLib::exVSBack));
spThumbnail1->PutBackground(EXTHUMBNAILLib::exHSThumb,spThumbnail1->GetBackground(EXTHUMBNAILLib::exVSThumb));
spThumbnail1->PutBackground(EXTHUMBNAILLib::exScrollSizeGrip,spThumbnail1->GetBackground(EXTHUMBNAILLib::exVSBack));
spThumbnail1->PutAcceptFolders(EXTHUMBNAILLib::exIncludeSubFilesOnly);
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample");
spThumbnail1->EndUpdate();
|
45
|
How can I prevent showing the control's scroll bars
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'
#import <ExThumbnail.dll>
using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutAutoDrag(EXTHUMBNAILLib::exAutoDragNone);
spThumbnail1->PutScrollWidth(0);
spThumbnail1->PutScrollHeight(0);
spThumbnail1->PutAcceptFolders(EXTHUMBNAILLib::exIncludeSubFilesOnly);
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample");
spThumbnail1->EndUpdate();
|
44
|
How can I modify the margins of the thumbnail

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'
#import <ExThumbnail.dll>
using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutMargins(L"16 0");
spThumbnail1->PutPadding(L"0 16 0 0");
spThumbnail1->PutBorders(L"16 16 16 16");
spThumbnail1->PutWordWrap(VARIANT_FALSE);
spThumbnail1->PutBackground(EXTHUMBNAILLib::exThumbnailBorderColor,RGB(1,0,0));
spThumbnail1->PutAcceptFolders(EXTHUMBNAILLib::exIncludeSubFilesOnly);
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample");
spThumbnail1->EndUpdate();
|
43
|
The thumbnail view gets scrolled when user clicks it. Can I disable that
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'
#import <ExThumbnail.dll>
using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutAutoDrag(EXTHUMBNAILLib::exAutoDragNone);
spThumbnail1->PutAcceptFolders(EXTHUMBNAILLib::exIncludeSubFilesOnly);
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample");
spThumbnail1->EndUpdate();
|
42
|
The thumbnail get maximized as soon as the user double clicks it. May I prevent that
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'
#import <ExThumbnail.dll>
using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutMode(EXTHUMBNAILLib::ThumbnailModeEnum(EXTHUMBNAILLib::exThumbnailKeepAspectRatio | EXTHUMBNAILLib::exThumbnailAllowResize | EXTHUMBNAILLib::exThumbnailCenter | EXTHUMBNAILLib::exThumbnailStretch | EXTHUMBNAILLib::exThumbnailAutoFit));
spThumbnail1->PutAcceptFolders(EXTHUMBNAILLib::exIncludeSubFilesOnly);
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample");
spThumbnail1->EndUpdate();
|
41
|
Can I limit the thumbnail size when the user resizes it

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'
#import <ExThumbnail.dll>
using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutMargins(L"16 16");
spThumbnail1->PutThumbnailMinWidth(64);
spThumbnail1->PutThumbnailMinHeight(64);
spThumbnail1->PutThumbnailMaxWidth(64);
spThumbnail1->PutThumbnailMaxHeight(64);
spThumbnail1->PutMode(EXTHUMBNAILLib::ThumbnailModeEnum(EXTHUMBNAILLib::exThumbnailKeepAspectRatio | EXTHUMBNAILLib::exThumbnailAutoFitOnDblClk | EXTHUMBNAILLib::exThumbnailAllowResize | EXTHUMBNAILLib::exThumbnailCenter | EXTHUMBNAILLib::exThumbnailStretch));
spThumbnail1->PutAcceptFolders(EXTHUMBNAILLib::exIncludeSubFilesOnly);
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample");
spThumbnail1->PutCaption(L"fname");
spThumbnail1->EndUpdate();
|
40
|
I've seen that that the thumbnail can be resized up to 120 points, can I change that

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'
#import <ExThumbnail.dll>
using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutMargins(L"8 8");
spThumbnail1->PutPadding(L"0 0 0 8");
spThumbnail1->PutThumbnailMinWidth(32);
spThumbnail1->PutThumbnailMinHeight(32);
spThumbnail1->PutMode(EXTHUMBNAILLib::ThumbnailModeEnum(EXTHUMBNAILLib::exThumbnailKeepAspectRatio | EXTHUMBNAILLib::exThumbnailAutoFitOnDblClk | EXTHUMBNAILLib::exThumbnailAllowResize | EXTHUMBNAILLib::exThumbnailCenter | EXTHUMBNAILLib::exThumbnailStretch));
spThumbnail1->PutAcceptFolders(EXTHUMBNAILLib::exIncludeSubFilesOnly);
spThumbnail1->PutWordWrap(VARIANT_FALSE);
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample");
spThumbnail1->PutCaption(L"`<font ;4>` + fname replace `.` + fext with ``");
spThumbnail1->EndUpdate();
|
39
|
How can I change the thumbnail's mode to stack

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'
#import <ExThumbnail.dll>
using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutVirtualMode(VARIANT_FALSE);
spThumbnail1->PutMargins(L"16 16");
spThumbnail1->PutMode(EXTHUMBNAILLib::ThumbnailModeEnum(EXTHUMBNAILLib::exThumbnailAutoFitOnDblClk | EXTHUMBNAILLib::exThumbnailAllowResize | EXTHUMBNAILLib::exThumbnailCenter | EXTHUMBNAILLib::exThumbnailStretch | EXTHUMBNAILLib::exThumbnailAutoFit | EXTHUMBNAILLib::exThumbnailStack));
spThumbnail1->PutAcceptFolders(EXTHUMBNAILLib::exIncludeSubFilesOnly);
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample");
spThumbnail1->EndUpdate();
|
38
|
How do I sort the thumbnails

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'
#import <ExThumbnail.dll>
using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutAcceptFolders(EXTHUMBNAILLib::exIncludeSubFilesOnly);
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample");
spThumbnail1->PutSort(EXTHUMBNAILLib::ThumbnailSortEnum(EXTHUMBNAILLib::exThumbailSortReverse | EXTHUMBNAILLib::exThumbailSortBySize));
spThumbnail1->EndUpdate();
|
37
|
How can I get thumbnailed all sub-files within the folder

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'
#import <ExThumbnail.dll>
using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutAcceptFolders(EXTHUMBNAILLib::exIncludeSubFilesOnly);
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample");
spThumbnail1->EndUpdate();
|
36
|
How can I hide the thumbnail's frame
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'
#import <ExThumbnail.dll>
using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutPadding(L"");
spThumbnail1->PutAlignment(EXTHUMBNAILLib::exAlignBottomCenter);
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample\\elogo.jpg");
spThumbnail1->PutCaption(_bstr_t("ffolder ? ( `Name: <b>` + fname + `</b>` + `<br>` + ( len( 0:= ftype ) ? `Type: <b>` + =:0 + `</b>` + `<br>` : `` ) + ( ffolder") +
" = 1 ? `Size: <b>` + fsizeF + `</b>` + `<br>` : `` ) + `Created: <b>` + date(fcreated - bias/24/60) + `</b>` + `<br>` + `Modifie" +
"d: <b>` + date(fmodified - bias/24/60) + `</b>`+ `<br>` + `Last Opened: <b>` + date(fopened - bias/24/60) + `</b>`+ (fpicture ? " +
"(`<br>Dimensions: <b>` + fwidth + ` x ` + fheight + `</b>` ) : ``) ) : ffile");
spThumbnail1->PutBackground(EXTHUMBNAILLib::exThumbnailBorderColor,RGB(0,0,0));
spThumbnail1->EndUpdate();
|
35
|
How do I get the thumbnail from the cursor
// MouseMove event - Occurs when the user moves the mouse.
void OnMouseMoveThumbnail1(short Button,short Shift,long X,long Y)
{
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'
#import <ExThumbnail.dll>
using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
OutputDebugStringW( _bstr_t(spThumbnail1->GetThumbnailFromPoint(-1,-1)) );
}
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutAcceptFolders(EXTHUMBNAILLib::exIncludeSubFilesOnly);
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample");
spThumbnail1->EndUpdate();
|
34
|
I've noticed that the thumbnail's tooltip is displaying more information. How can I change that

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'
#import <ExThumbnail.dll>
using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutAcceptFolders(EXTHUMBNAILLib::exIncludeSubFilesOnly);
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample");
spThumbnail1->PutToolTipTitle(L"File");
spThumbnail1->PutToolTipText(L"ffile replace fname with (`<b>` + fname + `</b>`)");
spThumbnail1->EndUpdate();
|
33
|
How can I display more information about the thumbnail

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'
#import <ExThumbnail.dll>
using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutPadding(L"");
spThumbnail1->PutAlignment(EXTHUMBNAILLib::exAlignBottomCenter);
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample\\EndangeredAnimals.png");
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample\\logocanary.png");
spThumbnail1->PutCaption(_bstr_t("ffolder ? ( `Name: <b>` + fname + `</b>` + `<br>` + ( len( 0:= ftype ) ? `Type: <b>` + =:0 + `</b>` + `<br>` : `` ) + ( ffolder") +
" = 1 ? `Size: <b>` + fsizeF + `</b>` + `<br>` : `` ) + `Created: <b>` + date(fcreated - bias/24/60) + `</b>` + `<br>` + `Modifie" +
"d: <b>` + date(fmodified - bias/24/60) + `</b>`+ `<br>` + `Last Opened: <b>` + date(fopened - bias/24/60) + `</b>`+ (fpicture ? " +
"(`<br>Dimensions: <b>` + fwidth + ` x ` + fheight + `</b>` ) : ``) ) : ffile");
spThumbnail1->PutSingleCaption(spThumbnail1->GetCaption());
spThumbnail1->EndUpdate();
|
32
|
Can I display the thumbnail's caption based on the size of the view
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'
#import <ExThumbnail.dll>
using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutInputFile(L"C:\\Program Files\\Exontrol\\ExThumbnail\\Sample\\elogo.jpg");
spThumbnail1->PutCaption(L"width < 256 ? fname : ffile");
spThumbnail1->EndUpdate();
|
31
|
How do I know the thumbnail's size (sample 2)

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'
#import <ExThumbnail.dll>
using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutAcceptFolders(EXTHUMBNAILLib::exIncludeSubFilesOnly);
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample");
spThumbnail1->PutCaption(L"`View: ` + width + ` x ` + height");
spThumbnail1->EndUpdate();
|
30
|
How do I know the thumbnail's size (sample 1)

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'
#import <ExThumbnail.dll>
using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutInputFile(L"C:\\Program Files\\Exontrol\\ExThumbnail\\Sample\\elogo.jpg");
spThumbnail1->EndUpdate();
OutputDebugStringW( L"Width: " );
OutputDebugStringW( _bstr_t(spThumbnail1->GetThumbnailWidth()) );
OutputDebugStringW( L"Height: " );
OutputDebugStringW( _bstr_t(spThumbnail1->GetThumbnailHeight()) );
|
29
|
Is it possible to get the dimensions of the picture file

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'
#import <ExThumbnail.dll>
using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample\\elogo.jpg");
spThumbnail1->PutCaption(L"`Dimensions: <b>` + fwidth + ` x ` + fheight");
spThumbnail1->EndUpdate();
|
28
|
Is there any function to determine whether the file is a picture

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'
#import <ExThumbnail.dll>
using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample\\elogo.jpg");
spThumbnail1->AddInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample\\elogo.jpg.2");
spThumbnail1->PutCaption(L"`IsPicture: <b>` + (fpicture ? `Yes` : `No`)");
spThumbnail1->EndUpdate();
|
27
|
How can I get the type of the file, like JPG File, and so on...

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'
#import <ExThumbnail.dll>
using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample\\elogo.jpg");
spThumbnail1->PutCaption(L"`Type: <b>` + ftype");
spThumbnail1->EndUpdate();
|
26
|
How do I get the file/folder's attributes

/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXTHUMBNAILLib' for the library: 'ExThumbnail 1.0 Control Library'
#import <ExThumbnail.dll>
using namespace EXTHUMBNAILLib;
*/
EXTHUMBNAILLib::IThumbnailPtr spThumbnail1 = GetDlgItem(IDC_THUMBNAIL1)->GetControlUnknown();
spThumbnail1->BeginUpdate();
spThumbnail1->PutInputFiles("C:\\Program Files\\Exontrol\\ExThumbnail\\Sample\\elogo.jpg");
spThumbnail1->PutCaption(L"`Attributes: <b>0x` + hex(fattr)");
spThumbnail1->EndUpdate();
|