The source code that follows the sample form image, is automatically generated from the DFM file only.
------------------------------------
// CPP
//------------------------------------
//VCL Form Converter, by Luigi Bianchi (Copyright, 2000-2013)
//// !!!!!!!!!!!!!!!!!!!!!!!!!!!!YOU MUST INCLUDE THE RESOURCE FILE owl\glyphbtn.rc
//// !!!!!!!!!!!!!!!!!!!!!!!!!!!!YOU MUST INCLUDE THE RESOURCE FILE owl\statusba.rc
#include <owl\dialog.h>
#include "MoreCode.cpp"
#include "MainForm.hpp"
using namespace owl;
TModule owl_mod("DEFAULT_MODULE", GetModuleHandle(0));
TModule *mod = 0;
//{{Implementation}}
// ---------------------------
//
// ---------------------------
// ---------------------------
DEFINE_RESPONSE_TABLE1(TTranslateFormName, TDialog)
//INSIDE_RESPONSE_TABLE
EV_COMMAND(IDC_SPEEDBUTTON1, CmSpeedButton1),
EV_COMMAND(IDOK, CmBitBtn1),
EV_COMMAND(IDCANCEL, CmBitBtn2),
EV_COMMAND(IDC_CHECKBOX1, CmCheckBox1),
EV_COMMAND(IDC_RADIOBUTTON1, CmRadioButton1),
EV_COMMAND(IDC_CHECKBOX2, CmCheckBox2),
EV_COMMAND(IDC_CHECKBOX3, CmCheckBox3),
EV_COMMAND(IDC_RADIOBUTTON2, CmRadioButton2),
EV_COMMAND(IDC_RADIOBUTTON3, CmRadioButton3),
EV_COMMAND(IDC_CHECKBOX4, CmCheckBox4),
EV_COMMAND(IDC_BUTTON1, CmButton1),
EV_COMMAND(IDC_BUTTON2, CmButton2),
EV_COMMAND(IDC_BUTTON3, CmButton3),
EV_COMMAND(IDC_CIAO1, CmCiao1),
EV_COMMAND(IDC_SUBITEM11, Cmsubitem11),
EV_COMMAND(IDC_SUBITEM21, CmSubitem21),
EV_COMMAND(IDC_PIPPO1, Cmpippo1),
EV_COMMAND(IDC_CIAO221, CmCiao221),
EV_COMMAND(IDC_CIAO131, CmCiao131),
EV_COMMAND(IDC_CIAO141, CmCiao141),
EV_COMMAND(IDC_N11, CmN11),
EV_COMMAND(IDC_CIAO161, CmCiao161),
EV_COMMAND(IDC_CIAO171, CmCiao171),
EV_COMMAND(IDC_CIAO21, Cmciao21),
EV_COMMAND(IDC_CIAO211, Cmciao211),
EV_COMMAND(IDC_MENU221, CmMenu221),
EV_COMMAND(IDC_MENU231, CmMenu231),
EV_COMMAND(IDC_CIAO31, Cmciao31),
EV_COMMAND(IDC_CIAO311, Cmciao311),
EV_COMMAND(IDC_CIAO321, Cmciao321),
EV_COMMAND(IDC_CIAO331, Cmciao331),
EV_COMMAND(IDC_CIAO341, Cmciao341),
EV_COMMAND(IDC_CIAO351, Cmciao351),
EV_COMMAND(IDC_CIAO3511, Cmciao3511),
EV_COMMAND(IDC_CIAO35111, Cmciao35111),
EV_COMMAND(IDC_CIAO351111, Cmciao351111),
EV_WM_PAINT,
EV_WM_CLOSE,
END_RESPONSE_TABLE;
TTranslateFormName::TTranslateFormName(TWindow* parent, TModule* mod) : TDialog(parent, IDC_TTRANSLATEFORMNAME, mod ? mod : &owl_mod)
{
//INSIDE_CONSTRUCTOR
m_pCtlImageList1 = new TImageList(TSize(16, 16), ILC_COLOR, 4, 4);
m_pCtlImageList1->Add(TBitmap(*mod, TResId(IDC_IMAGELIST1_BMP_0)));
m_pCtlImageList1->Add(TBitmap(*mod, TResId(IDC_IMAGELIST1_BMP_1)));
m_pCtlImageList1->Add(TBitmap(*mod, TResId(IDC_IMAGELIST1_BMP_2)));
m_pCtlImageList1->Add(TBitmap(*mod, TResId(IDC_IMAGELIST1_BMP_3)));
m_pCtlImageList1->Add(TBitmap(*mod, TResId(IDC_IMAGELIST1_BMP_4)));
m_pCtlLabel1 = new TStatic(this, IDC_LABEL1);
m_pCtlSpeedButton1 = new TGlyphButton(this, IDC_SPEEDBUTTON1);
m_pCtlBevel1 = new TStatic(this, IDC_BEVEL1);
m_pCtlBevel2 = new TStatic(this, IDC_BEVEL2);
m_pCtlBevel3 = new TStatic(this, IDC_BEVEL3);
m_pCtlBevel4 = new TStatic(this, IDC_BEVEL4);
m_pCtlBevel5 = new TStatic(this, IDC_BEVEL5);
m_pCtlBevel6 = new TStatic(this, IDC_BEVEL6);
m_pCtlBevel7 = new TStatic(this, IDC_BEVEL7);
m_pCtlBevel8 = new TStatic(this, IDC_BEVEL8);
m_pCtlBevel9 = new TStatic(this, IDC_BEVEL9);
m_pCtlBevel10 = new TStatic(this, IDC_BEVEL10);
m_pCtlBevel11 = new TStatic(this, IDC_BEVEL11);
m_pCtlBevel12 = new TStatic(this, IDC_BEVEL12);
m_pCtlBevel13 = new TStatic(this, IDC_BEVEL13);
m_pCtlBevel14 = new TStatic(this, IDC_BEVEL14);
m_pCtlBevel15 = new TStatic(this, IDC_BEVEL15);
m_pCtlBevel16 = new TStatic(this, IDC_BEVEL16);
m_pCtlAnimate1 = new TAnimateCtrl(this, IDC_ANIMATE1);
m_pCtlBitBtn1 = new TGlyphButton(this, IDOK, TGlyphButton::btOk);
m_pCtlBitBtn2 = new TGlyphButton(this, IDCANCEL, TGlyphButton::btCancel);
m_pCtlCheckBox1 = new TCheckBox(this, IDC_CHECKBOX1);
m_pCtlRadioButton1 = new TRadioButton(this, IDC_RADIOBUTTON1);
m_pCtlListBox1 = new TListBox(this, IDC_LISTBOX1);
m_pCtlComboBox1 = new TComboBox(this, IDC_COMBOBOX1);
m_pCtlTreeView1 = new TTreeViewCtrl(this, IDC_TREEVIEW1);
m_pCtlListView1 = new TListViewCtrl(this, IDC_LISTVIEW1);
m_pCtlRichEdit1 = new TRichEdit(this, IDC_RICHEDIT1);
m_pCtlScrollBar1 = new TScrollBar(this, IDC_SCROLLBAR1);
m_pCtlScrollBar2 = new TScrollBar(this, IDC_SCROLLBAR2);
m_pCtlEdit2 = new TEdit(this, IDC_EDIT2);
m_pCtlEdit3 = new TEdit(this, IDC_EDIT3);
m_pCtlTabControl1 = new TTabControl(this, IDC_TABCONTROL1);
m_pCtlTrackBar1 = new THSlider(this, IDC_TRACKBAR1);
m_pCtlMonthCalendar1 = new TMonthCalendar(this, IDC_MONTHCALENDAR1);
m_pCtlDateTimePicker1 = new TDateTimePicker(this, IDC_DATETIMEPICKER1);
m_pCtlProgressBar1 = new TProgressBar(this, IDC_PROGRESSBAR1);
m_pCtlPanel1 = new TStatic(this, IDC_PANEL1);
m_pCtlCheckBox2 = new TCheckBox(this, IDC_CHECKBOX2);
m_pCtlCheckBox3 = new TCheckBox(this, IDC_CHECKBOX3);
m_pCtlRadioButton2 = new TRadioButton(this, IDC_RADIOBUTTON2);
m_pCtlRadioButton3 = new TRadioButton(this, IDC_RADIOBUTTON3);
m_pCtlCheckBox4 = new TCheckBox(this, IDC_CHECKBOX4);
m_pCtlTabControl2 = new TTabControl(this, IDC_TABCONTROL2);
m_pCtlMemo3 = new TEdit(this, IDC_MEMO3);
m_pCtlProgressBar2 = new TProgressBar(this, IDC_PROGRESSBAR2);
m_pCtlCSpinEdit1 = new TUpDown(this, IDC_CSPINEDIT1);
m_pCtlTabControl3 = new TTabControl(this, IDC_TABCONTROL3);
m_pCtlEdit4 = new TEdit(this, IDC_EDIT4);
m_pCtlUpDown1 = new TUpDown(this, IDC_UPDOWN1);
m_pCtlPanel2 = new TStatic(this, IDC_PANEL2);
}
void TTranslateFormName::SetupWindow()
{
TDialog::SetupWindow();
//INSIDE_SETUP_WINDOW
m_pCtlSpeedButton1->SetLayoutStyle(TGlyphButton::lsH_STSG);
m_pCtlSpeedButton1->SetGlyph(TResId(IDC_SPEEDBUTTON1));
{
HWND hWndStatusBar1 = GetDlgItem(IDC_STATUSBAR1);
::SendMessage(hWndStatusBar1, SB_SIMPLE, 0, 0);
int nStatusBar1_Parts[3];
int size = 0;
size += 50;
nStatusBar1_Parts[0] = size;
size += 200;
nStatusBar1_Parts[1] = size;
size += 150;
nStatusBar1_Parts[2] = size;
::SendMessage(hWndStatusBar1, SB_SETPARTS, 3, (LPARAM)nStatusBar1_Parts);
::SendMessage(hWndStatusBar1, SB_SETTEXT, 0, (LPARAM)(LPCSTR)TEXT("Panel 1"));
::SendMessage(hWndStatusBar1, SB_SETTEXT, 1, (LPARAM)(LPCSTR)TEXT("Panel 2"));
::SendMessage(hWndStatusBar1, SB_SETTEXT, 2, (LPARAM)(LPCSTR)TEXT("Panel 3"));
}
{
HWND hWndHeaderControl1 = GetDlgItem(IDC_HEADERCONTROL1);
HDITEM m_pCtlHeaderControl1Item;
ZeroMemory(&m_pCtlHeaderControl1Item, sizeof(HDITEM));
m_pCtlHeaderControl1Item.mask = HDI_FORMAT | HDI_TEXT | HDI_WIDTH;
m_pCtlHeaderControl1Item.cxy = 80;
m_pCtlHeaderControl1Item.pszText = TEXT("Section 1");
Header_InsertItem(hWndHeaderControl1, 0, &m_pCtlHeaderControl1Item);
m_pCtlHeaderControl1Item.cxy = 73;
m_pCtlHeaderControl1Item.pszText = TEXT("Section 2");
Header_InsertItem(hWndHeaderControl1, 1, &m_pCtlHeaderControl1Item);
}
m_pCtlAnimate1->Open(TResId(IDC_ANIMATE1));
m_pCtlAnimate1->Play(0, 1, 1);
hBmpImage1ST = LoadMappedBitmap(mod ? *mod : owl_mod, IDC_IMAGE1ST);
hBmpImageNST = LoadMappedBitmap(mod ? *mod : owl_mod, IDC_IMAGENST);
m_pCtlBitBtn1->SetLayoutStyle(TGlyphButton::lsH_SGST);
m_pCtlBitBtn2->SetLayoutStyle(TGlyphButton::lsH_SGST);
m_pCtlCheckBox1->SetCheck(0);
m_pCtlRadioButton1->SetCheck(0);
{
m_pCtlListBox1->AddString(TEXT("ListBox Item 0"));
m_pCtlListBox1->AddString(TEXT("ListBox Item 1"));
m_pCtlListBox1->AddString(TEXT("ListBox Item 2"));
m_pCtlListBox1->AddString(TEXT("ListBox Item 3"));
m_pCtlListBox1->AddString(TEXT("ListBox Item 4"));
m_pCtlListBox1->AddString(TEXT("ListBox Item 5"));
m_pCtlListBox1->AddString(TEXT("ListBox Item 6"));
m_pCtlListBox1->AddString(TEXT("ListBox Item 7"));
m_pCtlListBox1->AddString(TEXT("ListBox Item 8"));
m_pCtlListBox1->AddString(TEXT("ListBox Item 9"));
m_pCtlListBox1->AddString(TEXT("ListBox Item 10"));
}
{
m_pCtlComboBox1->AddString(TEXT("ComboBox Item 0"));
m_pCtlComboBox1->AddString(TEXT("ComboBox Item 1"));
m_pCtlComboBox1->AddString(TEXT("ComboBox Item 2"));
m_pCtlComboBox1->AddString(TEXT("ComboBox Item 3"));
m_pCtlComboBox1->AddString(TEXT("ComboBox Item 4"));
m_pCtlComboBox1->AddString(TEXT("ComboBox Item 5"));
m_pCtlComboBox1->AddString(TEXT("ComboBox Item 6"));
m_pCtlComboBox1->AddString(TEXT("ComboBox Item 7"));
m_pCtlComboBox1->AddString(TEXT("ComboBox Item 8"));
m_pCtlComboBox1->AddString(TEXT("ComboBox Item 9"));
m_pCtlComboBox1->AddString(TEXT("ComboBox Item 10"));
m_pCtlComboBox1->AddString(TEXT("ComboBox Item 11"));
m_pCtlComboBox1->SetSelIndex(1);
}
{
HTREEITEM m_pCtlTreeView1TreeItemPrev = (HTREEITEM)TVI_FIRST;
HTREEITEM m_pCtlTreeView1TreeItemPrevRootItem = NULL;
HTREEITEM m_pCtlTreeView1TreeItemPrevLev2Item = NULL;
TV_INSERTSTRUCT m_pCtlTreeView1InsertStruct;
ZeroMemory(&m_pCtlTreeView1InsertStruct, sizeof(TV_INSERTSTRUCT));
m_pCtlTreeView1InsertStruct.item.mask = TVIF_TEXT | TVIF_PARAM | TVIF_IMAGE | TVIF_SELECTEDIMAGE;
m_pCtlTreeView1InsertStruct.item.pszText = TEXT("item1");
m_pCtlTreeView1InsertStruct.item.iImage = 0;
m_pCtlTreeView1InsertStruct.item.state = -1;
m_pCtlTreeView1InsertStruct.hParent = TVI_ROOT; //0
m_pCtlTreeView1TreeItemPrev = m_pCtlTreeView1->InsertItem(&m_pCtlTreeView1InsertStruct);
m_pCtlTreeView1TreeItemPrevRootItem = m_pCtlTreeView1TreeItemPrev;
m_pCtlTreeView1InsertStruct.item.pszText = TEXT("si11");
m_pCtlTreeView1InsertStruct.item.iImage = 1;
m_pCtlTreeView1InsertStruct.item.state = -1;
m_pCtlTreeView1InsertStruct.hParent = m_pCtlTreeView1TreeItemPrevRootItem;
m_pCtlTreeView1TreeItemPrev = m_pCtlTreeView1->InsertItem(&m_pCtlTreeView1InsertStruct);
m_pCtlTreeView1TreeItemPrevLev2Item = m_pCtlTreeView1TreeItemPrev;
m_pCtlTreeView1InsertStruct.item.pszText = TEXT("si12");
m_pCtlTreeView1InsertStruct.item.iImage = 0;
m_pCtlTreeView1InsertStruct.item.state = -1;
m_pCtlTreeView1InsertStruct.hParent = m_pCtlTreeView1TreeItemPrevRootItem;
m_pCtlTreeView1TreeItemPrev = m_pCtlTreeView1->InsertItem(&m_pCtlTreeView1InsertStruct);
m_pCtlTreeView1TreeItemPrevLev2Item = m_pCtlTreeView1TreeItemPrev;
m_pCtlTreeView1InsertStruct.item.pszText = TEXT("si121");
m_pCtlTreeView1InsertStruct.item.iImage = 2;
m_pCtlTreeView1InsertStruct.item.state = 2;
m_pCtlTreeView1InsertStruct.hParent = m_pCtlTreeView1TreeItemPrevLev2Item;
m_pCtlTreeView1TreeItemPrev = m_pCtlTreeView1->InsertItem(&m_pCtlTreeView1InsertStruct);
m_pCtlTreeView1InsertStruct.item.pszText = TEXT("si122");
m_pCtlTreeView1InsertStruct.item.iImage = 0;
m_pCtlTreeView1InsertStruct.item.state = -1;
m_pCtlTreeView1InsertStruct.hParent = m_pCtlTreeView1TreeItemPrevLev2Item;
m_pCtlTreeView1TreeItemPrev = m_pCtlTreeView1->InsertItem(&m_pCtlTreeView1InsertStruct);
m_pCtlTreeView1InsertStruct.item.pszText = TEXT("si1221");
m_pCtlTreeView1InsertStruct.item.iImage = 0;
m_pCtlTreeView1InsertStruct.item.state = -1;
m_pCtlTreeView1InsertStruct.hParent = m_pCtlTreeView1TreeItemPrevLev2Item;
m_pCtlTreeView1TreeItemPrev = m_pCtlTreeView1->InsertItem(&m_pCtlTreeView1InsertStruct);
m_pCtlTreeView1InsertStruct.item.pszText = TEXT("si13");
m_pCtlTreeView1InsertStruct.item.iImage = 0;
m_pCtlTreeView1InsertStruct.item.state = -1;
m_pCtlTreeView1InsertStruct.hParent = m_pCtlTreeView1TreeItemPrevRootItem;
m_pCtlTreeView1TreeItemPrev = m_pCtlTreeView1->InsertItem(&m_pCtlTreeView1InsertStruct);
m_pCtlTreeView1TreeItemPrevLev2Item = m_pCtlTreeView1TreeItemPrev;
m_pCtlTreeView1InsertStruct.item.pszText = TEXT("item2");
m_pCtlTreeView1InsertStruct.item.iImage = 0;
m_pCtlTreeView1InsertStruct.item.state = -1;
m_pCtlTreeView1InsertStruct.hParent = TVI_ROOT; //0
m_pCtlTreeView1TreeItemPrev = m_pCtlTreeView1->InsertItem(&m_pCtlTreeView1InsertStruct);
m_pCtlTreeView1TreeItemPrevRootItem = m_pCtlTreeView1TreeItemPrev;
m_pCtlTreeView1InsertStruct.item.pszText = TEXT("si21");
m_pCtlTreeView1InsertStruct.item.iImage = 0;
m_pCtlTreeView1InsertStruct.item.state = -1;
m_pCtlTreeView1InsertStruct.hParent = m_pCtlTreeView1TreeItemPrevRootItem;
m_pCtlTreeView1TreeItemPrev = m_pCtlTreeView1->InsertItem(&m_pCtlTreeView1InsertStruct);
m_pCtlTreeView1TreeItemPrevLev2Item = m_pCtlTreeView1TreeItemPrev;
m_pCtlTreeView1InsertStruct.item.pszText = TEXT("si22");
m_pCtlTreeView1InsertStruct.item.iImage = 0;
m_pCtlTreeView1InsertStruct.item.state = -1;
m_pCtlTreeView1InsertStruct.hParent = m_pCtlTreeView1TreeItemPrevRootItem;
m_pCtlTreeView1TreeItemPrev = m_pCtlTreeView1->InsertItem(&m_pCtlTreeView1InsertStruct);
m_pCtlTreeView1TreeItemPrevLev2Item = m_pCtlTreeView1TreeItemPrev;
m_pCtlTreeView1InsertStruct.item.pszText = TEXT("si221");
m_pCtlTreeView1InsertStruct.item.iImage = 0;
m_pCtlTreeView1InsertStruct.item.state = -1;
m_pCtlTreeView1InsertStruct.hParent = m_pCtlTreeView1TreeItemPrevLev2Item;
m_pCtlTreeView1TreeItemPrev = m_pCtlTreeView1->InsertItem(&m_pCtlTreeView1InsertStruct);
m_pCtlTreeView1InsertStruct.item.pszText = TEXT("si222");
m_pCtlTreeView1InsertStruct.item.iImage = 0;
m_pCtlTreeView1InsertStruct.item.state = -1;
m_pCtlTreeView1InsertStruct.hParent = m_pCtlTreeView1TreeItemPrevLev2Item;
m_pCtlTreeView1TreeItemPrev = m_pCtlTreeView1->InsertItem(&m_pCtlTreeView1InsertStruct);
m_pCtlTreeView1InsertStruct.item.pszText = TEXT("si23");
m_pCtlTreeView1InsertStruct.item.iImage = 0;
m_pCtlTreeView1InsertStruct.item.state = -1;
m_pCtlTreeView1InsertStruct.hParent = m_pCtlTreeView1TreeItemPrevRootItem;
m_pCtlTreeView1TreeItemPrev = m_pCtlTreeView1->InsertItem(&m_pCtlTreeView1InsertStruct);
m_pCtlTreeView1TreeItemPrevLev2Item = m_pCtlTreeView1TreeItemPrev;
m_pCtlTreeView1->SetImageList(TVSIL_NORMAL, *m_pCtlImageList1);
}
{
DWORD ex_style = m_pCtlListView1->GetExtStyle();
m_pCtlListView1->SetExtStyle(0xFFFFFFFF, ex_style | LVS_EX_FULLROWSELECT | LVS_EX_GRIDLINES);
m_pCtlListView1->SetImageList(*m_pCtlImageList1, LVSIL_SMALL);
m_pCtlListView1->SetImageList(*m_pCtlImageList1, LVSIL_NORMAL);
TLvColumn ListView1Col;
ListView1Col.mask = LVCF_FMT | LVCF_TEXT | LVCF_WIDTH;
ListView1Col.pszText = TEXT("Column 1");
ListView1Col.cx = 100;
m_pCtlListView1->InsertColumn(0, ListView1Col);
ListView1Col.pszText = TEXT("Column 2");
ListView1Col.cx = 100;
m_pCtlListView1->InsertColumn(1, ListView1Col);
TLvItem lviListView1;
lviListView1.mask = LVIF_IMAGE | LVIF_TEXT;
lviListView1.iItem = 0;
lviListView1.iImage = 0;
lviListView1.pszText = TEXT("1");
m_pCtlListView1->InsertItem(lviListView1);
lviListView1.iItem = 1;
lviListView1.iImage = 1;
lviListView1.pszText = TEXT("2");
m_pCtlListView1->InsertItem(lviListView1);
lviListView1.iItem = 2;
lviListView1.iImage = 2;
lviListView1.pszText = TEXT("3");
m_pCtlListView1->InsertItem(lviListView1);
lviListView1.iItem = 3;
lviListView1.iImage = 3;
lviListView1.pszText = TEXT("4");
m_pCtlListView1->InsertItem(lviListView1);
}
{
TCHAR *sz_tmp = TEXT(\
"RichEdit1\r\n"\
"Line1\r\n"\
"Line2\r\n"\
"Line3\r\n"\
"Line4\r\n"\
"Line5\r\n"\
"Line6\r\n"\
"Line7\r\n"\
"Line8\r\n"\
"Line9\r\n"\
"Line10\r\n"\
"....\r\n"\
"Line100\r\n"\
"....\r\n"\
"Line1000\r\n"\
" \r\n"\
);
m_pCtlRichEdit1->SetText(sz_tmp);
}
m_pCtlScrollBar1->SetRange( 0, 100);
m_pCtlScrollBar1->SetPosition(0);
m_pCtlScrollBar2->SetRange( 0, 100);
m_pCtlScrollBar2->SetPosition(20);
m_pCtlEdit2->SetText(TEXT("Edit2"));
m_pCtlEdit3->SetText(TEXT("Edit3"));
{
TTabItem TabControl1Item(TCIF_TEXT | TCIF_IMAGE);
TabControl1Item.pszText = TEXT("First Tab");
TabControl1Item.iImage = 0;
m_pCtlTabControl1->Insert(TabControl1Item, 0);
TabControl1Item.pszText = TEXT("Second Tab ");
TabControl1Item.iImage = 1;
m_pCtlTabControl1->Insert(TabControl1Item, 1);
TabControl1Item.pszText = TEXT("Third Tab");
TabControl1Item.iImage = 2;
m_pCtlTabControl1->Insert(TabControl1Item, 2);
}
m_pCtlTabControl1->SetSel(1);
m_pCtlTabControl1->SetImageList(*m_pCtlImageList1);
if (0 + 16)
m_pCtlTabControl1->SetItemSize(TSize(0, 16));
{
m_pCtlTrackBar1->SetRange(1, 99);
m_pCtlTrackBar1->SetSel(20, 40);
m_pCtlTrackBar1->SetPosition(55);
m_pCtlTrackBar1->SendMessage(TBM_SETTICFREQ, 10, 0);
m_pCtlTrackBar1->SendMessage(TBM_SETLINESIZE, 7, 0);
m_pCtlTrackBar1->SendMessage(TBM_SETPAGESIZE, 5, 0);
m_pCtlTrackBar1->SendMessage(TBM_SETTHUMBLENGTH, 20, 0);
}
m_pCtlMonthCalendar1->SetBkgndColor(GetSysColor(COLOR_BTNFACE));
::CheckRadioButton(GetHandle(), IDC_RADIOGROUP1 + 1, IDC_RADIOGROUP1 + 4 , IDC_RADIOGROUP1 + 3 + 1);
m_pCtlProgressBar1->SetRange(0, 100);
m_pCtlProgressBar1->SetValue(21);
m_pCtlCheckBox2->SetCheck(0);
m_pCtlCheckBox3->SetCheck(1);
m_pCtlRadioButton2->SetCheck(0);
m_pCtlRadioButton3->SetCheck(1);
m_pCtlCheckBox4->SetCheck(0);
{
TTabItem TabControl2Item(TCIF_TEXT | TCIF_IMAGE);
TabControl2Item.pszText = TEXT("one");
TabControl2Item.iImage = 0;
m_pCtlTabControl2->Insert(TabControl2Item, 0);
TabControl2Item.pszText = TEXT("two");
TabControl2Item.iImage = 1;
m_pCtlTabControl2->Insert(TabControl2Item, 1);
TabControl2Item.pszText = TEXT("three");
TabControl2Item.iImage = 2;
m_pCtlTabControl2->Insert(TabControl2Item, 2);
TabControl2Item.pszText = TEXT("four");
TabControl2Item.iImage = 3;
m_pCtlTabControl2->Insert(TabControl2Item, 3);
TabControl2Item.pszText = TEXT("five");
TabControl2Item.iImage = 4;
m_pCtlTabControl2->Insert(TabControl2Item, 4);
}
m_pCtlTabControl2->SetSel(3);
m_pCtlTabControl2->SetImageList(*m_pCtlImageList1);
if (0 + 0)
m_pCtlTabControl2->SetItemSize(TSize(0, 0));
{
TCHAR *sz_tmp = TEXT(\
"This is a VCL \r\n"\
"memo \r\n"\
"field\r\n"\
"\r\n"\
"This is a VCL \r\n"\
"memo \r\n"\
"field\r\n"\
"\r\n"\
"This is a VCL \r\n"\
"memo \r\n"\
"field\r\n"\
"\r\n"\
" \r\n"\
);
m_pCtlMemo3->SetText(sz_tmp);
}
m_pCtlProgressBar2->SetRange(-100, 100);
m_pCtlProgressBar2->SetValue(0);
m_pCtlCSpinEdit1->SetBuddy(GetDlgItem(IDC_EDIT_IDC_CSPINEDIT1));
m_pCtlCSpinEdit1->SetRange(20, 80);
m_pCtlCSpinEdit1->SetPos(23);
{
TTabItem TabControl3Item(TCIF_TEXT | TCIF_IMAGE);
TabControl3Item.pszText = TEXT("One");
TabControl3Item.iImage = 0;
m_pCtlTabControl3->Insert(TabControl3Item, 0);
TabControl3Item.pszText = TEXT("Two");
TabControl3Item.iImage = 1;
m_pCtlTabControl3->Insert(TabControl3Item, 1);
TabControl3Item.pszText = TEXT("Three");
TabControl3Item.iImage = 2;
m_pCtlTabControl3->Insert(TabControl3Item, 2);
TabControl3Item.pszText = TEXT("Four");
TabControl3Item.iImage = 3;
m_pCtlTabControl3->Insert(TabControl3Item, 3);
}
m_pCtlTabControl3->SetSel(1);
m_pCtlTabControl3->SetImageList(*m_pCtlImageList1);
if (0 + 0)
m_pCtlTabControl3->SetItemSize(TSize(0, 0));
m_pCtlEdit4->SetText(TEXT("23"));
m_pCtlUpDown1->SetBuddy(m_pCtlEdit4->GetHandle());
m_pCtlUpDown1->SetRange(20, 80);
m_pCtlUpDown1->SetPos(23);
}
void TTranslateFormName::EvPaint()
{
TDialog::EvPaint();
TClientDC dc(GetHandle());
//INSIDE_PAINT
TRect rectBevel1(111, 4, 111 + 75, 4 + 10);
MapDialogRect(rectBevel1);
dc.DrawEdge(rectBevel1, BDR_RAISEDINNER, BF_RECT);
TRect rectBevel2(111, 19, 111 + 75, 19 + 10);
MapDialogRect(rectBevel2);
dc.DrawEdge(rectBevel2, BDR_SUNKENINNER, BF_RECT);
TRect rectBevel3(543, 121, 543 + 27, 121 + 10);
MapDialogRect(rectBevel3);
dc.DrawEdge(rectBevel3, BDR_SUNKENINNER, BF_RECT);
TRect rectBevel4(541, 12, 541 + 27, 12 + 10);
MapDialogRect(rectBevel4);
dc.DrawEdge(rectBevel4, BDR_RAISEDINNER, BF_RECT);
TRect rectBevel5(543, 135, 543 + 27, 135 + 10);
MapDialogRect(rectBevel5);
dc.DrawEdge(rectBevel5, BDR_SUNKENINNER, BF_BOTTOM);
TRect rectBevel6(541, 27, 541 + 27, 27 + 10);
MapDialogRect(rectBevel6);
dc.DrawEdge(rectBevel6, BDR_RAISEDINNER, BF_BOTTOM);
TRect rectBevel7(543, 149, 543 + 27, 149 + 10);
MapDialogRect(rectBevel7);
dc.DrawEdge(rectBevel7, BDR_SUNKENINNER, BF_RECT);
TRect rectBevel8(541, 41, 541 + 27, 41 + 10);
MapDialogRect(rectBevel8);
dc.DrawEdge(rectBevel8, BDR_RAISEDINNER, BF_RECT);
TRect rectBevel9(543, 163, 543 + 27, 163 + 10);
MapDialogRect(rectBevel9);
dc.DrawEdge(rectBevel9, BDR_SUNKENINNER, BF_LEFT);
TRect rectBevel10(541, 55, 541 + 27, 55 + 10);
MapDialogRect(rectBevel10);
dc.DrawEdge(rectBevel10, BDR_RAISEDINNER, BF_LEFT);
TRect rectBevel11(543, 177, 543 + 27, 177 + 10);
MapDialogRect(rectBevel11);
dc.DrawEdge(rectBevel11, BDR_SUNKENINNER, BF_RIGHT);
TRect rectBevel12(541, 69, 541 + 27, 69 + 10);
MapDialogRect(rectBevel12);
dc.DrawEdge(rectBevel12, BDR_RAISEDINNER, BF_RIGHT);
TRect rectBevel13(543, 192, 543 + 27, 192 + 10);
MapDialogRect(rectBevel13);
dc.DrawEdge(rectBevel13, BDR_SUNKENINNER, BF_BOTTOM);
TRect rectBevel14(541, 83, 541 + 27, 83 + 10);
MapDialogRect(rectBevel14);
dc.DrawEdge(rectBevel14, BDR_RAISEDINNER, BF_BOTTOM);
TRect rectBevel15(543, 206, 543 + 27, 206 + 10);
MapDialogRect(rectBevel15);
dc.DrawEdge(rectBevel15, BDR_SUNKENINNER, BF_TOP);
TRect rectBevel16(541, 97, 541 + 27, 97 + 10);
MapDialogRect(rectBevel16);
dc.DrawEdge(rectBevel16, BDR_RAISEDINNER, BF_TOP);
{
TRect rectImage1ST(TPoint(447, 190), TSize(70, 70));
MapDialogRect(rectImage1ST);
TDC dcImage1ST(CreateCompatibleDC(dc.GetHDC()));
dcImage1ST.SelectObject(hBmpImage1ST);
TBitmap bmpImage1ST(hBmpImage1ST);
dc.StretchBlt(rectImage1ST, dcImage1ST, TRect(TPoint(), bmpImage1ST.Size()), SRCCOPY);
}
{
TRect rectImageNST(TPoint(521, 215), TSize(48, 44));
MapDialogRect(rectImageNST);
TDC dcImageNST(CreateCompatibleDC(dc.GetHDC()));
dcImageNST.SelectObject(hBmpImageNST);
TBitmap bmpImageNST(hBmpImageNST);
dc.BitBlt(rectImageNST, dcImageNST, TPoint(), SRCCOPY);
}
TRect rectPanel1(437, 0, 437 + 49, 0 + 79);
MapDialogRect(rectPanel1);
dc.DrawEdge(rectPanel1, BDR_RAISEDINNER | 0x00, BF_RECT);
TRect rectPanel2(442, 44, 442 + 38, 44 + 30);
MapDialogRect(rectPanel2);
dc.DrawEdge(rectPanel2, BDR_SUNKENINNER | 0x00, BF_RECT);
}
void TTranslateFormName::Destroy(int retVal)
{
TDialog::Destroy(retVal);
//INSIDE_DESTROY
delete m_pCtlImageList1;
delete m_pCtlLabel1;
delete m_pCtlSpeedButton1;
delete m_pCtlBevel1;
delete m_pCtlBevel2;
delete m_pCtlBevel3;
delete m_pCtlBevel4;
delete m_pCtlBevel5;
delete m_pCtlBevel6;
delete m_pCtlBevel7;
delete m_pCtlBevel8;
delete m_pCtlBevel9;
delete m_pCtlBevel10;
delete m_pCtlBevel11;
delete m_pCtlBevel12;
delete m_pCtlBevel13;
delete m_pCtlBevel14;
delete m_pCtlBevel15;
delete m_pCtlBevel16;
delete m_pCtlAnimate1;
delete m_pCtlBitBtn1;
delete m_pCtlBitBtn2;
delete m_pCtlCheckBox1;
delete m_pCtlRadioButton1;
delete m_pCtlListBox1;
delete m_pCtlComboBox1;
delete m_pCtlTreeView1;
delete m_pCtlListView1;
delete m_pCtlRichEdit1;
delete m_pCtlScrollBar1;
delete m_pCtlScrollBar2;
delete m_pCtlEdit2;
delete m_pCtlEdit3;
delete m_pCtlTabControl1;
delete m_pCtlTrackBar1;
delete m_pCtlMonthCalendar1;
delete m_pCtlDateTimePicker1;
delete m_pCtlProgressBar1;
delete m_pCtlPanel1;
delete m_pCtlCheckBox2;
delete m_pCtlCheckBox3;
delete m_pCtlRadioButton2;
delete m_pCtlRadioButton3;
delete m_pCtlCheckBox4;
delete m_pCtlTabControl2;
delete m_pCtlMemo3;
delete m_pCtlProgressBar2;
delete m_pCtlCSpinEdit1;
delete m_pCtlTabControl3;
delete m_pCtlEdit4;
delete m_pCtlUpDown1;
delete m_pCtlPanel2;
}
void TTranslateFormName::EvClose()
{
TDialog::EvClose();
//INSIDE_CLOSE
}
//RESPONSE_TABLE_ENTRIES
void TTranslateFormName::CmSpeedButton1()
{
}
void TTranslateFormName::CmBitBtn1()
{
}
void TTranslateFormName::CmBitBtn2()
{
}
void TTranslateFormName::CmCheckBox1()
{
}
void TTranslateFormName::CmRadioButton1()
{
}
void TTranslateFormName::CmCheckBox2()
{
}
void TTranslateFormName::CmCheckBox3()
{
}
void TTranslateFormName::CmRadioButton2()
{
}
void TTranslateFormName::CmRadioButton3()
{
}
void TTranslateFormName::CmCheckBox4()
{
}
void TTranslateFormName::CmButton1()
{
}
void TTranslateFormName::CmButton2()
{
}
void TTranslateFormName::CmButton3()
{
}
void TTranslateFormName::CmCiao1()
{
}
void TTranslateFormName::Cmsubitem11()
{
}
void TTranslateFormName::CmSubitem21()
{
}
void TTranslateFormName::Cmpippo1()
{
}
void TTranslateFormName::CmCiao221()
{
}
void TTranslateFormName::CmCiao131()
{
}
void TTranslateFormName::CmCiao141()
{
}
void TTranslateFormName::CmN11()
{
}
void TTranslateFormName::CmCiao161()
{
}
void TTranslateFormName::CmCiao171()
{
}
void TTranslateFormName::Cmciao21()
{
}
void TTranslateFormName::Cmciao211()
{
}
void TTranslateFormName::CmMenu221()
{
}
void TTranslateFormName::CmMenu231()
{
}
void TTranslateFormName::Cmciao31()
{
}
void TTranslateFormName::Cmciao311()
{
}
void TTranslateFormName::Cmciao321()
{
}
void TTranslateFormName::Cmciao331()
{
}
void TTranslateFormName::Cmciao341()
{
}
void TTranslateFormName::Cmciao351()
{
}
void TTranslateFormName::Cmciao3511()
{
}
void TTranslateFormName::Cmciao35111()
{
}
void TTranslateFormName::Cmciao351111()
{
}
©
Copyright (2000-2013), Luigi Bianchi
Last Update: May 28,
2013