439. How can I change the background appearance (ebn) for the filter field in the bottom part of the drop down portion
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->BeginUpdate();
spComboBox1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn");
spComboBox1->PutFilterForVisible(VARIANT_TRUE);
spComboBox1->PutFilterForBackColor(0x1000000);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->PutIntegralHeight(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"Default");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->AddItem("Item 1");
var_Items->AddItem("Item 2");
var_Items->AddItem("Item 3");
var_Items->AddItem("Item 4");
var_Items->AddItem("Item 5");
spComboBox1->EndUpdate();
|
438. How can I change the background color for the filter field in the bottom part of the drop down portion
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->BeginUpdate();
spComboBox1->PutFilterForVisible(VARIANT_TRUE);
spComboBox1->PutFilterForBackColor(RGB(240,240,240));
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->PutIntegralHeight(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"Default");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->AddItem("Item 1");
var_Items->AddItem("Item 2");
var_Items->AddItem("Item 3");
var_Items->AddItem("Item 4");
var_Items->AddItem("Item 5");
spComboBox1->EndUpdate();
|
437. How can I display a filter field in the bottom part of the drop down portion
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->BeginUpdate();
spComboBox1->PutFilterForVisible(VARIANT_TRUE);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->PutIntegralHeight(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"Default");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->AddItem("Item 1");
var_Items->AddItem("Item 2");
var_Items->AddItem("Item 3");
var_Items->AddItem("Item 4");
var_Items->AddItem("Item 5");
spComboBox1->EndUpdate();
|
436. Does your control support RightToLeft property for RTL languages or right to left
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->BeginUpdate();
spComboBox1->PutLinesAtRoot(EXCOMBOBOXLib::exLinesAtRoot);
EXCOMBOBOXLib::IColumnPtr var_Column = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"P1")));
var_Column->PutDef(EXCOMBOBOXLib::exCellHasCheckBox,VARIANT_TRUE);
var_Column->PutPartialCheck(VARIANT_TRUE);
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Root");
var_Items->InsertItem(h,long(0),"Child 1");
var_Items->InsertItem(h,long(0),"Child 2");
var_Items->PutExpandItem(h,VARIANT_TRUE);
spComboBox1->PutRightToLeft(VARIANT_TRUE);
spComboBox1->EndUpdate();
|
435. Is there any way to display the vertical scroll bar on the left side, as I want to align my data to the right
| C++ |
|---|
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->PutMinHeightList(304); spComboBox1->PutColumnAutoResize(VARIANT_TRUE); spComboBox1->BeginUpdate(); EXCOMBOBOXLib::IColumnsPtr var_Columns = spComboBox1->GetColumns(); var_Columns->Add(L"C1"); var_Columns->Add(L"C2"); var_Columns->Add(L"C3"); var_Columns->Add(L"C4"); var_Columns->Add(L"C5"); var_Columns->Add(L"C6"); var_Columns->Add(L"C7"); var_Columns->Add(L"C8"); spComboBox1->PutRightToLeft(VARIANT_TRUE); spComboBox1->EndUpdate(); |
434. Can I display the cell's check box after the text
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
EXCOMBOBOXLib::IColumnPtr var_Column = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Column")));
var_Column->PutDef(EXCOMBOBOXLib::exCellHasCheckBox,VARIANT_TRUE);
var_Column->PutDef(EXCOMBOBOXLib::exCellDrawPartsOrder,"caption,check");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->PutCellHasCheckBox(var_Items->AddItem("Caption 1"),long(0),VARIANT_TRUE);
var_Items->PutCellHasCheckBox(var_Items->AddItem("Caption 2"),long(0),VARIANT_TRUE);
|
433. Can I change the order of the parts in the cell, as checkbox after the text, and so on
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0") +
"/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1" +
"/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qO" +
"x3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Column")))->PutDef(EXCOMBOBOXLib::exCellDrawPartsOrder,"caption,check,icon,icons,picture");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Text");
var_Items->PutCellImage(h,long(0),1);
var_Items->PutCellHasCheckBox(h,long(0),VARIANT_TRUE);
|
432. Can I have an image displayed after the text. Can I get that effect without using HTML content
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0") +
"/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1" +
"/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qO" +
"x3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Column")))->PutDef(EXCOMBOBOXLib::exCellDrawPartsOrder,"caption,icon,check,icons,picture");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Text");
var_Items->PutCellImage(h,long(0),1);
|
431. How can I display the column using currency format and enlarge the font for certain values
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
EXCOMBOBOXLib::IColumnPtr var_Column = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Currency")));
var_Column->PutDef(EXCOMBOBOXLib::exCellCaptionFormat,long(1));
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->AddItem("1.23");
var_Items->AddItem("2.34");
var_Items->AddItem("9.94");
var_Items->AddItem("11.94");
var_Items->AddItem("1000");
|
430. How can I get the number of occurrences of a specified string in the cell
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"");
EXCOMBOBOXLib::IColumnPtr var_Column = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"occurrences")));
var_Column->PutComputedField(L"lower(%0) count 'o'");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Root");
var_Items->InsertItem(h,long(0),"Child 1 oooof the root");
var_Items->InsertItem(h,long(0),"Child 2");
var_Items->InsertItem(h,long(0),"Child 3");
var_Items->PutExpandItem(h,VARIANT_TRUE);
|
429. How can I display dates in my format
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
EXCOMBOBOXLib::IColumnPtr var_Column = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Date")));
var_Column->PutDef(EXCOMBOBOXLib::exCellCaptionFormat,long(1));
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->AddItem("1/21/2001");
var_Items->AddItem("2/22/2002");
var_Items->AddItem("3/13/2003");
var_Items->AddItem("4/24/2004");
|
428. How can I display dates in short format
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->AddItem("1/1/2001");
var_Items->AddItem("2/2/2002");
var_Items->AddItem("3/3/2003");
var_Items->AddItem("4/4/2004");
|
427. How can I display dates in long format
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->AddItem("1/1/2001");
var_Items->AddItem("2/2/2002");
var_Items->AddItem("3/3/2003");
var_Items->AddItem("4/4/2004");
|
426. How can I display only the right part of the cell
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"");
EXCOMBOBOXLib::IColumnPtr var_Column = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Right")));
var_Column->PutComputedField(L"%0 right 2");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Root");
var_Items->InsertItem(h,long(0),"Child 1");
var_Items->InsertItem(h,long(0),"Child 2");
var_Items->InsertItem(h,long(0),"SChild 3");
var_Items->PutExpandItem(h,VARIANT_TRUE);
|
425. How can I display only the left part of the cell
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"");
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Left")))->PutComputedField(L"%0 left 2");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Root");
var_Items->InsertItem(h,long(0),"Child 1");
var_Items->InsertItem(h,long(0),"Child 2");
var_Items->InsertItem(h,long(0),"SChild 3");
var_Items->PutExpandItem(h,VARIANT_TRUE);
|
424. How can I display true or false instead 0 and -1
| C++ |
|---|
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->PutMinHeightList(304); spComboBox1->PutColumnAutoResize(VARIANT_TRUE); EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems(); var_Items->AddItem(VARIANT_TRUE); var_Items->AddItem(VARIANT_FALSE); var_Items->AddItem(VARIANT_TRUE); var_Items->AddItem(long(0)); var_Items->AddItem(long(1)); |
423. How can I display icons or images instead numbers
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0") +
"/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1" +
"/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qO" +
"x3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
EXCOMBOBOXLib::IColumnPtr var_Column = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Icons")));
var_Column->PutDef(EXCOMBOBOXLib::exCellCaptionFormat,long(1));
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->AddItem(long(1));
var_Items->AddItem(long(2));
var_Items->AddItem(long(3));
|
422. How can I display the column using currency
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->AddItem("1.23");
var_Items->AddItem("2.34");
var_Items->AddItem("0");
var_Items->AddItem(long(5));
var_Items->AddItem("10000.99");
|
421. How can I display the currency only for not empty cells
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"Number");
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Currency")))->PutComputedField(L"len(%0) ? currency(dbl(%0)) : ''");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->AddItem("1.23");
var_Items->AddItem("2.34");
var_Items->AddItem("0");
var_Items->PutItemBackColor(var_Items->AddItem(vtMissing),RGB(255,128,128));
var_Items->AddItem("10000.99");
|
420. Is there a function to display the number of days between two date including the number of hours
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Start")))->PutWidth(32);
spComboBox1->GetColumns()->Add(L"End");
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Duration")))->PutComputedField(_bstr_t("2:=((1:=int(0:= date(%1)-date(%0))) = 0 ? '' : str(=:1) + ' day(s)') + ( 3:=round(24*(=:0-floor") +
"(=:0))) ? (len(=:2) ? ' and ' : '') + =:3 + ' hour(s)' : '' )");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("1/11/2001");
var_Items->PutCellCaption(h,long(1),"1/14/2001");
h = var_Items->AddItem("2/22/2002 12:00:00 PM");
var_Items->PutCellCaption(h,long(1),"3/14/2002 1:00:00 PM");
h = var_Items->AddItem("3/13/2003");
var_Items->PutCellCaption(h,long(1),"4/11/2003 11:00:00 AM");
|
419. Is there a function to display the number of days between two date including the number of hours
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"Start");
spComboBox1->GetColumns()->Add(L"End");
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Duration")))->PutComputedField(_bstr_t("\"D \" + int(date(%1)-date(%0)) + \" H \" + round(24*(date(%1)-date(%0) - floor(date(%1)-date(%") +
"0))))");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("1/11/2001");
var_Items->PutCellCaption(h,long(1),"1/14/2001 11:00:00 PM");
h = var_Items->AddItem("2/22/2002 12:00:00 PM");
var_Items->PutCellCaption(h,long(1),"3/14/2002 1:00:00 PM");
h = var_Items->AddItem("3/13/2003");
var_Items->PutCellCaption(h,long(1),"4/11/2003 11:00:00 AM");
|
418. How can I display the number of days between two dates
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"Start");
spComboBox1->GetColumns()->Add(L"End");
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Duration")))->PutComputedField(L"(date(%1)-date(%0)) + ' days'");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("1/11/2001");
var_Items->PutCellCaption(h,long(1),"1/14/2001");
h = var_Items->AddItem("2/22/2002");
var_Items->PutCellCaption(h,long(1),"3/14/2002");
h = var_Items->AddItem("3/13/2003");
var_Items->PutCellCaption(h,long(1),"4/11/2003");
|
417. How can I get second part of the date
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"Date");
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Second")))->PutComputedField(L"sec(date(%0))");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->AddItem("1/11/2001 10:10:00 AM");
var_Items->AddItem("2/22/2002 11:01:22 AM");
var_Items->AddItem("3/13/2003 12:23:01 PM");
var_Items->AddItem("4/14/2004 1:11:59 PM");
|
416. How can I get minute part of the date
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"Date");
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Minute")))->PutComputedField(L"min(date(%0))");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->AddItem("1/11/2001 10:10:00 AM");
var_Items->AddItem("2/22/2002 11:01:00 AM");
var_Items->AddItem("3/13/2003 12:23:00 PM");
var_Items->AddItem("4/14/2004 1:11:00 PM");
|
415. How can I check the hour part only so I know it was afternoon
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetConditionalFormats()->Add(L"hour(%0)>=12",vtMissing)->PutBold(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"Date");
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Hour")))->PutComputedField(L"hour(%0)");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->AddItem("1/11/2001 10:00:00 AM");
var_Items->AddItem("2/22/2002 11:00:00 AM");
var_Items->AddItem("3/13/2003 12:00:00 PM");
var_Items->AddItem("4/14/2004 1:00:00 PM");
|
414. What about a function to get the day in the week, or days since Sunday
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"Date");
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"WeekDay")))->PutComputedField(L"weekday(%0)");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->AddItem("1/11/2001 10:00:00 AM");
var_Items->AddItem("2/22/2002 11:00:00 AM");
var_Items->AddItem("3/13/2003 12:00:00 PM");
var_Items->AddItem("4/14/2004 1:00:00 PM");
|
413. Is there any function to get the day of the year or number of days since January 1st
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"Date");
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Day since January 1st")))->PutComputedField(L"yearday(%0)");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->AddItem("1/11/2001 10:00:00 AM");
var_Items->AddItem("2/22/2002 11:00:00 AM");
var_Items->AddItem("3/13/2003 12:00:00 PM");
var_Items->AddItem("4/14/2004 1:00:00 PM");
|
412. How can I display only the day of the date
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"Date");
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Day")))->PutComputedField(L"day(%0)");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->AddItem("1/11/2001 10:00:00 AM");
var_Items->AddItem("2/22/2002 11:00:00 AM");
var_Items->AddItem("3/13/2003 12:00:00 PM");
var_Items->AddItem("4/14/2004 1:00:00 PM");
|
411. How can I display only the month of the date
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"Date");
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Month")))->PutComputedField(L"month(%0)");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->AddItem("1/1/2001 10:00:00 AM");
var_Items->AddItem("2/2/2002 11:00:00 AM");
var_Items->AddItem("3/3/2003 12:00:00 PM");
var_Items->AddItem("4/4/2004 1:00:00 PM");
|
410. How can I get only the year part from a date expression
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"Date");
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Year")))->PutComputedField(L"year(%0)");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->AddItem("1/1/2001 10:00:00 AM");
var_Items->AddItem("2/2/2002 11:00:00 AM");
var_Items->AddItem("3/3/2003 12:00:00 PM");
var_Items->AddItem("4/4/2004 1:00:00 PM");
|
409. Can I convert the expression to date
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"Number");
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Date")))->PutComputedField(L"date(dbl(%0))");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->AddItem("-1.98");
var_Items->AddItem("30000.99");
var_Items->AddItem("3561.23");
var_Items->AddItem("1232.34");
|
408. Can I convert the expression to a number, double or float
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"Number");
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Number + 2")))->PutComputedField(L"dbl(%0)+2");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->AddItem("-1.98");
var_Items->AddItem("0.99");
var_Items->AddItem("1.23");
var_Items->AddItem("2.34");
|
407. How can I display dates in long format
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"Date");
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"LongFormat")))->PutComputedField(L"longdate(%0)");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->AddItem("1/1/2001 10:00:00 AM");
var_Items->AddItem("2/2/2002 11:00:00 AM");
var_Items->AddItem("3/3/2003 12:00:00 PM");
var_Items->AddItem("4/4/2004 1:00:00 PM");
|
406. How can I display dates in short format
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"Date");
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"ShortFormat")))->PutComputedField(L"shortdate(%0)");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->AddItem("1/1/2001 10:00:00 AM");
var_Items->AddItem("2/2/2002 11:00:00 AM");
var_Items->AddItem("3/3/2003 12:00:00 PM");
var_Items->AddItem("4/4/2004 1:00:00 PM");
|
405. How can I display the time only of a date expression
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"Date");
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Time")))->PutComputedField(L"'time is:' + time(date(%0))");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->AddItem("1/1/2001 10:00:00 AM");
var_Items->AddItem("2/2/2002 11:00:00 AM");
var_Items->AddItem("3/3/2003 12:00:00 PM");
var_Items->AddItem("4/4/2004 1:00:00 PM");
|
404. Is there any function to display currencies, or money formatted as in the control panel
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"Number");
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Currency")))->PutComputedField(L"currency(dbl(%0))");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->AddItem("1.23");
var_Items->AddItem("2.34");
var_Items->AddItem("10000.99");
|
403. How can I convert the expression to a string so I can look into the date string expression for month's name
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"Number");
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Str")))->PutComputedField(L"str(%0) + ' AA'");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->AddItem("-1.98");
var_Items->AddItem("0.99");
var_Items->AddItem("1.23");
var_Items->AddItem("2.34");
|
402. Can I display the absolute value or positive part of the number
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"Number");
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Abs")))->PutComputedField(L"abs(%0)");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->AddItem("-1.98");
var_Items->AddItem("0.99");
var_Items->AddItem("1.23");
var_Items->AddItem("2.34");
|
401. Is there any function to get largest number with no fraction part that is not greater than the value
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"Number");
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Floor")))->PutComputedField(L"floor(%0)");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->AddItem("-1.98");
var_Items->AddItem("0.99");
var_Items->AddItem("1.23");
var_Items->AddItem("2.34");
|
400. Is there any function to round the values base on the .5 value
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"Number");
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Round")))->PutComputedField(L"round(%0)");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->AddItem("-1.98");
var_Items->AddItem("0.99");
var_Items->AddItem("1.23");
var_Items->AddItem("2.34");
|
399. How can I get or display the integer part of the cell
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"Number");
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Int")))->PutComputedField(L"int(%0)");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->AddItem("-1.98");
var_Items->AddItem("0.99");
var_Items->AddItem("1.23");
var_Items->AddItem("2.34");
|
398. How can I display names as proper ( first leter of the word must be in uppercase, and the rest in lowercase )
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"")))->PutComputedField(L"proper(%0)");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("root");
var_Items->InsertItem(h,long(0),"child child");
var_Items->InsertItem(h,long(0),"child child");
var_Items->InsertItem(h,long(0),"child child");
var_Items->PutExpandItem(h,VARIANT_TRUE);
|
397. Is there any option to display cells in uppercase
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"")))->PutComputedField(L"upper(%0)");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Root");
var_Items->InsertItem(h,long(0),"Child 1");
var_Items->InsertItem(h,long(0),"Child 2");
var_Items->InsertItem(h,long(0),"Chld 3");
var_Items->PutExpandItem(h,VARIANT_TRUE);
|
396. Is there any option to display cells in lowercase
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"")))->PutComputedField(L"lower(%0)");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Root");
var_Items->InsertItem(h,long(0),"Child 1");
var_Items->InsertItem(h,long(0),"Child 2");
var_Items->InsertItem(h,long(0),"Chld 3");
var_Items->PutExpandItem(h,VARIANT_TRUE);
|
395. How can I mark the cells that has a specified type, ie strings only
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetConditionalFormats()->Add(L"type(%0) = 8",vtMissing)->PutForeColor(RGB(255,0,0));
spComboBox1->GetColumns()->Add(L"");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Root");
var_Items->InsertItem(h,long(0),"Child 1");
var_Items->InsertItem(h,long(0),long(2));
var_Items->InsertItem(h,long(0),"Chld 3");
var_Items->PutExpandItem(h,VARIANT_TRUE);
|
394. How can I bold the items that contains data or those who displays empty strings
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetConditionalFormats()->Add(L"not len(%1)=0",vtMissing)->PutBold(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"C1");
spComboBox1->GetColumns()->Add(L"C2");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Root");
var_Items->InsertItem(h,long(0),"Child 1");
long hC = var_Items->InsertItem(h,long(0),"Child 2");
var_Items->PutCellCaption(hC,long(1),"1");
var_Items->InsertItem(h,long(0),"Child 3");
var_Items->PutExpandItem(h,VARIANT_TRUE);
|
393. Can I change the background color for items or cells that contains a specified string
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetConditionalFormats()->Add(L"%0 contains 'hi'",vtMissing)->PutBackColor(RGB(255,0,0));
spComboBox1->GetColumns()->Add(L"");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Root");
var_Items->InsertItem(h,long(0),"Child 1");
var_Items->InsertItem(h,long(0),"Child 2");
var_Items->InsertItem(h,long(0),"Chld 3");
var_Items->PutExpandItem(h,VARIANT_TRUE);
|
392. Is there any option to change the fore color for cells or items that ends with a specified string
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetConditionalFormats()->Add(L"%0 endwith '22'",vtMissing)->PutForeColor(RGB(255,0,0));
spComboBox1->GetColumns()->Add(L"");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Root");
var_Items->InsertItem(h,long(0),"Child 1");
var_Items->InsertItem(h,long(0),"Child 1.22");
var_Items->InsertItem(h,long(0),"Child 2.22");
var_Items->PutExpandItem(h,VARIANT_TRUE);
|
391. How can I highlight the cells or items that starts with a specified string
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetConditionalFormats()->Add(L"%0 startwith 'C'",vtMissing)->PutUnderline(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Root");
var_Items->InsertItem(h,long(0),"Child 1");
var_Items->InsertItem(h,long(0),"Child 2");
var_Items->InsertItem(h,long(0),"SChild 3");
var_Items->PutExpandItem(h,VARIANT_TRUE);
|
390. How can I change the background color or the visual appearance using ebn for a particular column
| C++ |
|---|
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->PutMinHeightList(304); spComboBox1->PutColumnAutoResize(VARIANT_TRUE); spComboBox1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn"); EXCOMBOBOXLib::IColumnsPtr var_Columns = spComboBox1->GetColumns(); var_Columns->Add(L"Column 1"); ((EXCOMBOBOXLib::IColumnPtr)(var_Columns->Add(L"Column 2")))->PutDef(EXCOMBOBOXLib::exHeaderBackColor,long(16777216)); ((EXCOMBOBOXLib::IColumnPtr)(var_Columns->Add(L"Column 3")))->PutDef(EXCOMBOBOXLib::exHeaderBackColor,long(16777471)); var_Columns->Add(L"Column 4"); |
389. How can I change the background color for a particular column
| C++ |
|---|
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->PutMinHeightList(304); spComboBox1->PutColumnAutoResize(VARIANT_TRUE); EXCOMBOBOXLib::IColumnsPtr var_Columns = spComboBox1->GetColumns(); var_Columns->Add(L"Column 1"); ((EXCOMBOBOXLib::IColumnPtr)(var_Columns->Add(L"Column 2")))->PutDef(EXCOMBOBOXLib::exHeaderBackColor,long(8439039)); var_Columns->Add(L"Column 3"); |
388. Does your control support prompt feature
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0") +
"/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1" +
"/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qO" +
"x3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
spComboBox1->PutAutoComplete(VARIANT_FALSE);
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Column 1")))->PutPrompt(L"<img>1</img><i><fgcolor=808080>type to search</fgcolor></i>");
spComboBox1->GetItems()->AddItem(long(0));
spComboBox1->GetItems()->AddItem(long(1));
spComboBox1->GetItems()->AddItem(long(2));
|
387. How can I display the column's header using multiple lines
| C++ |
|---|
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->PutMinHeightList(304); spComboBox1->PutColumnAutoResize(VARIANT_TRUE); spComboBox1->PutColumnAutoResize(VARIANT_TRUE); spComboBox1->PutHeaderHeight(128); spComboBox1->PutHeaderSingleLine(VARIANT_FALSE); ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"This is just a column that should break the header.")))->PutWidth(32); spComboBox1->GetColumns()->Add(L"This is just another column that should break the header."); |
386. How can I sort the value gets listed in the drop down filter window
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->PutLinesAtRoot(EXCOMBOBOXLib::exLinesAtRoot);
spComboBox1->PutMarkSearchColumn(VARIANT_FALSE);
spComboBox1->PutDescription(EXCOMBOBOXLib::exFilterBarAll,L"");
spComboBox1->PutDescription(EXCOMBOBOXLib::exFilterBarBlanks,L"");
spComboBox1->PutDescription(EXCOMBOBOXLib::exFilterBarNonBlanks,L"");
EXCOMBOBOXLib::IColumnPtr var_Column = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"P1")));
var_Column->PutDisplayFilterButton(VARIANT_TRUE);
var_Column->PutDisplayFilterPattern(VARIANT_FALSE);
var_Column->PutFilterList(EXCOMBOBOXLib::exSortItemsDesc);
EXCOMBOBOXLib::IColumnPtr var_Column1 = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"P2")));
var_Column1->PutDisplayFilterButton(VARIANT_TRUE);
var_Column1->PutDisplayFilterPattern(VARIANT_FALSE);
var_Column1->PutFilterList(EXCOMBOBOXLib::exSortItemsAsc);
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Z3");
var_Items->PutCellCaption(h,long(1),"C");
var_Items->PutCellCaption(var_Items->InsertItem(h,long(0),"Z1"),long(1),"B");
var_Items->PutCellCaption(var_Items->InsertItem(h,long(0),"Z2"),long(1),"A");
var_Items->PutExpandItem(h,VARIANT_TRUE);
|
385. Is there any property to disable the popup/context menu being shown when the user does a right click in the control's label area
| C++ |
|---|
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->PutMinHeightList(304); spComboBox1->PutColumnAutoResize(VARIANT_TRUE); ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Default")))->PutAllowEditContextMenu(VARIANT_FALSE); spComboBox1->GetItems()->AddItem(long(0)); spComboBox1->GetItems()->AddItem(long(1)); spComboBox1->GetItems()->AddItem(long(2)); |
384. How can I align the text/caption on the scroll bar
| C++ |
|---|
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->PutMinHeightList(304); spComboBox1->PutColumnAutoResize(VARIANT_TRUE); spComboBox1->PutColumnAutoResize(VARIANT_TRUE); spComboBox1->PutScrollPartCaption(EXCOMBOBOXLib::exHScroll,EXCOMBOBOXLib::exLowerBackPart,L"left"); spComboBox1->PutScrollPartCaptionAlignment(EXCOMBOBOXLib::exHScroll,EXCOMBOBOXLib::exLowerBackPart,EXCOMBOBOXLib::LeftAlignment); spComboBox1->PutScrollPartCaption(EXCOMBOBOXLib::exHScroll,EXCOMBOBOXLib::exUpperBackPart,L"right"); spComboBox1->PutScrollPartCaptionAlignment(EXCOMBOBOXLib::exHScroll,EXCOMBOBOXLib::exUpperBackPart,EXCOMBOBOXLib::RightAlignment); spComboBox1->PutColumnAutoResize(VARIANT_FALSE); spComboBox1->GetColumns()->Add(L"1"); spComboBox1->GetColumns()->Add(L"2"); spComboBox1->GetColumns()->Add(L"3"); spComboBox1->GetColumns()->Add(L"4"); spComboBox1->GetColumns()->Add(L"5"); spComboBox1->GetColumns()->Add(L"6"); |
383. Does you control support RTL languages or if there is a property RightToLeft
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->PutRightToLeft(VARIANT_TRUE);
spComboBox1->PutItemsAllowSizing(EXCOMBOBOXLib::exResizeItem);
spComboBox1->PutDrawGridLines(EXCOMBOBOXLib::exHLines);
spComboBox1->PutLinesAtRoot(EXCOMBOBOXLib::exLinesAtRoot);
spComboBox1->PutScrollBySingleLine(VARIANT_TRUE);
spComboBox1->PutDefaultItemHeight(64);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
EXCOMBOBOXLib::IColumnPtr var_Column = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Column")));
var_Column->PutAlignment(EXCOMBOBOXLib::RightAlignment);
var_Column->PutHeaderAlignment(EXCOMBOBOXLib::RightAlignment);
var_Column->PutEditAlignment(EXCOMBOBOXLib::RightAlignment);
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->AddItem("Item 1");
var_Items->PutItemHeight(var_Items->InsertItem(var_Items->AddItem("Parent"),long(0),"Item 2"),48);
var_Items->AddItem("Item 3");
var_Items->PutExpandItem(var_Items->GetItemByIndex(1),VARIANT_TRUE);
|
382. How do I enable resizing all the items at runtime
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->PutItemsAllowSizing(EXCOMBOBOXLib::exResizeAllItems);
spComboBox1->PutDrawGridLines(EXCOMBOBOXLib::exHLines);
spComboBox1->GetColumns()->Add(L"Column");
spComboBox1->GetItems()->AddItem("Item 1");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->PutItemHeight(var_Items->AddItem("Item 2"),48);
spComboBox1->GetItems()->AddItem("Item 3");
|
381. How can I remove the filter
| C++ |
|---|
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->PutMinHeightList(304); spComboBox1->PutColumnAutoResize(VARIANT_TRUE); EXCOMBOBOXLib::IColumnPtr var_Column = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Column"))); var_Column->PutDisplayFilterButton(VARIANT_TRUE); var_Column->PutFilterType(EXCOMBOBOXLib::exBlanks); spComboBox1->ApplyFilter(); spComboBox1->ClearFilter(); |
380. How do I display the icons being selected in the control's label
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0") +
"/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1" +
"/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qO" +
"x3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
spComboBox1->GetColumns()->Add(L"Column");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->PutCellImage(var_Items->AddItem("Image 1"),long(0),1);
var_Items->PutCellImage(var_Items->AddItem("Image 2"),long(0),2);
var_Items->PutCellImage(var_Items->AddItem("Image 3"),long(0),3);
spComboBox1->PutAssignEditImageOnSelect(0,VARIANT_TRUE);
spComboBox1->PutValue("Image 2");
|
379. How do I select a value
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->PutIntegralHeight(VARIANT_TRUE);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->PutLinesAtRoot(EXCOMBOBOXLib::exGroupLinesAtRoot);
spComboBox1->PutTreeColumnIndex(1);
spComboBox1->GetColumns()->Add(L"Column 1");
spComboBox1->GetColumns()->Add(L"Column 2");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Root 1.1");
var_Items->PutCellCaption(h,long(1),"Root 1.2");
var_Items->PutCellCaption(var_Items->InsertItem(h,long(0),"Child 1.1"),long(1),"Child 1.2");
var_Items->PutCellCaption(var_Items->InsertItem(h,long(0),"Child 2.1"),long(1),"Child 2.2");
var_Items->PutExpandItem(h,VARIANT_TRUE);
h = var_Items->AddItem("Root 2.1");
var_Items->PutCellCaption(h,long(1),"Root 2.2");
var_Items->PutCellCaption(var_Items->InsertItem(h,long(0),"Child 1.1"),long(1),"Child 1.2");
spComboBox1->PutValue("Root 1.1");
|
378. How do I select a value
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->PutIntegralHeight(VARIANT_TRUE);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->PutLinesAtRoot(EXCOMBOBOXLib::exGroupLinesAtRoot);
spComboBox1->PutTreeColumnIndex(1);
spComboBox1->GetColumns()->Add(L"Column 1");
spComboBox1->GetColumns()->Add(L"Column 2");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Root 1.1");
var_Items->PutCellCaption(h,long(1),"Root 1.2");
var_Items->PutCellCaption(var_Items->InsertItem(h,long(0),"Child 1.1"),long(1),"Child 1.2");
var_Items->PutCellCaption(var_Items->InsertItem(h,long(0),"Child 2.1"),long(1),"Child 2.2");
var_Items->PutExpandItem(h,VARIANT_TRUE);
h = var_Items->AddItem("Root 2.1");
var_Items->PutCellCaption(h,long(1),"Root 2.2");
var_Items->PutCellCaption(var_Items->InsertItem(h,long(0),"Child 1.1"),long(1),"Child 1.2");
spComboBox1->PutSelect(long(1),"Root 1.2");
|
377. How do change the visual appearance for the drop down border, using EBN
| C++ |
|---|
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->PutMinHeightList(304); spComboBox1->PutColumnAutoResize(VARIANT_TRUE); spComboBox1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn"); spComboBox1->PutDropDownBorder(EXCOMBOBOXLib::AppearanceEnum(0x1000000)); |
376. How do I remove the drop down's border
| C++ |
|---|
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->PutMinHeightList(304); spComboBox1->PutColumnAutoResize(VARIANT_TRUE); spComboBox1->PutDropDownBorder(EXCOMBOBOXLib::None2); |
375. How can I change the foreground color for edit controls
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->PutForeColorEdit(RGB(255,0,0));
spComboBox1->PutIntegralHeight(VARIANT_TRUE);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->PutLinesAtRoot(EXCOMBOBOXLib::exGroupLinesAtRoot);
spComboBox1->PutTreeColumnIndex(1);
spComboBox1->GetColumns()->Add(L"Column 1");
spComboBox1->GetColumns()->Add(L"Column 2");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Root 1.1");
var_Items->PutCellCaption(h,long(1),"Root 1.2");
var_Items->PutCellCaption(var_Items->InsertItem(h,long(0),"Child 1.1"),long(1),"Child 1.2");
var_Items->PutCellCaption(var_Items->InsertItem(h,long(0),"Child 2.1"),long(1),"Child 2.2");
var_Items->PutExpandItem(h,VARIANT_TRUE);
h = var_Items->AddItem("Root 2.1");
var_Items->PutCellCaption(h,long(1),"Root 2.2");
var_Items->PutCellCaption(var_Items->InsertItem(h,long(0),"Child 1.1"),long(1),"Child 1.2");
spComboBox1->PutSelect(long(0),"Root 1.1");
|
374. How can I change the background color for edit controls
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->PutBackColorEdit(RGB(255,0,0));
spComboBox1->PutIntegralHeight(VARIANT_TRUE);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->PutLinesAtRoot(EXCOMBOBOXLib::exGroupLinesAtRoot);
spComboBox1->PutTreeColumnIndex(1);
spComboBox1->GetColumns()->Add(L"Column 1");
spComboBox1->GetColumns()->Add(L"Column 2");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Root 1.1");
var_Items->PutCellCaption(h,long(1),"Root 1.2");
var_Items->PutCellCaption(var_Items->InsertItem(h,long(0),"Child 1.1"),long(1),"Child 1.2");
var_Items->PutCellCaption(var_Items->InsertItem(h,long(0),"Child 2.1"),long(1),"Child 2.2");
var_Items->PutExpandItem(h,VARIANT_TRUE);
h = var_Items->AddItem("Root 2.1");
var_Items->PutCellCaption(h,long(1),"Root 2.2");
var_Items->PutCellCaption(var_Items->InsertItem(h,long(0),"Child 1.1"),long(1),"Child 1.2");
spComboBox1->PutSelect(long(0),"Root 1.1");
|
373. How can I hide the drop down buttons when the control loses the focus
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->PutHideDropDownButton(VARIANT_TRUE);
spComboBox1->PutIntegralHeight(VARIANT_TRUE);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->PutLinesAtRoot(EXCOMBOBOXLib::exGroupLinesAtRoot);
spComboBox1->PutTreeColumnIndex(1);
spComboBox1->GetColumns()->Add(L"Column 1");
spComboBox1->GetColumns()->Add(L"Column 2");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Root 1.1");
var_Items->PutCellCaption(h,long(1),"Root 1.2");
var_Items->PutCellCaption(var_Items->InsertItem(h,long(0),"Child 1.1"),long(1),"Child 1.2");
var_Items->PutCellCaption(var_Items->InsertItem(h,long(0),"Child 2.1"),long(1),"Child 2.2");
var_Items->PutExpandItem(h,VARIANT_TRUE);
h = var_Items->AddItem("Root 2.1");
var_Items->PutCellCaption(h,long(1),"Root 2.2");
var_Items->PutCellCaption(var_Items->InsertItem(h,long(0),"Child 1.1"),long(1),"Child 1.2");
|
372. How can I ensure that the drop down portions doesn't show partial items
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->PutIntegralHeight(VARIANT_TRUE);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->PutLinesAtRoot(EXCOMBOBOXLib::exGroupLinesAtRoot);
spComboBox1->PutTreeColumnIndex(1);
spComboBox1->GetColumns()->Add(L"Column 1");
spComboBox1->GetColumns()->Add(L"Column 2");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Root 1.1");
var_Items->PutCellCaption(h,long(1),"Root 1.2");
var_Items->PutCellCaption(var_Items->InsertItem(h,long(0),"Child 1.1"),long(1),"Child 1.2");
var_Items->PutCellCaption(var_Items->InsertItem(h,long(0),"Child 2.1"),long(1),"Child 2.2");
var_Items->PutExpandItem(h,VARIANT_TRUE);
h = var_Items->AddItem("Root 2.1");
var_Items->PutCellCaption(h,long(1),"Root 2.2");
var_Items->PutCellCaption(var_Items->InsertItem(h,long(0),"Child 1.1"),long(1),"Child 1.2");
|
371. How can I close the drop down window when user double clicks it
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->PutCloseOnDblClk(VARIANT_TRUE);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->PutLinesAtRoot(EXCOMBOBOXLib::exGroupLinesAtRoot);
spComboBox1->PutTreeColumnIndex(1);
spComboBox1->GetColumns()->Add(L"Column 1");
spComboBox1->GetColumns()->Add(L"Column 2");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Root 1.1");
var_Items->PutCellCaption(h,long(1),"Root 1.2");
var_Items->PutCellCaption(var_Items->InsertItem(h,long(0),"Child 1.1"),long(1),"Child 1.2");
var_Items->PutCellCaption(var_Items->InsertItem(h,long(0),"Child 2.1"),long(1),"Child 2.2");
var_Items->PutExpandItem(h,VARIANT_TRUE);
h = var_Items->AddItem("Root 2.1");
var_Items->PutCellCaption(h,long(1),"Root 2.2");
var_Items->PutCellCaption(var_Items->InsertItem(h,long(0),"Child 1.1"),long(1),"Child 1.2");
|
370. How do I get the handle of the drop down window
| C++ |
|---|
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->PutMinHeightList(304); spComboBox1->PutColumnAutoResize(VARIANT_TRUE); spComboBox1->GetColumns()->Add(L"0"); |
369. How do I specify the height of the control's label
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->PutLabelHeight(34);
spComboBox1->GetColumns()->Add(L"Column");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->AddItem("Item 3");
var_Items->AddItem("Item 1");
var_Items->AddItem("Item 2");
|
368. The control selects the portion of text that doesn't match with the selected item. How can I avoid that
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->PutAutoSelect(VARIANT_FALSE);
spComboBox1->GetColumns()->Add(L"Column");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->AddItem("Item 3");
var_Items->AddItem("Item 1");
var_Items->AddItem("Item 2");
|
367. How can I show the drop down window as soon as user starts typing in the control
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->PutAutoDropDown(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"Column");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->AddItem("Item 3");
var_Items->AddItem("Item 1");
var_Items->AddItem("Item 2");
|
366. How do I change the text in the edit or label area
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"Column");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->AddItem("Item 3");
var_Items->AddItem("Item 1");
var_Items->AddItem("Item 2");
spComboBox1->PutEditText(long(0),L"Test");
|
365. How do I lock or make read-only the control
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->PutLocked(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"Column");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->AddItem("Item 3");
var_Items->AddItem("Item 1");
var_Items->AddItem("Item 2");
|
364. How do I let user to resize only the height of the drop down window, at runtime
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->PutAllowSizeGrip(VARIANT_TRUE);
spComboBox1->PutAllowHResize(VARIANT_FALSE);
spComboBox1->PutMinWidthList(100);
spComboBox1->PutMinHeightList(100);
spComboBox1->GetColumns()->Add(L"Column");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->AddItem("Item 3");
var_Items->AddItem("Item 1");
var_Items->AddItem("Item 2");
|
363. How do I let user to resize only the width of the drop down window, at runtime
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->PutAllowSizeGrip(VARIANT_TRUE);
spComboBox1->PutAllowVResize(VARIANT_FALSE);
spComboBox1->GetColumns()->Add(L"Column");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->AddItem("Item 3");
var_Items->AddItem("Item 1");
var_Items->AddItem("Item 2");
|
362. How do I let user to resize the drop down window, at runtime
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->PutAllowSizeGrip(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"Column");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->AddItem("Item 3");
var_Items->AddItem("Item 1");
var_Items->AddItem("Item 2");
|
361. How do I specify the height of the drop down window
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->PutHeightList(vtMissing,400);
spComboBox1->PutMinWidthList(100);
spComboBox1->PutAllowSizeGrip(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"Column");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->AddItem("Item 3");
var_Items->AddItem("Item 1");
var_Items->AddItem("Item 2");
|
360. How do I specify the minimum height of the drop down window
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->PutMinHeightList(100);
spComboBox1->PutAllowSizeGrip(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"Column");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->AddItem("Item 3");
var_Items->AddItem("Item 1");
var_Items->AddItem("Item 2");
|
359. How do I specify the width of the drop down window
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->PutWidthList(vtMissing,100);
spComboBox1->PutAllowSizeGrip(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"Column");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->AddItem("Item 3");
var_Items->AddItem("Item 1");
var_Items->AddItem("Item 2");
|
358. How do I specify the minimum width of the drop down window
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->PutMinWidthList(100);
spComboBox1->PutAllowSizeGrip(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"Column");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->AddItem("Item 3");
var_Items->AddItem("Item 1");
var_Items->AddItem("Item 2");
|
357. I have multiple columns, how can I display a single edit in the control's label
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->PutSingleEdit(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"Column 1");
spComboBox1->GetColumns()->Add(L"Column 2");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->PutCellCaption(var_Items->AddItem("Item 1"),long(1),"SubItem 1");
var_Items->PutCellCaption(var_Items->AddItem("Item 2"),long(1),"SubItem 2");
var_Items->PutCellCaption(var_Items->AddItem("Item 3"),long(1),"SubItem 3");
|
356. How do I turn off the auto complete feature
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->PutAutoComplete(VARIANT_FALSE);
spComboBox1->GetColumns()->Add(L"Column");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->AddItem("Item 3");
var_Items->AddItem("Item 1");
var_Items->AddItem("Item 2");
|
355. The control supports three styles: Simple, DropDown and DropDownList. How can I change the style
| C++ |
|---|
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->PutMinHeightList(304); spComboBox1->PutColumnAutoResize(VARIANT_TRUE); spComboBox1->PutStyle(EXCOMBOBOXLib::DropDownList); |
354. Is there any option to align the header to the left and the data to the right
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Left")))->PutAlignment(EXCOMBOBOXLib::LeftAlignment);
EXCOMBOBOXLib::IColumnPtr var_Column = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Right")));
var_Column->PutAlignment(EXCOMBOBOXLib::RightAlignment);
var_Column->PutHeaderAlignment(EXCOMBOBOXLib::RightAlignment);
var_Column->PutEditAlignment(EXCOMBOBOXLib::RightAlignment);
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->PutCellCaption(var_Items->AddItem("left"),long(1),"right");
|
353. How do I change the control's border, using your EBN files
| C++ |
|---|
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->PutMinHeightList(304); spComboBox1->PutColumnAutoResize(VARIANT_TRUE); spComboBox1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn"); spComboBox1->PutAppearance(EXCOMBOBOXLib::AppearanceEnum(0x1000000)); |
352. Can I change the default border of the tooltip, using your EBN files
| C++ |
|---|
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->PutMinHeightList(304); spComboBox1->PutColumnAutoResize(VARIANT_TRUE); spComboBox1->PutToolTipDelay(1); spComboBox1->PutToolTipWidth(364); spComboBox1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn"); spComboBox1->PutBackground(EXCOMBOBOXLib::exToolTipAppearance,0x1000000); ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"tootip")))->PutToolTip(L"this is a tooltip assigned to a column"); |
351. Can I change the background color for the tooltip
| C++ |
|---|
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->PutMinHeightList(304); spComboBox1->PutColumnAutoResize(VARIANT_TRUE); spComboBox1->PutToolTipDelay(1); spComboBox1->PutToolTipWidth(364); spComboBox1->PutBackground(EXCOMBOBOXLib::exToolTipBackColor,RGB(255,0,0)); ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"tootip")))->PutToolTip(L"this is a tooltip assigned to a column"); |
350. Does the tooltip support HTML format
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->PutToolTipDelay(1);
spComboBox1->PutToolTipWidth(364);
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"tootip")))->PutToolTip(_bstr_t("<font Tahoma;11>T</font>his is an HTML <b>tooltip</b> assigned to a <fgcolor=FF0000>column</fgc") +
"olor>");
|
349. Can I change the forecolor for the tooltip
| C++ |
|---|
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->PutMinHeightList(304); spComboBox1->PutColumnAutoResize(VARIANT_TRUE); spComboBox1->PutToolTipDelay(1); spComboBox1->PutToolTipWidth(364); spComboBox1->PutBackground(EXCOMBOBOXLib::exToolTipForeColor,RGB(255,0,0)); ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"tootip")))->PutToolTip(L"this is a tooltip assigned to a column"); |
348. Can I change the foreground color for the tooltip
| C++ |
|---|
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->PutMinHeightList(304); spComboBox1->PutColumnAutoResize(VARIANT_TRUE); spComboBox1->PutToolTipDelay(1); spComboBox1->PutToolTipWidth(364); ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"tootip")))->PutToolTip(L"<fgcolor=FF0000>this is a tooltip assigned to a column</fgcolor>"); |
347. How can I merge cells
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->PutDrawGridLines(EXCOMBOBOXLib::exAllLines);
spComboBox1->PutMarkSearchColumn(VARIANT_FALSE);
spComboBox1->GetColumns()->Add(L"C1");
spComboBox1->GetColumns()->Add(L"C2");
spComboBox1->GetColumns()->Add(L"C3");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("this cell merges the first two columns");
var_Items->PutCellMerge(h,long(0),long(1));
h = var_Items->AddItem(vtMissing);
var_Items->PutCellCaption(h,long(1),"this cell merges the last two columns");
var_Items->PutCellMerge(h,long(1),long(2));
h = var_Items->AddItem("this cell merges the all three columns");
var_Items->PutCellMerge(h,long(0),long(1));
var_Items->PutCellMerge(h,long(0),long(2));
h = var_Items->AddItem("this draws a divider item");
var_Items->PutItemDivider(h,0);
|
346. How can I merge cells
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->PutMarkSearchColumn(VARIANT_FALSE);
spComboBox1->PutTreeColumnIndex(-1);
spComboBox1->GetColumns()->Add(L"C1");
spComboBox1->GetColumns()->Add(L"C2");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Cell 1");
var_Items->PutCellCaption(h,long(1),_bstr_t("This is bit of text that's shown on multiple lines. This is bit of text that's shown on multipl") +
"e lines.");
var_Items->PutCellSingleLine(h,long(1),VARIANT_FALSE);
h = var_Items->AddItem("This is bit of text merges all cells in the item");
var_Items->PutItemDivider(h,0);
var_Items->PutCellHAlignment(h,long(0),EXCOMBOBOXLib::CenterAlignment);
|
345. Can I select an item giving its general position
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"Default");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Root 1");
var_Items->InsertItem(h,long(0),"Child 1");
var_Items->InsertItem(h,long(0),"Child 2");
var_Items->PutExpandItem(h,VARIANT_TRUE);
|
344. How can I change the color for separator / dividers items
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->PutMarkSearchColumn(VARIANT_FALSE);
spComboBox1->PutTreeColumnIndex(-1);
spComboBox1->PutScrollBySingleLine(VARIANT_FALSE);
spComboBox1->GetColumns()->Add(L"C1");
spComboBox1->GetColumns()->Add(L"C2");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Cell 1");
var_Items->PutCellCaption(h,long(1),_bstr_t("This is bit of text that's shown on multiple lines. This is bit of text that's shown on multipl") +
"e lines.");
var_Items->PutCellSingleLine(h,long(1),VARIANT_FALSE);
h = var_Items->AddItem(vtMissing);
var_Items->PutItemDivider(h,0);
var_Items->PutItemDividerLine(h,EXCOMBOBOXLib::DoubleDotLine);
var_Items->PutItemDividerLineAlignment(h,EXCOMBOBOXLib::DividerCenter);
var_Items->PutItemHeight(h,6);
var_Items->PutSelectableItem(h,VARIANT_FALSE);
h = var_Items->AddItem("Cell 2");
var_Items->PutCellCaption(h,long(1),_bstr_t("This is bit of text that's shown on multiple lines. This is bit of text that's shown on multipl") +
"e lines.");
var_Items->PutCellSingleLine(h,long(1),VARIANT_FALSE);
|
343. How can I add separator - dividers items
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->PutMarkSearchColumn(VARIANT_FALSE);
spComboBox1->PutTreeColumnIndex(-1);
spComboBox1->PutScrollBySingleLine(VARIANT_FALSE);
spComboBox1->GetColumns()->Add(L"C1");
spComboBox1->GetColumns()->Add(L"C2");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Cell 1");
var_Items->PutCellCaption(h,long(1),_bstr_t("This is bit of text that's shown on multiple lines. This is bit of text that's shown on multipl") +
"e lines.");
var_Items->PutCellSingleLine(h,long(1),VARIANT_FALSE);
h = var_Items->AddItem(vtMissing);
var_Items->PutItemDivider(h,0);
var_Items->PutItemDividerLine(h,EXCOMBOBOXLib::DoubleDotLine);
var_Items->PutItemDividerLineAlignment(h,EXCOMBOBOXLib::DividerCenter);
var_Items->PutItemHeight(h,6);
var_Items->PutSelectableItem(h,VARIANT_FALSE);
h = var_Items->AddItem("Cell 2");
var_Items->PutCellCaption(h,long(1),_bstr_t("This is bit of text that's shown on multiple lines. This is bit of text that's shown on multipl") +
"e lines.");
var_Items->PutCellSingleLine(h,long(1),VARIANT_FALSE);
|
342. Can I change the style of the line being displayed by a divider item
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->PutMarkSearchColumn(VARIANT_FALSE);
spComboBox1->PutTreeColumnIndex(-1);
spComboBox1->PutScrollBySingleLine(VARIANT_FALSE);
spComboBox1->GetColumns()->Add(L"C1");
spComboBox1->GetColumns()->Add(L"C2");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Cell 1");
var_Items->PutCellCaption(h,long(1),_bstr_t("This is bit of text that's shown on multiple lines. This is bit of text that's shown on multipl") +
"e lines.");
var_Items->PutCellSingleLine(h,long(1),VARIANT_FALSE);
h = var_Items->AddItem("This is bit of text that's displayed on the entire item, divider.");
var_Items->PutItemDivider(h,0);
var_Items->PutItemDividerLine(h,EXCOMBOBOXLib::DoubleDotLine);
var_Items->PutCellHAlignment(h,long(0),EXCOMBOBOXLib::CenterAlignment);
var_Items->PutItemHeight(h,24);
|
341. Can I remove the line being displayed by a divider item
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->PutMarkSearchColumn(VARIANT_FALSE);
spComboBox1->PutTreeColumnIndex(-1);
spComboBox1->GetColumns()->Add(L"C1");
spComboBox1->GetColumns()->Add(L"C2");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Cell 1");
var_Items->PutCellCaption(h,long(1),_bstr_t("This is bit of text that's shown on multiple lines. This is bit of text that's shown on multipl") +
"e lines.");
var_Items->PutCellSingleLine(h,long(1),VARIANT_FALSE);
h = var_Items->AddItem("This is bit of text that's displayed on the entire item, divider.");
var_Items->PutItemDivider(h,0);
var_Items->PutItemDividerLine(h,EXCOMBOBOXLib::EmptyLine);
var_Items->PutCellHAlignment(h,long(0),EXCOMBOBOXLib::CenterAlignment);
|
340. How can I display a divider item, merging all cells
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->PutMarkSearchColumn(VARIANT_FALSE);
spComboBox1->PutTreeColumnIndex(-1);
spComboBox1->GetColumns()->Add(L"C1");
spComboBox1->GetColumns()->Add(L"C2");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Cell 1");
var_Items->PutCellCaption(h,long(1),_bstr_t("This is bit of text that's shown on multiple lines. This is bit of text that's shown on multipl") +
"e lines.");
var_Items->PutCellSingleLine(h,long(1),VARIANT_FALSE);
h = var_Items->AddItem("This is bit of text that's displayed on the entire item, divider.");
var_Items->PutItemDivider(h,0);
var_Items->PutCellHAlignment(h,long(0),EXCOMBOBOXLib::CenterAlignment);
|
339. How can I fix or lock items
| C++ |
|---|
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->PutMinHeightList(304); spComboBox1->PutColumnAutoResize(VARIANT_TRUE); spComboBox1->GetColumns()->Add(L"Default"); EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems(); var_Items->PutLockedItemCount(EXCOMBOBOXLib::exTop,1); var_Items->PutCellCaption(var_Items->GetLockedItem(EXCOMBOBOXLib::exTop,0),long(0),"This is a locked item, fixed to the top side of the control."); var_Items->PutItemBackColor(var_Items->GetLockedItem(EXCOMBOBOXLib::exTop,0),RGB(196,196,186)); var_Items->PutLockedItemCount(EXCOMBOBOXLib::exBottom,2); var_Items->PutCellCaption(var_Items->GetLockedItem(EXCOMBOBOXLib::exBottom,0),long(0),"This is a locked item, fixed to the top side of the control."); var_Items->PutItemBackColor(var_Items->GetLockedItem(EXCOMBOBOXLib::exBottom,0),RGB(196,196,186)); var_Items->PutCellCaption(var_Items->GetLockedItem(EXCOMBOBOXLib::exBottom,1),long(0),"This is a locked item, fixed to the top side of the control."); var_Items->PutItemBackColor(var_Items->GetLockedItem(EXCOMBOBOXLib::exBottom,1),RGB(186,186,186)); |
338. How can I fix or lock an item on the bottom side of the control
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"Default");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->PutLockedItemCount(EXCOMBOBOXLib::exBottom,1);
var_Items->PutCellCaption(var_Items->GetLockedItem(EXCOMBOBOXLib::exBottom,0),long(0),"This is a locked item, fixed to the bottom side of the control.");
long h = var_Items->AddItem("Root 1");
var_Items->InsertItem(h,long(0),"Child 1");
var_Items->InsertItem(h,long(0),"Child 2");
var_Items->PutExpandItem(h,VARIANT_TRUE);
|
337. How can I fix or lock an item on the top of the control
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"Default");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->PutLockedItemCount(EXCOMBOBOXLib::exTop,1);
var_Items->PutCellCaption(var_Items->GetLockedItem(EXCOMBOBOXLib::exTop,0),long(0),"This is a locked item, fixed to the top side of the control.");
long h = var_Items->AddItem("Root 1");
var_Items->InsertItem(h,long(0),"Child 1");
var_Items->InsertItem(h,long(0),"Child 2");
var_Items->PutExpandItem(h,VARIANT_TRUE);
|
336. Is there any function to limit the height of the items when I display it using multiple lines
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->PutScrollBySingleLine(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"C1");
spComboBox1->GetColumns()->Add(L"C2");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Cell 1");
var_Items->PutCellCaption(h,long(1),_bstr_t("This is bit of text that's shown on multiple lines. This is bit of text that's shown on multipl") +
"e lines.");
var_Items->PutCellSingleLine(h,long(1),VARIANT_FALSE);
var_Items->PutItemMaxHeight(h,48);
|
335. Why I cannot center my cells in the column
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->PutTreeColumnIndex(-1);
spComboBox1->PutDrawGridLines(EXCOMBOBOXLib::GridLinesEnum(0xfffffffc | EXCOMBOBOXLib::exVLines));
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Default")))->PutAlignment(EXCOMBOBOXLib::CenterAlignment);
spComboBox1->GetItems()->AddItem("item 1");
spComboBox1->GetItems()->AddItem("item 2");
spComboBox1->GetItems()->AddItem("item 3");
|
334. How can I align the cell to the left, center or to the right
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->PutTreeColumnIndex(-1);
spComboBox1->PutDrawGridLines(EXCOMBOBOXLib::GridLinesEnum(0xfffffffc | EXCOMBOBOXLib::exVLines));
spComboBox1->GetColumns()->Add(L"Default");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->PutCellHAlignment(var_Items->AddItem("left"),long(0),EXCOMBOBOXLib::LeftAlignment);
var_Items->PutCellHAlignment(var_Items->AddItem("center"),long(0),EXCOMBOBOXLib::CenterAlignment);
var_Items->PutCellHAlignment(var_Items->AddItem("right"),long(0),EXCOMBOBOXLib::RightAlignment);
|
333. How do I apply HTML format to a cell
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->PutTreeColumnIndex(-1);
spComboBox1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0") +
"/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1" +
"/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qO" +
"x3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
spComboBox1->PutHTMLPicture(L"p1","c:\\exontrol\\images\\zipdisk.gif");
spComboBox1->PutHTMLPicture(L"p2","c:\\exontrol\\images\\auction.gif");
spComboBox1->GetColumns()->Add(L"Default");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("The following item shows some of the HTML format supported:");
var_Items->PutCellHAlignment(h,long(0),EXCOMBOBOXLib::CenterAlignment);
h = var_Items->AddItem(_bstr_t("<br>text icons <img>1</img>, <img>2</img>, ... pictures <img>p1</img>, <img>p2</img> <br><br>te") +
"xt <b>bold</b>, <i>italic</i>, <u>underline</u>, <s>strikeout</s>, ...<br><dotline>and so on...<" +
"br> <a>anchor</a> or <a2>hyperlink</a><br><fgcolor=FF0000>fgcolor</fgcolor> or <bgcolor=00FF00>b" +
"gcolor</bgcolor> ");
var_Items->PutCellCaptionFormat(h,long(0),EXCOMBOBOXLib::exHTML);
var_Items->PutCellSingleLine(h,long(0),VARIANT_FALSE);
|
332. How can I change the font for a cell
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"Default");
spComboBox1->GetItems()->AddItem("std font");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->PutCellCaptionFormat(var_Items->AddItem("this <font tahoma;12>is a bit of text with</font> a different font"),long(0),EXCOMBOBOXLib::exHTML);
|
331. How can I change the font for a cell
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"Default");
spComboBox1->GetItems()->AddItem("default font");
/*
Includes the definition for CreateObject function like follows:
#include <comdef.h>
IUnknownPtr CreateObject( BSTR Object )
{
IUnknownPtr spResult;
spResult.CreateInstance( Object );
return spResult;
};
*/
/*
Copy and paste the following directives to your header file as
it defines the namespace 'stdole' for the library: 'OLE Automation'
#import <stdole2.tlb>
*/
stdole::FontPtr f = ::CreateObject(L"StdFont");
f->PutName(L"Tahoma");
f->PutSize(_variant_t(long(12)));
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->PutCellFont(var_Items->AddItem("new font"),long(0),IFontDispPtr(((stdole::FontPtr)(f))));
|
330. How can I change the font for entire item
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"Default");
spComboBox1->GetItems()->AddItem("default font");
/*
Includes the definition for CreateObject function like follows:
#include <comdef.h>
IUnknownPtr CreateObject( BSTR Object )
{
IUnknownPtr spResult;
spResult.CreateInstance( Object );
return spResult;
};
*/
/*
Copy and paste the following directives to your header file as
it defines the namespace 'stdole' for the library: 'OLE Automation'
#import <stdole2.tlb>
*/
stdole::FontPtr f = ::CreateObject(L"StdFont");
f->PutName(L"Tahoma");
f->PutSize(_variant_t(long(12)));
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->PutItemFont(var_Items->AddItem("new font"),IFontDispPtr(((stdole::FontPtr)(f))));
|
329. How do I vertically align a cell
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->PutDrawGridLines(EXCOMBOBOXLib::GridLinesEnum(0xfffffffc | EXCOMBOBOXLib::exVLines));
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"MultipleLine")))->PutDef(EXCOMBOBOXLib::exCellSingleLine,VARIANT_FALSE);
spComboBox1->GetColumns()->Add(L"VAlign");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("This is a bit of long text that should break the line");
var_Items->PutCellCaption(h,long(1),"top");
var_Items->PutCellVAlignment(h,long(1),EXCOMBOBOXLib::exTop);
h = var_Items->AddItem("This is a bit of long text that should break the line");
var_Items->PutCellCaption(h,long(1),"middle");
var_Items->PutCellVAlignment(h,long(1),EXCOMBOBOXLib::exMiddle);
h = var_Items->AddItem("This is a bit of long text that should break the line");
var_Items->PutCellCaption(h,long(1),"bottom");
var_Items->PutCellVAlignment(h,long(1),EXCOMBOBOXLib::exBottom);
|
328. How can I change the position of an item
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"Default");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->AddItem("Item 1");
var_Items->AddItem("Item 2");
var_Items->PutItemPosition(var_Items->AddItem("Item 3"),0);
|
327. How do I find an item based on a path
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"Default");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Root 1");
var_Items->InsertItem(h,long(0),"Child 1");
var_Items->PutItemData(var_Items->InsertItem(h,long(0),"Child 2"),long(1234));
var_Items->PutExpandItem(h,VARIANT_TRUE);
var_Items->PutItemBold(var_Items->GetFindPath(L"Root 1\\Child 1"),VARIANT_TRUE);
|
326. How do I find an item based on my extra data
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"Default");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Root 1");
var_Items->InsertItem(h,long(0),"Child 1");
var_Items->PutItemData(var_Items->InsertItem(h,long(0),"Child 2"),long(1234));
var_Items->PutExpandItem(h,VARIANT_TRUE);
|
325. How do I find an item
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"Default");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Root 1");
var_Items->InsertItem(h,long(0),"Child 1");
var_Items->InsertItem(h,long(0),"Child 2");
var_Items->PutExpandItem(h,VARIANT_TRUE);
var_Items->PutItemBold(var_Items->GetFindItem("Child 2",long(0),vtMissing),VARIANT_TRUE);
|
324. How can I insert a hyperlink or an anchor element
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"Column");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->PutCellCaptionFormat(var_Items->AddItem("Just an <a1>anchor</a> element ..."),long(0),EXCOMBOBOXLib::exHTML);
EXCOMBOBOXLib::IItemsPtr var_Items1 = spComboBox1->GetItems();
var_Items1->PutCellCaptionFormat(var_Items1->AddItem("Just another <a2>anchor</a> element ..."),long(0),EXCOMBOBOXLib::exHTML);
|
323. How do I find the index of the item based on its handle
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"Default");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Root 1");
var_Items->InsertItem(h,long(0),"Child 1");
var_Items->InsertItem(h,long(0),"Child 2");
var_Items->PutExpandItem(h,VARIANT_TRUE);
var_Items->PutItemBold(var_Items->GetItemByIndex(var_Items->GetItemToIndex(h)),VARIANT_TRUE);
|
322. How do I find the handle of the item based on its index
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"Default");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Root 1");
var_Items->InsertItem(h,long(0),"Child 1");
var_Items->InsertItem(h,long(0),"Child 2");
var_Items->PutExpandItem(h,VARIANT_TRUE);
var_Items->PutItemBold(var_Items->GetItemByIndex(1),VARIANT_TRUE);
|
321. How can I find the cell being clicked in a radio group
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->PutMarkSearchColumn(VARIANT_FALSE);
spComboBox1->PutSelBackColor(RGB(255,255,128));
spComboBox1->PutSelForeColor(RGB(0,0,0));
spComboBox1->GetColumns()->Add(L"C1");
spComboBox1->GetColumns()->Add(L"C2");
spComboBox1->GetColumns()->Add(L"C3");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Cell 1");
var_Items->PutCellCaption(h,long(1),"Radio 1");
var_Items->PutCellHasRadioButton(h,long(1),VARIANT_TRUE);
var_Items->PutCellRadioGroup(h,long(1),1234);
var_Items->PutCellCaption(h,long(2),"Radio 2");
var_Items->PutCellHasRadioButton(h,long(2),VARIANT_TRUE);
var_Items->PutCellRadioGroup(h,long(2),1234);
var_Items->PutCellState(h,long(1),1);
var_Items->PutCellBold(long(0),var_Items->GetCellChecked(1234),VARIANT_TRUE);
|
320. Can I add a +/- ( expand / collapse ) buttons to each item, so I can load the child items later
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->PutLinesAtRoot(EXCOMBOBOXLib::exLinesAtRoot);
spComboBox1->GetColumns()->Add(L"Default");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->PutItemHasChildren(var_Items->AddItem("parent item with no child items"),VARIANT_TRUE);
var_Items->AddItem("next item");
|
319. Can I let the user to resize at runtime the specified item
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->PutScrollBySingleLine(VARIANT_TRUE);
spComboBox1->PutDrawGridLines(EXCOMBOBOXLib::GridLinesEnum(0xfffffffc | EXCOMBOBOXLib::exVLines));
spComboBox1->GetColumns()->Add(L"Default");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->PutItemAllowSizing(var_Items->AddItem("resizable item"),VARIANT_TRUE);
var_Items->AddItem("not resizable item");
|
318. How can I change the size ( width, height ) of the picture
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"Default");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Root 1");
var_Items->PutCellPicture(h,long(0),((IDispatch*)(spComboBox1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)"))));
var_Items->PutCellPictureWidth(h,long(0),24);
var_Items->PutCellPictureHeight(h,long(0),24);
var_Items->PutItemHeight(h,32);
h = var_Items->AddItem("Root 2");
var_Items->PutCellPicture(h,long(0),((IDispatch*)(spComboBox1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)"))));
var_Items->PutItemHeight(h,48);
|
317. How can I find the number or the count of selected items
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"Default");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Root 1");
var_Items->InsertItem(h,long(0),"Child 1");
var_Items->InsertItem(h,long(0),"Child 2");
var_Items->PutExpandItem(h,VARIANT_TRUE);
var_Items->PutSelectItem(var_Items->GetItemChild(h),VARIANT_TRUE);
var_Items->PutSelectItem(var_Items->GetNextSiblingItem(var_Items->GetItemChild(h)),VARIANT_TRUE);
var_Items->AddItem(var_Items->GetSelectCount());
|
316. How do I unselect an item
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"Default");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Root 1");
var_Items->InsertItem(h,long(0),"Child 1");
var_Items->InsertItem(h,long(0),"Child 2");
var_Items->PutExpandItem(h,VARIANT_TRUE);
var_Items->PutSelectItem(h,VARIANT_FALSE);
|
315. How do I find the selected item
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"Default");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Root 1");
var_Items->InsertItem(h,long(0),"Child 1");
var_Items->InsertItem(h,long(0),"Child 2");
var_Items->PutExpandItem(h,VARIANT_TRUE);
var_Items->PutSelectItem(h,VARIANT_TRUE);
var_Items->PutItemBold(var_Items->GetSelectedItem(0),VARIANT_TRUE);
|
314. How do I un select all items
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"Default");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Root 1");
var_Items->InsertItem(h,long(0),"Child 1");
var_Items->InsertItem(h,long(0),"Child 2");
var_Items->PutExpandItem(h,VARIANT_TRUE);
|
313. How do I select multiple items
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"Default");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Root 1");
var_Items->InsertItem(h,long(0),"Child 1");
var_Items->InsertItem(h,long(0),"Child 2");
var_Items->PutExpandItem(h,VARIANT_TRUE);
var_Items->PutSelectItem(var_Items->GetItemChild(h),VARIANT_TRUE);
var_Items->PutSelectItem(var_Items->GetNextSiblingItem(var_Items->GetItemChild(h)),VARIANT_TRUE);
|
312. How do I select all items
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"Default");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Root 1");
var_Items->InsertItem(h,long(0),"Child 1");
var_Items->InsertItem(h,long(0),"Child 2");
var_Items->PutExpandItem(h,VARIANT_TRUE);
|
311. How do I select an item
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"Default");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Root 1");
var_Items->InsertItem(h,long(0),"Child 1");
var_Items->InsertItem(h,long(0),"Child 2");
var_Items->PutExpandItem(h,VARIANT_TRUE);
var_Items->PutSelectItem(h,VARIANT_TRUE);
|
310. Can I display a button with some picture or icon inside
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->PutHTMLPicture(L"p1","c:\\exontrol\\images\\zipdisk.gif");
spComboBox1->GetColumns()->Add(L"C1");
spComboBox1->GetColumns()->Add(L"C2");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Cell 1");
var_Items->PutCellCaption(h,long(1)," Button <img>p1</img> ");
var_Items->PutCellCaptionFormat(h,long(1),EXCOMBOBOXLib::exHTML);
var_Items->PutCellHAlignment(h,long(1),EXCOMBOBOXLib::RightAlignment);
var_Items->PutCellHasButton(h,long(1),VARIANT_TRUE);
var_Items->PutItemHeight(h,48);
|
309. Can I display a button with some picture or icon inside
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0") +
"/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1" +
"/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qO" +
"x3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
spComboBox1->GetColumns()->Add(L"C1");
spComboBox1->GetColumns()->Add(L"C2");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Cell 1");
var_Items->PutCellCaption(h,long(1)," Button <img>1</img> ");
var_Items->PutCellCaptionFormat(h,long(1),EXCOMBOBOXLib::exHTML);
var_Items->PutCellHAlignment(h,long(1),EXCOMBOBOXLib::RightAlignment);
var_Items->PutCellHasButton(h,long(1),VARIANT_TRUE);
|
308. Can I display a button with some icon inside
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0") +
"/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1" +
"/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qO" +
"x3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
spComboBox1->GetColumns()->Add(L"C1");
spComboBox1->GetColumns()->Add(L"C2");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Cell 1");
var_Items->PutCellCaption(h,long(1)," <img>1</img> ");
var_Items->PutCellCaptionFormat(h,long(1),EXCOMBOBOXLib::exHTML);
var_Items->PutCellHAlignment(h,long(1),EXCOMBOBOXLib::RightAlignment);
var_Items->PutCellHasButton(h,long(1),VARIANT_TRUE);
|
307. How can I assign multiple icon/picture to a cell
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->PutHTMLPicture(L"p1","c:\\exontrol\\images\\zipdisk.gif");
spComboBox1->PutHTMLPicture(L"p2","c:\\exontrol\\images\\auction.gif");
spComboBox1->GetColumns()->Add(L"Default");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("text <img>p1</img> another picture <img>p2</img> and so on");
var_Items->PutCellCaptionFormat(h,long(0),EXCOMBOBOXLib::exHTML);
var_Items->PutCellPicture(h,long(0),((IDispatch*)(spComboBox1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\colorize.gif`)"))));
var_Items->PutItemHeight(h,48);
var_Items->AddItem("Root 2");
|
306. How can I assign an icon/picture to a cell
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"Default");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Root 1");
var_Items->PutCellPicture(h,long(0),((IDispatch*)(spComboBox1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)"))));
var_Items->PutItemHeight(h,48);
var_Items->AddItem("Root 2");
|
305. How can I assign multiple icons/pictures to a cell
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0") +
"/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1" +
"/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qO" +
"x3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
spComboBox1->GetColumns()->Add(L"Default");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Root <img>1</img> 1, <img>2</img>, ... and so on ");
var_Items->PutCellCaptionFormat(h,long(0),EXCOMBOBOXLib::exHTML);
|
304. How can I assign multiple icons/pictures to a cell
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0") +
"/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1" +
"/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qO" +
"x3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
spComboBox1->GetColumns()->Add(L"Default");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Root 1");
var_Items->PutCellImages(h,long(0),"1,2,3");
|
303. How can I assign an icon/picture to a cell
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0") +
"/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1" +
"/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qO" +
"x3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
spComboBox1->GetColumns()->Add(L"Default");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Root 1");
var_Items->PutCellImage(h,long(0),1);
var_Items->PutCellImage(var_Items->InsertItem(h,long(0),"Child 1"),long(0),2);
var_Items->PutCellImage(var_Items->InsertItem(h,long(0),"Child 2"),long(0),3);
var_Items->PutExpandItem(h,VARIANT_TRUE);
|
302. How can I get the handle of an item based on the handle of the cell
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"Default");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Root 1");
var_Items->InsertItem(h,long(0),"Child 1");
var_Items->InsertItem(h,long(0),"Child 2");
var_Items->PutExpandItem(h,VARIANT_TRUE);
var_Items->PutItemBold(var_Items->GetCellItem(var_Items->GetItemCell(h,long(0))),VARIANT_TRUE);
|
301. How can I display a button inside the item or cell
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"C1");
spComboBox1->GetColumns()->Add(L"C2");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Cell 1");
var_Items->PutCellCaption(h,long(1)," Button 1 ");
var_Items->PutCellHAlignment(h,long(1),EXCOMBOBOXLib::RightAlignment);
var_Items->PutCellHasButton(h,long(1),VARIANT_TRUE);
h = var_Items->AddItem("Cell 2");
var_Items->PutCellCaption(h,long(1)," Button 2 ");
var_Items->PutCellHAlignment(h,long(1),EXCOMBOBOXLib::CenterAlignment);
var_Items->PutCellHasButton(h,long(1),VARIANT_TRUE);
|
300. How can I change the state of a radio button
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->PutMarkSearchColumn(VARIANT_FALSE);
spComboBox1->PutSelBackColor(RGB(255,255,128));
spComboBox1->PutSelForeColor(RGB(0,0,0));
spComboBox1->GetColumns()->Add(L"C1");
spComboBox1->GetColumns()->Add(L"C2");
spComboBox1->GetColumns()->Add(L"C3");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Cell 1");
var_Items->PutCellCaption(h,long(1),"Radio 1");
var_Items->PutCellHasRadioButton(h,long(1),VARIANT_TRUE);
var_Items->PutCellRadioGroup(h,long(1),1234);
var_Items->PutCellCaption(h,long(2),"Radio 2");
var_Items->PutCellHasRadioButton(h,long(2),VARIANT_TRUE);
var_Items->PutCellRadioGroup(h,long(2),1234);
var_Items->PutCellState(h,long(1),1);
|
299. How can I assign a radio button to a cell
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->PutMarkSearchColumn(VARIANT_FALSE);
spComboBox1->PutSelBackColor(RGB(255,255,128));
spComboBox1->PutSelForeColor(RGB(0,0,0));
spComboBox1->GetColumns()->Add(L"C1");
spComboBox1->GetColumns()->Add(L"C2");
spComboBox1->GetColumns()->Add(L"C3");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Cell 1");
var_Items->PutCellCaption(h,long(1),"Radio 1");
var_Items->PutCellHasRadioButton(h,long(1),VARIANT_TRUE);
var_Items->PutCellRadioGroup(h,long(1),1234);
var_Items->PutCellCaption(h,long(2),"Radio 2");
var_Items->PutCellHasRadioButton(h,long(2),VARIANT_TRUE);
var_Items->PutCellRadioGroup(h,long(2),1234);
var_Items->PutCellState(h,long(1),1);
|
298. How can I change the state of a checkbox
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"C1");
spComboBox1->GetColumns()->Add(L"C2");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Cell 1");
var_Items->PutCellCaption(h,long(1),"Check Box");
var_Items->PutCellHasCheckBox(h,long(1),VARIANT_TRUE);
var_Items->PutCellState(h,long(1),1);
|
297. How can I assign a checkbox to a cell
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"C1");
spComboBox1->GetColumns()->Add(L"C2");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Cell 1");
var_Items->PutCellCaption(h,long(1),"Check Box");
var_Items->PutCellHasCheckBox(h,long(1),VARIANT_TRUE);
|
296. How can I display an item or a cell on multiple lines
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->PutScrollBySingleLine(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"C1");
spComboBox1->GetColumns()->Add(L"C2");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Cell 1");
var_Items->PutCellCaption(h,long(1),"This is bit of text that's shown on multiple lines");
var_Items->PutCellSingleLine(h,long(1),VARIANT_FALSE);
|
295. How can I assign a tooltip to a cell
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"C1");
spComboBox1->GetColumns()->Add(L"C2");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Cell 1");
var_Items->PutCellCaption(h,long(1),"tooltip");
var_Items->PutCellToolTip(h,long(1),L"This is bit of text that's shown when the user hovers the cell");
|
294. How can I associate an extra data to a cell
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"C1");
spComboBox1->GetColumns()->Add(L"C2");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Cell 1");
var_Items->PutCellCaption(h,long(1),"Cell 2");
var_Items->PutCellData(h,long(1),"your extra data");
|
293. How do I enable or disable a cell
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"C1");
spComboBox1->GetColumns()->Add(L"C2");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Cell 1");
var_Items->PutCellCaption(h,long(1),"Cell 2");
var_Items->PutCellEnabled(h,long(1),VARIANT_FALSE);
|
292. How do I change the cell's foreground color
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"C1");
spComboBox1->GetColumns()->Add(L"C2");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Cell 1");
var_Items->PutCellCaption(h,long(1),"Cell 2");
var_Items->PutCellForeColor(h,long(1),RGB(255,0,0));
|
291. How do I change the visual effect for the cell, using your EBN files
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn");
spComboBox1->GetColumns()->Add(L"C1");
spComboBox1->GetColumns()->Add(L"C2");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Cell 1");
var_Items->PutCellCaption(h,long(1),"Cell 2");
var_Items->PutCellBackColor(h,long(1),0x1000000);
|
290. How do I change the cell's background color
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"C1");
spComboBox1->GetColumns()->Add(L"C2");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Cell 1");
var_Items->PutCellCaption(h,long(1),"Cell 2");
var_Items->PutCellBackColor(h,long(1),RGB(255,0,0));
|
289. How do I change the caption or value for a particular cell
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"C1");
spComboBox1->GetColumns()->Add(L"C2");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->PutCellCaption(var_Items->AddItem("Cell 1"),long(1),"Cell 2");
|
288. How do I get the handle of the cell
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"Default");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Root 1");
var_Items->InsertItem(h,long(0),"Child 1");
var_Items->InsertItem(h,long(0),"Child 2");
var_Items->PutExpandItem(h,VARIANT_TRUE);
var_Items->PutCellBold(long(0),var_Items->GetItemCell(h,long(0)),VARIANT_TRUE);
|
287. How do I retrieve the focused item
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"Default");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Root 1");
var_Items->InsertItem(h,long(0),"Child 1");
var_Items->InsertItem(h,long(0),"Child 2");
var_Items->PutExpandItem(h,VARIANT_TRUE);
var_Items->PutItemBold(var_Items->GetFocusItem(),VARIANT_TRUE);
|
286. How do I get the number or count of child items
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"Default");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Root 1");
var_Items->InsertItem(h,long(0),"Child 1");
var_Items->InsertItem(h,long(0),"Child 2");
var_Items->PutExpandItem(h,VARIANT_TRUE);
var_Items->AddItem(var_Items->GetChildCount(h));
|
285. How do I enumerate the visible items
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"Default");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Root 1");
var_Items->InsertItem(h,long(0),"Child 1");
var_Items->InsertItem(h,long(0),"Child 2");
var_Items->PutExpandItem(h,VARIANT_TRUE);
h = var_Items->AddItem("Root 2");
var_Items->PutItemBold(var_Items->GetFirstVisibleItem(),VARIANT_TRUE);
var_Items->PutItemBold(var_Items->GetNextVisibleItem(var_Items->GetFirstVisibleItem()),VARIANT_TRUE);
|
284. How do I enumerate the siblings items
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"Default");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Root 1");
var_Items->InsertItem(h,long(0),"Child 1");
var_Items->InsertItem(h,long(0),"Child 2");
var_Items->PutExpandItem(h,VARIANT_TRUE);
h = var_Items->AddItem("Root 2");
var_Items->PutItemBold(var_Items->GetNextSiblingItem(var_Items->GetFirstVisibleItem()),VARIANT_TRUE);
var_Items->PutItemBold(var_Items->GetPrevSiblingItem(var_Items->GetNextSiblingItem(var_Items->GetFirstVisibleItem())),VARIANT_TRUE);
|
283. How do I get the parent item
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"Default");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Root 1");
var_Items->InsertItem(h,long(0),"Child 1");
var_Items->InsertItem(h,long(0),"Child 2");
var_Items->PutExpandItem(h,VARIANT_TRUE);
var_Items->PutItemBold(var_Items->GetItemParent(var_Items->GetItemChild(h)),VARIANT_TRUE);
|
282. How do I get the first child item
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"Default");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Root 1");
var_Items->InsertItem(h,long(0),"Child 1");
var_Items->InsertItem(h,long(0),"Child 2");
var_Items->PutExpandItem(h,VARIANT_TRUE);
var_Items->PutItemBold(var_Items->GetItemChild(h),VARIANT_TRUE);
|
281. How do I enumerate the root items
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"Default");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Root 1");
var_Items->InsertItem(h,long(0),"Child 1");
var_Items->InsertItem(h,long(0),"Child 2");
var_Items->PutExpandItem(h,VARIANT_TRUE);
h = var_Items->AddItem("Root 2");
var_Items->InsertItem(h,long(0),"Child 1");
var_Items->InsertItem(h,long(0),"Child 2");
var_Items->PutItemBold(var_Items->GetRootItem(0),VARIANT_TRUE);
var_Items->PutItemUnderline(var_Items->GetRootItem(1),VARIANT_TRUE);
|
280. I have a hierarchy, how can I count the number of root items
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"Default");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Root 1");
var_Items->InsertItem(h,long(0),"Child 1");
var_Items->InsertItem(h,long(0),"Child 2");
var_Items->PutExpandItem(h,VARIANT_TRUE);
h = var_Items->AddItem("Root 2");
var_Items->InsertItem(h,long(0),"Child 1");
var_Items->InsertItem(h,long(0),"Child 2");
var_Items->AddItem(var_Items->GetRootCount());
|
279. How can I make an item unselectable, or not selectable
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"Column");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("unselectable - you can't get selected");
var_Items->PutSelectableItem(h,VARIANT_FALSE);
var_Items->AddItem("selectable");
|
278. How can I hide or show an item
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"Column");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("hidden");
var_Items->PutItemHeight(h,0);
var_Items->PutSelectableItem(h,VARIANT_FALSE);
var_Items->AddItem("visible");
|
277. How can I change the height for all items
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->PutDefaultItemHeight(32);
spComboBox1->GetColumns()->Add(L"Column");
spComboBox1->GetItems()->AddItem("One");
spComboBox1->GetItems()->AddItem("Two");
|
276. How do I change the height of an item
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->PutScrollBySingleLine(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"Default");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->PutItemHeight(var_Items->AddItem("height"),128);
spComboBox1->GetItems()->AddItem("enabled");
|
275. How do I disable or enable an item
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"Default");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->PutEnableItem(var_Items->AddItem("disabled"),VARIANT_FALSE);
spComboBox1->GetItems()->AddItem("enabled");
|
274. How do I display as strikeout a cell
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"Default");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->PutCellStrikeOut(var_Items->AddItem("strikeout"),long(0),VARIANT_TRUE);
|
273. How do I display as strikeout a cell or an item
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"Default");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->PutCellCaptionFormat(var_Items->AddItem("gets <s>strikeout</s> only a portion of text"),long(0),EXCOMBOBOXLib::exHTML);
|
272. How do I display as strikeout an item
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"Default");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->PutItemStrikeOut(var_Items->AddItem("strikeout"),VARIANT_TRUE);
|
271. How do I underline a cell
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"Default");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->PutCellUnderline(var_Items->AddItem("underline"),long(0),VARIANT_TRUE);
|
270. How do I underline a cell or an item
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"Default");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->PutCellCaptionFormat(var_Items->AddItem("gets <u>underline</u> only a portion of text"),long(0),EXCOMBOBOXLib::exHTML);
|
269. How do I underline an item
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"Default");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->PutItemUnderline(var_Items->AddItem("underline"),VARIANT_TRUE);
|
268. How do I display as italic a cell
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"Default");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->PutCellItalic(var_Items->AddItem("italic"),long(0),VARIANT_TRUE);
|
267. How do I display as italic a cell or an item
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"Default");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->PutCellCaptionFormat(var_Items->AddItem("gets <i>italic</i> only a portion of text"),long(0),EXCOMBOBOXLib::exHTML);
|
266. How do I display as italic an item
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"Default");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->PutItemItalic(var_Items->AddItem("italic"),VARIANT_TRUE);
|
265. How do I bold a cell
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"Default");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->PutCellBold(var_Items->AddItem("bold"),long(0),VARIANT_TRUE);
|
264. How do I bold a cell or an item
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"Default");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->PutCellCaptionFormat(var_Items->AddItem("gets <b>bold</b> only a portion of text"),long(0),EXCOMBOBOXLib::exHTML);
|
263. How do I bold an item
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"Default");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->PutItemBold(var_Items->AddItem("bold"),VARIANT_TRUE);
|
262. How do I change the foreground color for the item
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"Default");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Root");
long hC = var_Items->InsertItem(h,long(0),"Child 1");
var_Items->PutItemForeColor(hC,RGB(255,0,0));
var_Items->InsertItem(h,long(0),"Child 2");
var_Items->PutExpandItem(h,VARIANT_TRUE);
|
261. How do I change the visual appearance for the item, using your EBN technology
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn");
spComboBox1->GetColumns()->Add(L"Default");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Root");
long hC = var_Items->InsertItem(h,long(0),"Child 1");
var_Items->PutItemBackColor(hC,0x1000000);
var_Items->InsertItem(h,long(0),"Child 2");
var_Items->PutExpandItem(h,VARIANT_TRUE);
|
260. How do I change the background color for the item
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"Default");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Root");
long hC = var_Items->InsertItem(h,long(0),"Child 1");
var_Items->PutItemBackColor(hC,RGB(255,0,0));
var_Items->InsertItem(h,long(0),"Child 2");
var_Items->PutExpandItem(h,VARIANT_TRUE);
|
259. How do I expand or collapse an item
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"Default");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Root");
var_Items->InsertItem(h,long(0),"Child 1");
var_Items->InsertItem(h,long(0),"Child 2");
var_Items->PutExpandItem(h,VARIANT_TRUE);
|
258. How do I associate an extra data to an item
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"Default");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->PutItemData(var_Items->AddItem("item"),"your extra data");
|
257. How do I get the number or count of items
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"Default");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Root");
var_Items->InsertItem(h,long(0),"Child 1");
var_Items->InsertItem(h,long(0),"Child 2");
var_Items->PutExpandItem(h,VARIANT_TRUE);
spComboBox1->GetItems()->AddItem(0->GetItemCount());
|
256. How do I programmatically edit a cell
| C++ |
|---|
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->PutMinHeightList(304); spComboBox1->PutColumnAutoResize(VARIANT_TRUE); |
255. How can I change at runtime the parent of the item
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->PutLinesAtRoot(EXCOMBOBOXLib::exLinesAtRoot);
spComboBox1->GetColumns()->Add(L"Default");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long hP = var_Items->AddItem("Root");
long hC = var_Items->AddItem("Child");
var_Items->SetParent(hC,hP);
|
254. How can I sort the items
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"Default");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Root");
var_Items->InsertItem(h,long(0),"Child 1");
var_Items->InsertItem(h,long(0),"Child 2");
var_Items->PutExpandItem(h,VARIANT_TRUE);
spComboBox1->GetColumns()->GetItem("Default")->PutSortOrder(EXCOMBOBOXLib::SortDescending);
|
253. How do I sort the child items
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"Default");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Root");
var_Items->InsertItem(h,long(0),"Child 1");
var_Items->InsertItem(h,long(0),"Child 2");
var_Items->PutExpandItem(h,VARIANT_TRUE);
var_Items->SortChildren(h,long(0),VARIANT_FALSE);
|
252. How can I ensure or scroll the control so the item fits the control's client area
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"Default");
long h = spComboBox1->GetItems()->AddItem("item");
|
251. How can I remove or delete all items
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"Default");
spComboBox1->GetItems()->AddItem("removed item");
spComboBox1->GetItems()->RemoveAllItems();
|
250. How can I remove or delete an item
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"Default");
long h = spComboBox1->GetItems()->AddItem("removed item");
spComboBox1->GetItems()->RemoveItem(h);
|
249. How can I add or insert child items
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->PutLinesAtRoot(EXCOMBOBOXLib::exLinesAtRoot);
spComboBox1->GetColumns()->Add(L"C1");
spComboBox1->GetColumns()->Add(L"C2");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
long h = var_Items->AddItem("Cell 1");
var_Items->PutCellCaption(h,long(1),"Cell 2");
var_Items->PutCellCaption(var_Items->InsertItem(h,long(0),"Cell 3"),long(1),"Cell 4");
var_Items->PutCellCaption(var_Items->InsertItem(h,long(0),"Cell 5"),long(1),"Cell 6");
var_Items->PutExpandItem(h,VARIANT_TRUE);
|
248. How can I add or insert a child item
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->PutLinesAtRoot(EXCOMBOBOXLib::exLinesAtRoot);
spComboBox1->GetColumns()->Add(L"Default");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->InsertItem(var_Items->AddItem("root"),long(0),"child");
|
247. How can I add or insert an item
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"C1");
spComboBox1->GetColumns()->Add(L"C2");
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->PutCellCaption(var_Items->AddItem("Cell 1"),long(1),"Cell 2");
long h = var_Items->AddItem("Cell 3");
var_Items->PutCellCaption(h,long(1),"Cell 4");
|
246. How can I add or insert an item
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"Default");
spComboBox1->GetItems()->AddItem("new item");
|
245. How can I get the columns as they are shown in the control's sortbar
| C++ |
|---|
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->PutMinHeightList(304); spComboBox1->PutColumnAutoResize(VARIANT_TRUE); ObjectPtr var_Object = ((ObjectPtr)(spComboBox1->GetColumns()->GetItemBySortPosition(long(0)))); |
244. How can I access the properties of a column
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetColumns()->Add(L"A");
spComboBox1->GetColumns()->GetItem("A")->PutHeaderBold(VARIANT_TRUE);
|
243. How can I remove all the columns
| C++ |
|---|
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->PutMinHeightList(304); spComboBox1->PutColumnAutoResize(VARIANT_TRUE); spComboBox1->GetColumns()->Clear(); |
242. How can I remove a column
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->GetColumns()->Remove("A");
|
241. How can I get the number or the count of columns
| C++ |
|---|
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->PutMinHeightList(304); spComboBox1->PutColumnAutoResize(VARIANT_TRUE); long var_Count = spComboBox1->GetColumns()->GetCount(); |
240. How can I change the font for all cells in the entire column
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
/*
Includes the definition for CreateObject function like follows:
#include <comdef.h>
IUnknownPtr CreateObject( BSTR Object )
{
IUnknownPtr spResult;
spResult.CreateInstance( Object );
return spResult;
};
*/
/*
Copy and paste the following directives to your header file as
it defines the namespace 'stdole' for the library: 'OLE Automation'
#import <stdole2.tlb>
*/
stdole::FontPtr f = ::CreateObject(L"StdFont");
f->PutName(L"Tahoma");
f->PutSize(_variant_t(long(12)));
EXCOMBOBOXLib::IConditionalFormatPtr var_ConditionalFormat = spComboBox1->GetConditionalFormats()->Add(L"1",vtMissing);
var_ConditionalFormat->PutFont(IFontDispPtr(((stdole::FontPtr)(f))));
var_ConditionalFormat->PutApplyTo(EXCOMBOBOXLib::exFormatToColumns);
spComboBox1->GetColumns()->Add(L"Column");
spComboBox1->GetItems()->AddItem(long(0));
spComboBox1->GetItems()->AddItem(long(1));
|
239. How can I change the background color for all cells in the column
| C++ |
|---|
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->PutMinHeightList(304); spComboBox1->PutColumnAutoResize(VARIANT_TRUE); EXCOMBOBOXLib::IConditionalFormatPtr var_ConditionalFormat = spComboBox1->GetConditionalFormats()->Add(L"1",vtMissing); var_ConditionalFormat->PutBackColor(RGB(255,0,0)); var_ConditionalFormat->PutApplyTo(EXCOMBOBOXLib::exFormatToColumns); spComboBox1->GetColumns()->Add(L"Column"); spComboBox1->GetItems()->AddItem(long(0)); spComboBox1->GetItems()->AddItem(long(1)); |
238. How can I change the foreground color for all cells in the column
| C++ |
|---|
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->PutMinHeightList(304); spComboBox1->PutColumnAutoResize(VARIANT_TRUE); EXCOMBOBOXLib::IConditionalFormatPtr var_ConditionalFormat = spComboBox1->GetConditionalFormats()->Add(L"1",vtMissing); var_ConditionalFormat->PutForeColor(RGB(255,0,0)); var_ConditionalFormat->PutApplyTo(EXCOMBOBOXLib::exFormatToColumns); spComboBox1->GetColumns()->Add(L"Column"); spComboBox1->GetItems()->AddItem(long(0)); spComboBox1->GetItems()->AddItem(long(1)); |
237. How can I show as strikeout all cells in the column
| C++ |
|---|
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->PutMinHeightList(304); spComboBox1->PutColumnAutoResize(VARIANT_TRUE); EXCOMBOBOXLib::IConditionalFormatPtr var_ConditionalFormat = spComboBox1->GetConditionalFormats()->Add(L"1",vtMissing); var_ConditionalFormat->PutStrikeOut(VARIANT_TRUE); var_ConditionalFormat->PutApplyTo(EXCOMBOBOXLib::exFormatToColumns); spComboBox1->GetColumns()->Add(L"Column"); spComboBox1->GetItems()->AddItem(long(0)); spComboBox1->GetItems()->AddItem(long(1)); |
236. How can I underline all cells in the column
| C++ |
|---|
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->PutMinHeightList(304); spComboBox1->PutColumnAutoResize(VARIANT_TRUE); EXCOMBOBOXLib::IConditionalFormatPtr var_ConditionalFormat = spComboBox1->GetConditionalFormats()->Add(L"1",vtMissing); var_ConditionalFormat->PutUnderline(VARIANT_TRUE); var_ConditionalFormat->PutApplyTo(EXCOMBOBOXLib::exFormatToColumns); spComboBox1->GetColumns()->Add(L"Column"); spComboBox1->GetItems()->AddItem(long(0)); spComboBox1->GetItems()->AddItem(long(1)); |
235. How can I show in italic all data in the column
| C++ |
|---|
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->PutMinHeightList(304); spComboBox1->PutColumnAutoResize(VARIANT_TRUE); EXCOMBOBOXLib::IConditionalFormatPtr var_ConditionalFormat = spComboBox1->GetConditionalFormats()->Add(L"1",vtMissing); var_ConditionalFormat->PutItalic(VARIANT_TRUE); var_ConditionalFormat->PutApplyTo(EXCOMBOBOXLib::exFormatToColumns); spComboBox1->GetColumns()->Add(L"Column"); spComboBox1->GetItems()->AddItem(long(0)); spComboBox1->GetItems()->AddItem(long(1)); |
234. How can I bold the entire column
| C++ |
|---|
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->PutMinHeightList(304); spComboBox1->PutColumnAutoResize(VARIANT_TRUE); EXCOMBOBOXLib::IConditionalFormatPtr var_ConditionalFormat = spComboBox1->GetConditionalFormats()->Add(L"1",vtMissing); var_ConditionalFormat->PutBold(VARIANT_TRUE); var_ConditionalFormat->PutApplyTo(EXCOMBOBOXLib::exFormatToColumns); spComboBox1->GetColumns()->Add(L"Column"); spComboBox1->GetItems()->AddItem(long(0)); spComboBox1->GetItems()->AddItem(long(1)); |
233. How can I display a computed column and highlight some values that are negative or less than a value
| C++ |
|---|
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->PutMinHeightList(304); spComboBox1->PutColumnAutoResize(VARIANT_TRUE); spComboBox1->GetColumns()->Add(L"A"); spComboBox1->GetColumns()->Add(L"B"); ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"(A+B)*1.19")))->PutComputedField(L"(%0 + %1) * 1.19"); EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems(); var_Items->PutCellCaption(var_Items->AddItem(long(1)),long(1),long(2)); EXCOMBOBOXLib::IItemsPtr var_Items1 = spComboBox1->GetItems(); var_Items1->PutCellCaption(var_Items1->AddItem(long(10)),long(1),long(20)); EXCOMBOBOXLib::IConditionalFormatPtr var_ConditionalFormat = spComboBox1->GetConditionalFormats()->Add(L"%2 > 10",vtMissing); var_ConditionalFormat->PutBold(VARIANT_TRUE); var_ConditionalFormat->PutForeColor(RGB(255,0,0)); var_ConditionalFormat->PutApplyTo(EXCOMBOBOXLib::FormatApplyToEnum(0x2)); |
232. Can I display a computed column so it displays the VAT, or SUM
| C++ |
|---|
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->PutMinHeightList(304); spComboBox1->PutColumnAutoResize(VARIANT_TRUE); spComboBox1->GetColumns()->Add(L"A"); spComboBox1->GetColumns()->Add(L"B"); ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"(A+B)*1.19")))->PutComputedField(L"(%0 + %1) * 1.19"); EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems(); var_Items->PutCellCaption(var_Items->AddItem(long(1)),long(1),long(2)); EXCOMBOBOXLib::IItemsPtr var_Items1 = spComboBox1->GetItems(); var_Items1->PutCellCaption(var_Items1->AddItem(long(10)),long(1),long(20)); |
231. How can I show a column that adds values in the cells
| C++ |
|---|
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->PutMinHeightList(304); spComboBox1->PutColumnAutoResize(VARIANT_TRUE); spComboBox1->GetColumns()->Add(L"A"); spComboBox1->GetColumns()->Add(L"B"); ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"A+B")))->PutComputedField(L"%0 + %1"); EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems(); var_Items->PutCellCaption(var_Items->AddItem(long(1)),long(1),long(2)); EXCOMBOBOXLib::IItemsPtr var_Items1 = spComboBox1->GetItems(); var_Items1->PutCellCaption(var_Items1->AddItem(long(10)),long(1),long(20)); |
230. Is there any function to filter the control's data as I type, so the items being displayed include the typed characters
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
EXCOMBOBOXLib::IColumnPtr var_Column = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Filter")));
var_Column->PutFilterOnType(VARIANT_TRUE);
var_Column->PutDisplayFilterButton(VARIANT_TRUE);
var_Column->PutAutoSearch(EXCOMBOBOXLib::exContains);
spComboBox1->GetItems()->AddItem("Canada");
spComboBox1->GetItems()->AddItem("USA");
|
229. Is there any function to filter the control's data as I type, something like filter on type
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
EXCOMBOBOXLib::IColumnPtr var_Column = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Filter")));
var_Column->PutFilterOnType(VARIANT_TRUE);
var_Column->PutDisplayFilterButton(VARIANT_TRUE);
spComboBox1->GetItems()->AddItem("Canada");
spComboBox1->GetItems()->AddItem("USA");
|
228. How can I programmatically filter a column
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
EXCOMBOBOXLib::IColumnPtr var_Column = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Filter")));
var_Column->PutDisplayFilterButton(VARIANT_TRUE);
var_Column->PutFilterType(EXCOMBOBOXLib::exNonBlanks);
spComboBox1->GetItems()->AddItem(vtMissing);
spComboBox1->GetItems()->AddItem("not empty");
spComboBox1->ApplyFilter();
|
227. How can I show or display the control's filter
| C++ |
|---|
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->PutMinHeightList(304); spComboBox1->PutColumnAutoResize(VARIANT_TRUE); ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Filter")))->PutDisplayFilterButton(VARIANT_TRUE); |
226. How can I customize the items being displayed in the drop down filter window
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
EXCOMBOBOXLib::IColumnPtr var_Column = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Custom Filter")));
var_Column->PutDisplayFilterButton(VARIANT_TRUE);
var_Column->PutDisplayFilterPattern(VARIANT_FALSE);
var_Column->PutCustomFilter(_bstr_t("Excel Spreadsheets (*.xls )||*.xls|||Word Documents||*.doc|||Powerpoint Presentations||*.pps|||") +
"Text Documents (*.log,*.txt)||*.txt|*.log");
var_Column->PutFilterType(EXCOMBOBOXLib::exPattern);
var_Column->PutFilter(L"*.xls");
spComboBox1->GetItems()->AddItem("excel.xls");
spComboBox1->GetItems()->AddItem("word.doc");
spComboBox1->GetItems()->AddItem("pp.pps");
spComboBox1->GetItems()->AddItem("text.txt");
spComboBox1->ApplyFilter();
|
225. How can I change the order or the position of the columns in the sort bar
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->PutSortBarVisible(VARIANT_TRUE);
spComboBox1->PutSortBarColumnWidth(48);
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"C1")))->PutSortOrder(EXCOMBOBOXLib::SortAscending);
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"C2")))->PutSortOrder(EXCOMBOBOXLib::SortDescending);
spComboBox1->GetColumns()->GetItem("C2")->PutSortPosition(0);
|
224. How do I arrange my columns on multiple levels
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"S")))->PutWidth(32);
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Level 2")))->PutLevelKey(long(1));
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Level 3")))->PutLevelKey(long(1));
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Level 4")))->PutLevelKey(long(1));
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Level 1")))->PutLevelKey("2");
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Level 2")))->PutLevelKey("2");
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Level 3")))->PutLevelKey("2");
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Level 4")))->PutLevelKey("2");
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"E")))->PutWidth(32);
|
223. How do I arrange my columns on multiple lines
| C++ |
|---|
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->PutMinHeightList(304); spComboBox1->PutColumnAutoResize(VARIANT_TRUE); spComboBox1->PutHeaderHeight(32); ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"")))->PutHTMLCaption(L"Line 1<br>Line 2"); |
222. How can I display all cells using HTML format
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"HTML")))->PutDef(EXCOMBOBOXLib::exCellCaptionFormat,long(1));
spComboBox1->GetItems()->AddItem(_bstr_t("<font ;12>T</font>his <b>is</b> an <a>html</a> <font Tahoma><fgcolor=FF0000>text</fgcolor></fon") +
"t>.");
|
221. How can I display all cells using multiple lines
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"MultipleLine")))->PutDef(EXCOMBOBOXLib::exCellSingleLine,VARIANT_FALSE);
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"SingleLine")))->PutDef(EXCOMBOBOXLib::exCellSingleLine,VARIANT_TRUE);
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->PutCellCaption(var_Items->AddItem("This is a bit of long text that should break the line"),long(1),"this is a bit of long text that's displayed on a single line");
|
220. How do change the vertical alignment for all cells in the column
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"MultipleLine")))->PutDef(EXCOMBOBOXLib::exCellSingleLine,VARIANT_FALSE);
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"VAlign")))->PutDef(EXCOMBOBOXLib::exCellVAlignment,long(2));
EXCOMBOBOXLib::IItemsPtr var_Items = spComboBox1->GetItems();
var_Items->PutCellCaption(var_Items->AddItem("This is a bit of long text that should break the line"),long(1),"bottom");
EXCOMBOBOXLib::IItemsPtr var_Items1 = spComboBox1->GetItems();
var_Items1->PutCellCaption(var_Items1->AddItem("This is a bit of long text that should break the line"),long(1),"bottom");
|
219. How do change the foreground color for all cells in the column
| C++ |
|---|
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->PutMinHeightList(304); spComboBox1->PutColumnAutoResize(VARIANT_TRUE); ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"ForeColor")))->PutDef(EXCOMBOBOXLib::exCellForeColor,long(255)); spComboBox1->GetItems()->AddItem(long(0)); spComboBox1->GetItems()->AddItem(long(1)); |
218. How do change the background color for all cells in the column
| C++ |
|---|
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->PutMinHeightList(304); spComboBox1->PutColumnAutoResize(VARIANT_TRUE); ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"BackColor")))->PutDef(EXCOMBOBOXLib::exCellBackColor,long(255)); spComboBox1->GetItems()->AddItem(long(0)); spComboBox1->GetItems()->AddItem(long(1)); |
217. How do I show buttons for all cells in the column
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
EXCOMBOBOXLib::IColumnPtr var_Column = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Button")));
var_Column->PutDef(EXCOMBOBOXLib::exCellHasButton,VARIANT_TRUE);
var_Column->PutDef(EXCOMBOBOXLib::exCellButtonAutoWidth,VARIANT_TRUE);
spComboBox1->GetItems()->AddItem(" Button 1 ");
spComboBox1->GetItems()->AddItem(" Button 2 ");
|
216. How do I show buttons for all cells in the column
| C++ |
|---|
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->PutMinHeightList(304); spComboBox1->PutColumnAutoResize(VARIANT_TRUE); ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Button")))->PutDef(EXCOMBOBOXLib::exCellHasButton,VARIANT_TRUE); spComboBox1->GetItems()->AddItem(long(0)); spComboBox1->GetItems()->AddItem(long(1)); |
215. How do I display radio buttons for all cells in the column
| C++ |
|---|
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->PutMinHeightList(304); spComboBox1->PutColumnAutoResize(VARIANT_TRUE); ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Radio")))->PutDef(EXCOMBOBOXLib::exCellHasRadioButton,VARIANT_TRUE); spComboBox1->GetItems()->AddItem(long(0)); spComboBox1->GetItems()->AddItem(long(1)); |
214. How do I display checkboxes for all cells in the column
| C++ |
|---|
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->PutMinHeightList(304); spComboBox1->PutColumnAutoResize(VARIANT_TRUE); ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Check")))->PutDef(EXCOMBOBOXLib::exCellHasCheckBox,VARIANT_TRUE); spComboBox1->GetItems()->AddItem(long(0)); spComboBox1->GetItems()->AddItem(long(1)); |
213. How can I display a tooltip when the cursor hovers the column
| C++ |
|---|
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->PutMinHeightList(304); spComboBox1->PutColumnAutoResize(VARIANT_TRUE); ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"tooltip")))->PutToolTip(L"This is a bit of text that is shown when user hovers the column."); |
212. Is there any function to assign a key to a column instead using its name or capion
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Data")))->PutKey(L"DKey");
spComboBox1->GetColumns()->GetItem("DKey")->PutCaption(L"new caption");
|
211. Is there any function to assign any extra data to a column
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Data")))->PutData("your extra data");
|
210. By default, the column gets sorted descending, when I first click its header. How can I change so the column gets sorted ascending when the user first clicks the column's header
| C++ |
|---|
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->PutMinHeightList(304); spComboBox1->PutColumnAutoResize(VARIANT_TRUE); ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Sort")))->PutDefaultSortOrder(VARIANT_TRUE); |
209. How can I specify the maximum width for the column, if I use WidthAutoResize property
| C++ |
|---|
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->PutMinHeightList(304); spComboBox1->PutColumnAutoResize(VARIANT_TRUE); EXCOMBOBOXLib::IColumnPtr var_Column = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Auto"))); var_Column->PutWidthAutoResize(VARIANT_TRUE); var_Column->PutMinWidthAutoResize(32); var_Column->PutMaxWidthAutoResize(128); spComboBox1->GetItems()->AddItem(long(0)); spComboBox1->GetItems()->AddItem(long(1)); |
208. How can I specify the minimum width for the column, if I use WidthAutoResize property
| C++ |
|---|
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->PutMinHeightList(304); spComboBox1->PutColumnAutoResize(VARIANT_TRUE); EXCOMBOBOXLib::IColumnPtr var_Column = ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"Auto"))); var_Column->PutWidthAutoResize(VARIANT_TRUE); var_Column->PutMinWidthAutoResize(32); spComboBox1->GetItems()->AddItem(long(0)); spComboBox1->GetItems()->AddItem(long(1)); |
207. Is there any option to resize the column based on its data, captions
| C++ |
|---|
/* Copy and paste the following directives to your header file as it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library' #import <ExComboBox.dll> using namespace EXCOMBOBOXLib; */ EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown(); spComboBox1->PutMinHeightList(304); spComboBox1->PutColumnAutoResize(VARIANT_TRUE); ((EXCOMBOBOXLib::IColumnPtr)(spComboBox1->GetColumns()->Add(L"A")))->PutWidthAutoResize(VARIANT_TRUE); spComboBox1->GetItems()->AddItem(long(0)); spComboBox1->GetItems()->AddItem(long(1)); |
206. How can I align the icon in the column's header in the center
| C++ |
|---|
/*
Copy and paste the following directives to your header file as
it defines the namespace 'EXCOMBOBOXLib' for the library: 'ExComboBox 1.0 Control Library'
#import <ExComboBox.dll>
using namespace EXCOMBOBOXLib;
*/
EXCOMBOBOXLib::IComboBoxPtr spComboBox1 = GetDlgItem(IDC_COMBOBOX1)->GetControlUnknown();
spComboBox1->PutMinHeightList(304);
spComboBox1->PutColumnAutoResize(VARIANT_TRUE);
spComboBox1->Images(_bstr_t("gBJJg |