├── Bin ├── wtlbuilder.cfg ├── runfirsttime.bat ├── Template │ ├── CDialogImpl │ │ ├── CDialogImpl.wff │ │ ├── CDialogImpl.bmp │ │ ├── CDialogImpl.cpp │ │ └── CDialogImpl.h │ ├── CWindowImpl │ │ ├── CWindowImpl.wff │ │ └── CWindowImpl.ico │ ├── CMainFrame │ │ ├── CMainFrame.ico │ │ └── CMainFrame.wff │ ├── CSplashWnd │ │ ├── csplashwnd.ico │ │ ├── csplashwnd.wff │ │ └── csplashwnd.js │ ├── CFrameWindowImpl │ │ ├── CFrameWindowImpl.wff │ │ └── CFrameWindowImpl.ico │ ├── CMDIChildWindowImpl │ │ ├── CMDIChildWindowImpl.wff │ │ ├── CMDIChildWindowImpl.ico │ │ ├── CMDIChildWindowImpl.h │ │ └── CMDIChildWindowImpl.cpp │ ├── CMDIFrameWindowImpl │ │ ├── CMDIFrameWindowImpl.wff │ │ ├── CMDIFrameWindowImpl.ico │ │ ├── CMDIFrameWindowImpl.h │ │ └── CMDIFrameWindowImpl.cpp │ ├── CDialogTemplate │ │ ├── CDialogTemplate.bmp │ │ └── CDialogTemplate.h │ └── CStringsEdit │ │ └── CStringsEdit.h └── Script │ ├── LangID.js │ ├── CMenu.js │ ├── WindowClass.js │ ├── CToolPanel.js │ ├── CPropertyList.js │ ├── checkProperty.js │ ├── CWindow.js │ ├── CHotKeyCtrl.js │ ├── CStatusBarCtrl.js │ ├── SplitterBar.js │ ├── CTreeListView.js │ ├── CSortListViewCtrl.js │ └── CStripedListView.js ├── version.h ├── AppWiz └── Files │ ├── Templates │ └── 1033 │ │ ├── root.h │ │ ├── root.ico │ │ ├── rootDoc.ico │ │ ├── toolbar.bmp │ │ ├── MainDlg.wff │ │ ├── rootidl.h │ │ ├── AboutDlg.wff │ │ ├── View.wff │ │ ├── root.rgs │ │ ├── Frame.wff │ │ ├── rootps.def │ │ ├── ChildFrm.wff │ │ ├── stdafx.cpp │ │ ├── root.idl │ │ ├── rootps.mk │ │ ├── Templates.inf │ │ ├── resource.h │ │ ├── AboutDlg.cpp │ │ ├── LayoutMgr.cpp │ │ ├── AboutDlg.h │ │ └── Ribbon.h │ ├── Images │ ├── spacer.gif │ ├── WTL10AppWiz.png │ └── WTL10AppWiz_Background.png │ ├── WTL10AppWiz4WTLBuilder.ico │ ├── WTL10AppWiz4WTLBuilder.vsdir │ └── WTL10AppWiz4WTLBuilder.vsz ├── MainFrm.cpp ├── aboutdlg.cpp ├── res ├── Grid.ico ├── Open.ico ├── Save.ico ├── arrow.bmp ├── clear.ico ├── icon1.ico ├── icon4.ico ├── logo.bmp ├── new.ico ├── prop.ico ├── GSGrid.ico ├── GSHoriz.ico ├── GSVert.ico ├── SaveAll.ico ├── Toolbar.bmp ├── TopSide.ico ├── default.bmp ├── infomsg.ico ├── warnmsg.bmp ├── warnmsg.ico ├── AlignTop.ico ├── AllSides.ico ├── BottomSide.ico ├── CenterVert.ico ├── HorizOrder.ico ├── HorizSize.ico ├── LeftSide.ico ├── RightSide.ico ├── SameSize.ico ├── TabOrder.ico ├── ToParent.ico ├── VertOrder.ico ├── VertSize.ico ├── WTLBuilder.ico ├── closeform.ico ├── showform.ico ├── sortform.ico ├── toolbar1.bmp ├── AigmentRight.ico ├── AligmentLeft.ico ├── CenterHoriz.ico ├── ChangeParent.ico ├── GSLeftRight.ico ├── GSTopBottom.ico ├── ToBackground.ico ├── ToForeground.ico ├── WTLBuilder1.ico ├── aligntoolbar.bmp ├── AligmentBottom.ico ├── CenterGroupVert.ico ├── CreationOrder.ico ├── DistGroupHoriz.ico ├── DistGroupVert.ico ├── HorizOrderRight.ico ├── VertOrderBottom.ico ├── CenterGroupHoriz.ico └── WTLBuilder.exe.manifest ├── Package ├── default.bmp ├── StdAfx.cpp ├── StdAfx.h ├── PackageApi.h ├── resource.h ├── Package.h └── Package.vcxproj.filters ├── SDK ├── Utils │ ├── ButtonST.h │ ├── StdAfx.cpp │ ├── StdAfx.h │ ├── File.h │ ├── InterfaceWrapperTools.h │ ├── CFile.cpp │ ├── Arrow.h │ ├── InitTempl.h │ └── LayoutMgr.cpp ├── Property │ ├── Res │ │ ├── PLUS.BMP │ │ ├── BUTTON.BMP │ │ └── MINUS.BMP │ ├── warning.h │ ├── StdAfx.cpp │ ├── Property.h │ ├── Resource.h │ ├── LineTracker.h │ ├── FontList.h │ ├── StdAfx.h │ ├── PreReadForm.cpp │ ├── PropertyListEdit.h │ ├── StdPropClass.h │ ├── PropertyTextEdit.h │ ├── Layout.h │ ├── bitvect.H │ ├── PropertyTextEdit.cpp │ └── Property.cpp └── Event │ ├── StdAfx.cpp │ ├── StdAfx.h │ ├── Event.h │ ├── Event.cpp │ └── Event.vcxproj.filters ├── Forms └── Form │ ├── RES │ ├── form.bmp │ ├── form.ico │ ├── form1.bmp │ └── icon1.ico │ ├── stdafx.cpp │ ├── Forms.h │ ├── resource.h │ ├── SplashWnd.h │ ├── DialogImpl.h │ ├── FrameWindowImpl.h │ ├── MDIFrameWindowImpl.h │ ├── MDIChildWindowImpl.h │ ├── Forms.cpp │ ├── stdafx.h │ └── WindowImpl.h ├── Components ├── StdCtrl │ ├── PLUS.BMP │ ├── edit.bmp │ ├── menu.bmp │ ├── minus.BMP │ ├── minus.ico │ ├── plus.ico │ ├── ARROWD.BMP │ ├── ARROWU.BMP │ ├── arrowd.ico │ ├── arrowu.ico │ ├── button.bmp │ ├── listbox.bmp │ ├── picture.bmp │ ├── static.bmp │ ├── stdctrl.bmp │ ├── tabctrl.bmp │ ├── toolbar.bmp │ ├── update.ico │ ├── window.bmp │ ├── checkbox.bmp │ ├── combobox.bmp │ ├── datetime.bmp │ ├── groupbox.bmp │ ├── headerctrl.bmp │ ├── horsplit.bmp │ ├── hotkeyctrl.bmp │ ├── hscrollbar.bmp │ ├── hyperlin.bmp │ ├── imagelis.bmp │ ├── listview.bmp │ ├── richedit.bmp │ ├── splitter.bmp │ ├── updownctrl.bmp │ ├── vscrollb.bmp │ ├── animatectrl.bmp │ ├── imagebutton.bmp │ ├── progressbar.bmp │ ├── radiobutton.bmp │ ├── trackbarctrl.bmp │ ├── treeviewctrl.bmp │ ├── Res │ │ └── EditListBox.bmp │ ├── panecontainer.bmp │ ├── statusbarctrl.bmp │ ├── stdafx.cpp │ ├── EditListBox.rc │ ├── StdCtrl.cpp │ ├── Window.h │ ├── HotKeyCtrl.h │ ├── TrackBarCtrl.h │ ├── Menu.h │ ├── stdafx.h │ ├── Window.cpp │ ├── PaneContainer.h │ ├── ImageList.h │ ├── StatusBarCtrl.h │ ├── DateTimePicker.h │ ├── CPagesEdit.h │ ├── HyperLink.h │ ├── ProgressBarCtrl.h │ ├── Menu.cpp │ ├── ToolBarCtrl.h │ ├── scrollbar.h │ ├── AnimateCtrl.h │ ├── TrackBarCtrl.cpp │ ├── UpDownCtrl.h │ ├── HotKeyCtrl.cpp │ └── Edit.h ├── ViksoeCtrl │ ├── scanfed.bmp │ ├── combobox.bmp │ ├── editlist.bmp │ ├── listview.bmp │ ├── property.bmp │ ├── treelist.bmp │ ├── TreeListView.h │ ├── treeviewctrl.bmp │ ├── Res │ │ └── EditListBox.bmp │ ├── ViksoeCtrl.h │ ├── stdafx.cpp │ ├── resource.h │ ├── EditListBox.rc │ ├── ViksoeCtrl.cpp │ ├── WinXPButton.h │ ├── ShellPropMacro.h │ ├── EditListBoxComp.h │ ├── TreeListComp.h │ ├── stdafx.h │ ├── WinXPButton.cpp │ ├── FadeStateButton.cpp │ └── TreeListComp.cpp ├── DecorativeCtrl │ ├── minus.ico │ ├── panel.bmp │ ├── plus.ico │ ├── GridCtrl.cpp │ ├── GridCtrl.h │ ├── Masked.cpp │ ├── arrowd.ico │ ├── arrowu.ico │ ├── buttonst.bmp │ ├── calendar.bmp │ ├── dateedit.bmp │ ├── gridctrl.bmp │ ├── listview.bmp │ ├── maskedit.bmp │ ├── striplv.bmp │ ├── tabctrl.bmp │ ├── update.ico │ ├── imageview.bmp │ ├── panelhost.bmp │ ├── colorbutton.bmp │ ├── res │ │ └── EditListBox.bmp │ ├── stdafx.cpp │ ├── DecorativeCtrl.cpp │ ├── EditListBox.rc │ ├── stdafx.h │ ├── resource.h │ ├── CButtonST.h │ └── TabPanel.cpp └── WTLBuilderCtrl │ ├── propbox.bmp │ ├── toolpanel.bmp │ ├── stdafx.cpp │ ├── resource.h │ ├── WTLBuilderCtrls.cpp │ ├── stdafx.h │ ├── ToolPanel.h │ ├── PropertyBox.h │ ├── ToolPanel.cpp │ ├── ImgListCtrl.cpp │ └── PropertyBox.cpp ├── README.md ├── stdafx.cpp ├── ToolPanel.cpp ├── WTLBuilderView.cpp ├── Config.h ├── stdafx.h ├── WTLBuilderView.h ├── ValueListHelper.h ├── ModuleLoader.h ├── wtl └── wtl_message_reflection.h ├── ValueListHelper.cpp └── Config.cpp /Bin/wtlbuilder.cfg: -------------------------------------------------------------------------------- 1 | [Code Generation] 2 | m_Prefix=0 3 | -------------------------------------------------------------------------------- /version.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #define VERSION _T("v0.2.2") 3 | -------------------------------------------------------------------------------- /AppWiz/Files/Templates/1033/root.h: -------------------------------------------------------------------------------- 1 | // [!output PROJECT_NAME].h 2 | -------------------------------------------------------------------------------- /MainFrm.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/MainFrm.cpp -------------------------------------------------------------------------------- /aboutdlg.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/aboutdlg.cpp -------------------------------------------------------------------------------- /res/Grid.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/res/Grid.ico -------------------------------------------------------------------------------- /res/Open.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/res/Open.ico -------------------------------------------------------------------------------- /res/Save.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/res/Save.ico -------------------------------------------------------------------------------- /res/arrow.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/res/arrow.bmp -------------------------------------------------------------------------------- /res/clear.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/res/clear.ico -------------------------------------------------------------------------------- /res/icon1.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/res/icon1.ico -------------------------------------------------------------------------------- /res/icon4.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/res/icon4.ico -------------------------------------------------------------------------------- /res/logo.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/res/logo.bmp -------------------------------------------------------------------------------- /res/new.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/res/new.ico -------------------------------------------------------------------------------- /res/prop.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/res/prop.ico -------------------------------------------------------------------------------- /res/GSGrid.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/res/GSGrid.ico -------------------------------------------------------------------------------- /res/GSHoriz.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/res/GSHoriz.ico -------------------------------------------------------------------------------- /res/GSVert.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/res/GSVert.ico -------------------------------------------------------------------------------- /res/SaveAll.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/res/SaveAll.ico -------------------------------------------------------------------------------- /res/Toolbar.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/res/Toolbar.bmp -------------------------------------------------------------------------------- /res/TopSide.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/res/TopSide.ico -------------------------------------------------------------------------------- /res/default.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/res/default.bmp -------------------------------------------------------------------------------- /res/infomsg.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/res/infomsg.ico -------------------------------------------------------------------------------- /res/warnmsg.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/res/warnmsg.bmp -------------------------------------------------------------------------------- /res/warnmsg.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/res/warnmsg.ico -------------------------------------------------------------------------------- /res/AlignTop.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/res/AlignTop.ico -------------------------------------------------------------------------------- /res/AllSides.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/res/AllSides.ico -------------------------------------------------------------------------------- /res/BottomSide.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/res/BottomSide.ico -------------------------------------------------------------------------------- /res/CenterVert.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/res/CenterVert.ico -------------------------------------------------------------------------------- /res/HorizOrder.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/res/HorizOrder.ico -------------------------------------------------------------------------------- /res/HorizSize.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/res/HorizSize.ico -------------------------------------------------------------------------------- /res/LeftSide.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/res/LeftSide.ico -------------------------------------------------------------------------------- /res/RightSide.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/res/RightSide.ico -------------------------------------------------------------------------------- /res/SameSize.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/res/SameSize.ico -------------------------------------------------------------------------------- /res/TabOrder.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/res/TabOrder.ico -------------------------------------------------------------------------------- /res/ToParent.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/res/ToParent.ico -------------------------------------------------------------------------------- /res/VertOrder.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/res/VertOrder.ico -------------------------------------------------------------------------------- /res/VertSize.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/res/VertSize.ico -------------------------------------------------------------------------------- /res/WTLBuilder.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/res/WTLBuilder.ico -------------------------------------------------------------------------------- /res/closeform.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/res/closeform.ico -------------------------------------------------------------------------------- /res/showform.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/res/showform.ico -------------------------------------------------------------------------------- /res/sortform.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/res/sortform.ico -------------------------------------------------------------------------------- /res/toolbar1.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/res/toolbar1.bmp -------------------------------------------------------------------------------- /Bin/runfirsttime.bat: -------------------------------------------------------------------------------- 1 | REM run this as an administrator to associate wff files 2 | wtlbuilder /reg -------------------------------------------------------------------------------- /Package/default.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/Package/default.bmp -------------------------------------------------------------------------------- /SDK/Utils/ButtonST.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/SDK/Utils/ButtonST.h -------------------------------------------------------------------------------- /res/AigmentRight.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/res/AigmentRight.ico -------------------------------------------------------------------------------- /res/AligmentLeft.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/res/AligmentLeft.ico -------------------------------------------------------------------------------- /res/CenterHoriz.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/res/CenterHoriz.ico -------------------------------------------------------------------------------- /res/ChangeParent.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/res/ChangeParent.ico -------------------------------------------------------------------------------- /res/GSLeftRight.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/res/GSLeftRight.ico -------------------------------------------------------------------------------- /res/GSTopBottom.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/res/GSTopBottom.ico -------------------------------------------------------------------------------- /res/ToBackground.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/res/ToBackground.ico -------------------------------------------------------------------------------- /res/ToForeground.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/res/ToForeground.ico -------------------------------------------------------------------------------- /res/WTLBuilder1.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/res/WTLBuilder1.ico -------------------------------------------------------------------------------- /res/aligntoolbar.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/res/aligntoolbar.bmp -------------------------------------------------------------------------------- /Forms/Form/RES/form.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/Forms/Form/RES/form.bmp -------------------------------------------------------------------------------- /Forms/Form/RES/form.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/Forms/Form/RES/form.ico -------------------------------------------------------------------------------- /res/AligmentBottom.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/res/AligmentBottom.ico -------------------------------------------------------------------------------- /res/CenterGroupVert.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/res/CenterGroupVert.ico -------------------------------------------------------------------------------- /res/CreationOrder.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/res/CreationOrder.ico -------------------------------------------------------------------------------- /res/DistGroupHoriz.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/res/DistGroupHoriz.ico -------------------------------------------------------------------------------- /res/DistGroupVert.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/res/DistGroupVert.ico -------------------------------------------------------------------------------- /res/HorizOrderRight.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/res/HorizOrderRight.ico -------------------------------------------------------------------------------- /res/VertOrderBottom.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/res/VertOrderBottom.ico -------------------------------------------------------------------------------- /Forms/Form/RES/form1.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/Forms/Form/RES/form1.bmp -------------------------------------------------------------------------------- /Forms/Form/RES/icon1.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/Forms/Form/RES/icon1.ico -------------------------------------------------------------------------------- /SDK/Property/Res/PLUS.BMP: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/SDK/Property/Res/PLUS.BMP -------------------------------------------------------------------------------- /res/CenterGroupHoriz.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/res/CenterGroupHoriz.ico -------------------------------------------------------------------------------- /Components/StdCtrl/PLUS.BMP: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/Components/StdCtrl/PLUS.BMP -------------------------------------------------------------------------------- /Components/StdCtrl/edit.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/Components/StdCtrl/edit.bmp -------------------------------------------------------------------------------- /Components/StdCtrl/menu.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/Components/StdCtrl/menu.bmp -------------------------------------------------------------------------------- /Components/StdCtrl/minus.BMP: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/Components/StdCtrl/minus.BMP -------------------------------------------------------------------------------- /Components/StdCtrl/minus.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/Components/StdCtrl/minus.ico -------------------------------------------------------------------------------- /Components/StdCtrl/plus.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/Components/StdCtrl/plus.ico -------------------------------------------------------------------------------- /SDK/Property/Res/BUTTON.BMP: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/SDK/Property/Res/BUTTON.BMP -------------------------------------------------------------------------------- /SDK/Property/Res/MINUS.BMP: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/SDK/Property/Res/MINUS.BMP -------------------------------------------------------------------------------- /AppWiz/Files/Images/spacer.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/AppWiz/Files/Images/spacer.gif -------------------------------------------------------------------------------- /Components/StdCtrl/ARROWD.BMP: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/Components/StdCtrl/ARROWD.BMP -------------------------------------------------------------------------------- /Components/StdCtrl/ARROWU.BMP: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/Components/StdCtrl/ARROWU.BMP -------------------------------------------------------------------------------- /Components/StdCtrl/arrowd.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/Components/StdCtrl/arrowd.ico -------------------------------------------------------------------------------- /Components/StdCtrl/arrowu.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/Components/StdCtrl/arrowu.ico -------------------------------------------------------------------------------- /Components/StdCtrl/button.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/Components/StdCtrl/button.bmp -------------------------------------------------------------------------------- /Components/StdCtrl/listbox.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/Components/StdCtrl/listbox.bmp -------------------------------------------------------------------------------- /Components/StdCtrl/picture.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/Components/StdCtrl/picture.bmp -------------------------------------------------------------------------------- /Components/StdCtrl/static.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/Components/StdCtrl/static.bmp -------------------------------------------------------------------------------- /Components/StdCtrl/stdctrl.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/Components/StdCtrl/stdctrl.bmp -------------------------------------------------------------------------------- /Components/StdCtrl/tabctrl.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/Components/StdCtrl/tabctrl.bmp -------------------------------------------------------------------------------- /Components/StdCtrl/toolbar.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/Components/StdCtrl/toolbar.bmp -------------------------------------------------------------------------------- /Components/StdCtrl/update.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/Components/StdCtrl/update.ico -------------------------------------------------------------------------------- /Components/StdCtrl/window.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/Components/StdCtrl/window.bmp -------------------------------------------------------------------------------- /Bin/Template/CDialogImpl/CDialogImpl.wff: -------------------------------------------------------------------------------- 1 | 2 |
3 |
4 | -------------------------------------------------------------------------------- /Bin/Template/CWindowImpl/CWindowImpl.wff: -------------------------------------------------------------------------------- 1 | 2 |
3 |
4 | -------------------------------------------------------------------------------- /Components/StdCtrl/checkbox.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/Components/StdCtrl/checkbox.bmp -------------------------------------------------------------------------------- /Components/StdCtrl/combobox.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/Components/StdCtrl/combobox.bmp -------------------------------------------------------------------------------- /Components/StdCtrl/datetime.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/Components/StdCtrl/datetime.bmp -------------------------------------------------------------------------------- /Components/StdCtrl/groupbox.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/Components/StdCtrl/groupbox.bmp -------------------------------------------------------------------------------- /Components/StdCtrl/headerctrl.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/Components/StdCtrl/headerctrl.bmp -------------------------------------------------------------------------------- /Components/StdCtrl/horsplit.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/Components/StdCtrl/horsplit.bmp -------------------------------------------------------------------------------- /Components/StdCtrl/hotkeyctrl.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/Components/StdCtrl/hotkeyctrl.bmp -------------------------------------------------------------------------------- /Components/StdCtrl/hscrollbar.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/Components/StdCtrl/hscrollbar.bmp -------------------------------------------------------------------------------- /Components/StdCtrl/hyperlin.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/Components/StdCtrl/hyperlin.bmp -------------------------------------------------------------------------------- /Components/StdCtrl/imagelis.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/Components/StdCtrl/imagelis.bmp -------------------------------------------------------------------------------- /Components/StdCtrl/listview.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/Components/StdCtrl/listview.bmp -------------------------------------------------------------------------------- /Components/StdCtrl/richedit.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/Components/StdCtrl/richedit.bmp -------------------------------------------------------------------------------- /Components/StdCtrl/splitter.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/Components/StdCtrl/splitter.bmp -------------------------------------------------------------------------------- /Components/StdCtrl/updownctrl.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/Components/StdCtrl/updownctrl.bmp -------------------------------------------------------------------------------- /Components/StdCtrl/vscrollb.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/Components/StdCtrl/vscrollb.bmp -------------------------------------------------------------------------------- /Components/ViksoeCtrl/scanfed.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/Components/ViksoeCtrl/scanfed.bmp -------------------------------------------------------------------------------- /AppWiz/Files/Images/WTL10AppWiz.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/AppWiz/Files/Images/WTL10AppWiz.png -------------------------------------------------------------------------------- /Components/DecorativeCtrl/minus.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/Components/DecorativeCtrl/minus.ico -------------------------------------------------------------------------------- /Components/DecorativeCtrl/panel.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/Components/DecorativeCtrl/panel.bmp -------------------------------------------------------------------------------- /Components/DecorativeCtrl/plus.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/Components/DecorativeCtrl/plus.ico -------------------------------------------------------------------------------- /Components/StdCtrl/animatectrl.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/Components/StdCtrl/animatectrl.bmp -------------------------------------------------------------------------------- /Components/StdCtrl/imagebutton.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/Components/StdCtrl/imagebutton.bmp -------------------------------------------------------------------------------- /Components/StdCtrl/progressbar.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/Components/StdCtrl/progressbar.bmp -------------------------------------------------------------------------------- /Components/StdCtrl/radiobutton.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/Components/StdCtrl/radiobutton.bmp -------------------------------------------------------------------------------- /Components/StdCtrl/trackbarctrl.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/Components/StdCtrl/trackbarctrl.bmp -------------------------------------------------------------------------------- /Components/StdCtrl/treeviewctrl.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/Components/StdCtrl/treeviewctrl.bmp -------------------------------------------------------------------------------- /Components/ViksoeCtrl/combobox.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/Components/ViksoeCtrl/combobox.bmp -------------------------------------------------------------------------------- /Components/ViksoeCtrl/editlist.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/Components/ViksoeCtrl/editlist.bmp -------------------------------------------------------------------------------- /Components/ViksoeCtrl/listview.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/Components/ViksoeCtrl/listview.bmp -------------------------------------------------------------------------------- /Components/ViksoeCtrl/property.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/Components/ViksoeCtrl/property.bmp -------------------------------------------------------------------------------- /Components/ViksoeCtrl/treelist.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/Components/ViksoeCtrl/treelist.bmp -------------------------------------------------------------------------------- /AppWiz/Files/Templates/1033/root.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/AppWiz/Files/Templates/1033/root.ico -------------------------------------------------------------------------------- /Bin/Template/CMainFrame/CMainFrame.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/Bin/Template/CMainFrame/CMainFrame.ico -------------------------------------------------------------------------------- /Bin/Template/CMainFrame/CMainFrame.wff: -------------------------------------------------------------------------------- 1 | 2 |
3 | -------------------------------------------------------------------------------- /Bin/Template/CSplashWnd/csplashwnd.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/Bin/Template/CSplashWnd/csplashwnd.ico -------------------------------------------------------------------------------- /Components/DecorativeCtrl/GridCtrl.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/Components/DecorativeCtrl/GridCtrl.cpp -------------------------------------------------------------------------------- /Components/DecorativeCtrl/GridCtrl.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/Components/DecorativeCtrl/GridCtrl.h -------------------------------------------------------------------------------- /Components/DecorativeCtrl/Masked.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/Components/DecorativeCtrl/Masked.cpp -------------------------------------------------------------------------------- /Components/DecorativeCtrl/arrowd.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/Components/DecorativeCtrl/arrowd.ico -------------------------------------------------------------------------------- /Components/DecorativeCtrl/arrowu.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/Components/DecorativeCtrl/arrowu.ico -------------------------------------------------------------------------------- /Components/DecorativeCtrl/buttonst.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/Components/DecorativeCtrl/buttonst.bmp -------------------------------------------------------------------------------- /Components/DecorativeCtrl/calendar.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/Components/DecorativeCtrl/calendar.bmp -------------------------------------------------------------------------------- /Components/DecorativeCtrl/dateedit.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/Components/DecorativeCtrl/dateedit.bmp -------------------------------------------------------------------------------- /Components/DecorativeCtrl/gridctrl.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/Components/DecorativeCtrl/gridctrl.bmp -------------------------------------------------------------------------------- /Components/DecorativeCtrl/listview.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/Components/DecorativeCtrl/listview.bmp -------------------------------------------------------------------------------- /Components/DecorativeCtrl/maskedit.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/Components/DecorativeCtrl/maskedit.bmp -------------------------------------------------------------------------------- /Components/DecorativeCtrl/striplv.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/Components/DecorativeCtrl/striplv.bmp -------------------------------------------------------------------------------- /Components/DecorativeCtrl/tabctrl.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/Components/DecorativeCtrl/tabctrl.bmp -------------------------------------------------------------------------------- /Components/DecorativeCtrl/update.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/Components/DecorativeCtrl/update.ico -------------------------------------------------------------------------------- /Components/StdCtrl/Res/EditListBox.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/Components/StdCtrl/Res/EditListBox.bmp -------------------------------------------------------------------------------- /Components/StdCtrl/panecontainer.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/Components/StdCtrl/panecontainer.bmp -------------------------------------------------------------------------------- /Components/StdCtrl/statusbarctrl.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/Components/StdCtrl/statusbarctrl.bmp -------------------------------------------------------------------------------- /Components/ViksoeCtrl/TreeListView.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/Components/ViksoeCtrl/TreeListView.h -------------------------------------------------------------------------------- /Components/ViksoeCtrl/treeviewctrl.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/Components/ViksoeCtrl/treeviewctrl.bmp -------------------------------------------------------------------------------- /Components/WTLBuilderCtrl/propbox.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/Components/WTLBuilderCtrl/propbox.bmp -------------------------------------------------------------------------------- /AppWiz/Files/Templates/1033/rootDoc.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/AppWiz/Files/Templates/1033/rootDoc.ico -------------------------------------------------------------------------------- /AppWiz/Files/Templates/1033/toolbar.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/AppWiz/Files/Templates/1033/toolbar.bmp -------------------------------------------------------------------------------- /AppWiz/Files/WTL10AppWiz4WTLBuilder.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/AppWiz/Files/WTL10AppWiz4WTLBuilder.ico -------------------------------------------------------------------------------- /Bin/Template/CDialogImpl/CDialogImpl.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/Bin/Template/CDialogImpl/CDialogImpl.bmp -------------------------------------------------------------------------------- /Bin/Template/CFrameWindowImpl/CFrameWindowImpl.wff: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | -------------------------------------------------------------------------------- /Bin/Template/CWindowImpl/CWindowImpl.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/Bin/Template/CWindowImpl/CWindowImpl.ico -------------------------------------------------------------------------------- /Components/DecorativeCtrl/imageview.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/Components/DecorativeCtrl/imageview.bmp -------------------------------------------------------------------------------- /Components/DecorativeCtrl/panelhost.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/Components/DecorativeCtrl/panelhost.bmp -------------------------------------------------------------------------------- /Components/WTLBuilderCtrl/toolpanel.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/Components/WTLBuilderCtrl/toolpanel.bmp -------------------------------------------------------------------------------- /Components/DecorativeCtrl/colorbutton.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/Components/DecorativeCtrl/colorbutton.bmp -------------------------------------------------------------------------------- /Components/ViksoeCtrl/Res/EditListBox.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/Components/ViksoeCtrl/Res/EditListBox.bmp -------------------------------------------------------------------------------- /Bin/Template/CMDIChildWindowImpl/CMDIChildWindowImpl.wff: -------------------------------------------------------------------------------- 1 | 2 |
3 |
4 | -------------------------------------------------------------------------------- /Bin/Template/CMDIFrameWindowImpl/CMDIFrameWindowImpl.wff: -------------------------------------------------------------------------------- 1 | 2 |
3 |
4 | -------------------------------------------------------------------------------- /Components/DecorativeCtrl/res/EditListBox.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/Components/DecorativeCtrl/res/EditListBox.bmp -------------------------------------------------------------------------------- /AppWiz/Files/Images/WTL10AppWiz_Background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/AppWiz/Files/Images/WTL10AppWiz_Background.png -------------------------------------------------------------------------------- /Bin/Template/CDialogTemplate/CDialogTemplate.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/Bin/Template/CDialogTemplate/CDialogTemplate.bmp -------------------------------------------------------------------------------- /SDK/Property/warning.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #pragma warning( disable:4838) 4 | #pragma warning( disable:4996) 5 | #define _CRT_SECURE_NO_WARNINGS 6 | -------------------------------------------------------------------------------- /Bin/Template/CFrameWindowImpl/CFrameWindowImpl.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/Bin/Template/CFrameWindowImpl/CFrameWindowImpl.ico -------------------------------------------------------------------------------- /Bin/Template/CMDIChildWindowImpl/CMDIChildWindowImpl.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/Bin/Template/CMDIChildWindowImpl/CMDIChildWindowImpl.ico -------------------------------------------------------------------------------- /Bin/Template/CMDIFrameWindowImpl/CMDIFrameWindowImpl.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FlatGlobus/WTLBuilder/HEAD/Bin/Template/CMDIFrameWindowImpl/CMDIFrameWindowImpl.ico -------------------------------------------------------------------------------- /Forms/Form/stdafx.cpp: -------------------------------------------------------------------------------- 1 | 2 | #include "stdafx.h" 3 | CAppModule _Module; 4 | // TODO: reference any additional headers you need in STDAFX.H 5 | // and not in this file 6 | -------------------------------------------------------------------------------- /AppWiz/Files/Templates/1033/MainDlg.wff: -------------------------------------------------------------------------------- 1 | 2 |
3 |
4 | -------------------------------------------------------------------------------- /Bin/Template/CSplashWnd/csplashwnd.wff: -------------------------------------------------------------------------------- 1 | 2 |
3 |
4 | -------------------------------------------------------------------------------- /AppWiz/Files/Templates/1033/rootidl.h: -------------------------------------------------------------------------------- 1 | // [!output PROJECT_NAME].idl : IDL source for [!output PROJECT_NAME].exe 2 | // 3 | 4 | // Add interface and coclass declarations in this file 5 | -------------------------------------------------------------------------------- /AppWiz/Files/WTL10AppWiz4WTLBuilder.vsdir: -------------------------------------------------------------------------------- 1 | WTLAppWiz4WTLBuilder.vsz| |WTL10 Application Wizard for WTLBuilder|1|An application that uses the Windows Template Library.| |6777|4096|#1154 2 | -------------------------------------------------------------------------------- /Components/ViksoeCtrl/ViksoeCtrl.h: -------------------------------------------------------------------------------- 1 | #ifdef VIKSOECTRL_EXPORTS 2 | #define VIKSOECTRL_API __declspec(dllexport) 3 | #else 4 | #define VIKSOECTRL_API __declspec(dllimport) 5 | #endif 6 | 7 | 8 | -------------------------------------------------------------------------------- /AppWiz/Files/Templates/1033/AboutDlg.wff: -------------------------------------------------------------------------------- 1 | 2 |
3 |
4 | -------------------------------------------------------------------------------- /AppWiz/Files/Templates/1033/View.wff: -------------------------------------------------------------------------------- 1 | 2 |
3 |
4 | -------------------------------------------------------------------------------- /AppWiz/Files/WTL10AppWiz4WTLBuilder.vsz: -------------------------------------------------------------------------------- 1 | VSWIZARD 7.0 2 | Wizard=VsWizard.VsWizardEngine 3 | 4 | Param="WIZARD_NAME = WTLAppWiz for WTLBuilder" 5 | Param="WIZARD_VERSION = 7.0" 6 | Param="ABSOLUTE_PATH = ." 7 | Param="FALLBACK_LCID = 1033" 8 | -------------------------------------------------------------------------------- /SDK/Utils/StdAfx.cpp: -------------------------------------------------------------------------------- 1 | // stdafx.cpp : source file that includes just the standard includes 2 | // UtilsLib.pch will be the pre-compiled header 3 | // stdafx.obj will contain the pre-compiled type information 4 | 5 | #include "stdafx.h" 6 | 7 | -------------------------------------------------------------------------------- /AppWiz/Files/Templates/1033/root.rgs: -------------------------------------------------------------------------------- 1 | HKCR 2 | { 3 | NoRemove AppID 4 | { 5 | {[!output WTL_APPID]} = s '[!output PROJECT_NAME]' 6 | '[!output PROJECT_NAME].EXE' 7 | { 8 | val AppID = s {[!output WTL_APPID]} 9 | } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /AppWiz/Files/Templates/1033/Frame.wff: -------------------------------------------------------------------------------- 1 | 2 |
3 | 4 | 5 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # WTLBuilder 2 | WTLBuilder is a GUI designer. Main features are:
3 | -generate source C++ code
4 | -use WTL
5 | -a lot of Windows controls
6 | -a project generator for VC++ 2015
7 | 8 | If you catch an "internal compiler error" while compiling solution just select "Rebuild Solution". -------------------------------------------------------------------------------- /AppWiz/Files/Templates/1033/rootps.def: -------------------------------------------------------------------------------- 1 | 2 | LIBRARY "[!output PROJECT_NAME]PS" 3 | 4 | DESCRIPTION 'Proxy/Stub DLL' 5 | 6 | EXPORTS 7 | DllGetClassObject @1 PRIVATE 8 | DllCanUnloadNow @2 PRIVATE 9 | GetProxyDllInfo @3 PRIVATE 10 | DllRegisterServer @4 PRIVATE 11 | DllUnregisterServer @5 PRIVATE 12 | -------------------------------------------------------------------------------- /Package/StdAfx.cpp: -------------------------------------------------------------------------------- 1 | // stdafx.cpp : source file that includes just the standard includes 2 | // iPackage.pch will be the pre-compiled header 3 | // stdafx.obj will contain the pre-compiled type information 4 | 5 | #include "stdafx.h" 6 | 7 | // TODO: reference any additional headers you need in STDAFX.H 8 | // and not in this file 9 | -------------------------------------------------------------------------------- /Components/StdCtrl/stdafx.cpp: -------------------------------------------------------------------------------- 1 | // stdafx.cpp : source file that includes just the standard includes 2 | // StdCtrl.pch will be the pre-compiled header 3 | // stdafx.obj will contain the pre-compiled type information 4 | 5 | #include "stdafx.h" 6 | CAppModule _Module; 7 | // TODO: reference any additional headers you need in STDAFX.H 8 | // and not in this file 9 | -------------------------------------------------------------------------------- /Components/ViksoeCtrl/stdafx.cpp: -------------------------------------------------------------------------------- 1 | // stdafx.cpp : source file that includes just the standard includes 2 | // StdCtrl.pch will be the pre-compiled header 3 | // stdafx.obj will contain the pre-compiled type information 4 | 5 | #include "stdafx.h" 6 | CExAppModule _Module; 7 | // TODO: reference any additional headers you need in STDAFX.H 8 | // and not in this file 9 | -------------------------------------------------------------------------------- /AppWiz/Files/Templates/1033/ChildFrm.wff: -------------------------------------------------------------------------------- 1 | 2 |
3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Components/DecorativeCtrl/stdafx.cpp: -------------------------------------------------------------------------------- 1 | // stdafx.cpp : source file that includes just the standard includes 2 | // DecorativeCtrl.pch will be the pre-compiled header 3 | // stdafx.obj will contain the pre-compiled type information 4 | 5 | #include "stdafx.h" 6 | CAppModule _Module; 7 | 8 | // TODO: reference any additional headers you need in STDAFX.H 9 | // and not in this file 10 | -------------------------------------------------------------------------------- /Components/WTLBuilderCtrl/stdafx.cpp: -------------------------------------------------------------------------------- 1 | // stdafx.cpp : source file that includes just the standard includes 2 | // WTLBuilderCtrls.pch will be the pre-compiled header 3 | // stdafx.obj will contain the pre-compiled type information 4 | 5 | #include "stdafx.h" 6 | CAppModule _Module; 7 | 8 | // TODO: reference any additional headers you need in STDAFX.H 9 | // and not in this file 10 | -------------------------------------------------------------------------------- /AppWiz/Files/Templates/1033/stdafx.cpp: -------------------------------------------------------------------------------- 1 | // stdafx.cpp : source file that includes just the standard includes 2 | // [!output PROJECT_NAME].pch will be the pre-compiled header 3 | // stdafx.obj will contain the pre-compiled type information 4 | 5 | #include "stdafx.h" 6 | [!if WTL_COM_SERVER] 7 | 8 | #ifdef _ATL_STATIC_REGISTRY 9 | #include 10 | #endif //_ATL_STATIC_REGISTRY 11 | [!endif] 12 | -------------------------------------------------------------------------------- /SDK/Event/StdAfx.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (C) FlatGlobus(wtlbuilder@gmail.com) All rights reserved. 2 | // 3 | // This file is a part of the WTLBuilder. 4 | // The use and distribution terms for this software are covered by the 5 | // Microsoft Public License (http://opensource.org/licenses/MS-PL) 6 | // which can be found in the file MS-PL.txt at the root folder. 7 | 8 | #include "stdafx.h" 9 | 10 | // TODO: reference any additional headers you need in STDAFX.H 11 | // and not in this file 12 | -------------------------------------------------------------------------------- /Forms/Form/Forms.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) FlatGlobus(wtlbuilder@gmail.com) All rights reserved. 2 | // 3 | // This file is a part of the WTLBuilder. 4 | // The use and distribution terms for this software are covered by the 5 | // Microsoft Public License (http://opensource.org/licenses/MS-PL) 6 | // which can be found in the file MS-PL.txt at the root folder. 7 | 8 | #ifdef FORM_EXPORTS 9 | #define FORM_API __declspec(dllexport) 10 | #else 11 | #define FORM_API __declspec(dllimport) 12 | #endif 13 | -------------------------------------------------------------------------------- /SDK/Property/StdAfx.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (C) FlatGlobus(wtlbuilder@gmail.com) All rights reserved. 2 | // 3 | // This file is a part of the WTLBuilder. 4 | // The use and distribution terms for this software are covered by the 5 | // Microsoft Public License (http://opensource.org/licenses/MS-PL) 6 | // which can be found in the file MS-PL.txt at the root folder. 7 | 8 | #include "stdafx.h" 9 | //CAppModule _Module; 10 | // TODO: reference any additional headers you need in STDAFX.H 11 | // and not in this file 12 | -------------------------------------------------------------------------------- /stdafx.cpp: -------------------------------------------------------------------------------- 1 | // stdafx.cpp : source file that includes just the standard includes 2 | // WTLBuilder.pch will be the pre-compiled header 3 | // stdafx.obj will contain the pre-compiled type information 4 | 5 | #include "stdafx.h" 6 | 7 | #if (_ATL_VER < 0x0700) 8 | #include 9 | #endif //(_ATL_VER < 0x0700) 10 | 11 | #ifdef _ATL_STATIC_REGISTRY 12 | #include 13 | #if (_ATL_VER < 0x0700) 14 | #include 15 | #endif //(_ATL_VER < 0x0700) 16 | #endif //_ATL_STATIC_REGISTRY 17 | -------------------------------------------------------------------------------- /ToolPanel.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (C) FlatGlobus(wtlbuilder@gmail.com) All rights reserved. 2 | // 3 | // This file is a part of the WTLBuilder. 4 | // The use and distribution terms for this software are covered by the 5 | // Microsoft Public License (http://opensource.org/licenses/MS-PL) 6 | // which can be found in the file MS-PL.txt at the root folder. 7 | 8 | #include "stdafx.h" 9 | #include "ToolPanel.h" 10 | 11 | /////////////////////////////////////////////////////////////////////////// 12 | long CToolPanel::selected=-1; 13 | CButtonInfoArray CToolPanel::buttons; 14 | -------------------------------------------------------------------------------- /AppWiz/Files/Templates/1033/root.idl: -------------------------------------------------------------------------------- 1 | // [!output PROJECT_NAME].idl : IDL source for [!output PROJECT_NAME].exe 2 | // 3 | 4 | // This file will be processed by the MIDL tool to 5 | // produce the type library ([!output PROJECT_NAME].tlb) and marshalling code. 6 | 7 | import "oaidl.idl"; 8 | import "ocidl.idl"; 9 | 10 | [ 11 | uuid([!output WTL_LIBID]), 12 | version(1.0), 13 | helpstring("[!output PROJECT_NAME] 1.0 Type Library") 14 | ] 15 | library [!output SAFE_PROJECT_NAME]Lib 16 | { 17 | importlib("stdole32.tlb"); 18 | importlib("stdole2.tlb"); 19 | 20 | }; 21 | -------------------------------------------------------------------------------- /SDK/Utils/StdAfx.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #define _WIN32_WINNT 0x0600 4 | #include 5 | 6 | #define _WTL_NO_THEME_DELAYLOAD 7 | #define _WTL_NO_CSTRING 8 | 9 | #include "warning.h" 10 | 11 | 12 | #include 13 | #include 14 | #include 15 | #include 16 | #include 17 | #include 18 | extern CAppModule _Module; 19 | #include 20 | #include 21 | #include 22 | #include 23 | #include 24 | #include 25 | #include 26 | 27 | 28 | -------------------------------------------------------------------------------- /SDK/Utils/File.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) FlatGlobus(wtlbuilder@gmail.com) All rights reserved. 2 | // 3 | // This file is a part of the WTLBuilder. 4 | // The use and distribution terms for this software are covered by the 5 | // Microsoft Public License (http://opensource.org/licenses/MS-PL) 6 | // which can be found in the file MS-PL.txt at the root folder. 7 | 8 | #ifndef __FILE_H 9 | #define __FILE_H 10 | ////////////////////////////////////////////////////////////////////////// 11 | #include "Path.h" 12 | #include "MapFile.h" 13 | #include "CFile.h" 14 | ////////////////////////////////////////////////////////////////////////// 15 | #endif -------------------------------------------------------------------------------- /Components/WTLBuilderCtrl/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Visual C++ generated include file. 3 | // Used by WTLBuilderCtrls.rc 4 | // 5 | #define IDB_BITMAP1 101 6 | #define IDB_PROPERTYBOX 101 7 | #define IDB_TOOLPANEL 102 8 | #define IDB_TOOLTAB 102 9 | 10 | // Next default values for new objects 11 | // 12 | #ifdef APSTUDIO_INVOKED 13 | #ifndef APSTUDIO_READONLY_SYMBOLS 14 | #define _APS_NEXT_RESOURCE_VALUE 103 15 | #define _APS_NEXT_COMMAND_VALUE 40001 16 | #define _APS_NEXT_CONTROL_VALUE 1001 17 | #define _APS_NEXT_SYMED_VALUE 101 18 | #endif 19 | #endif 20 | -------------------------------------------------------------------------------- /SDK/Event/StdAfx.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) FlatGlobus(wtlbuilder@gmail.com) All rights reserved. 2 | // 3 | // This file is a part of the WTLBuilder. 4 | // The use and distribution terms for this software are covered by the 5 | // Microsoft Public License (http://opensource.org/licenses/MS-PL) 6 | // which can be found in the file MS-PL.txt at the root folder. 7 | 8 | #pragma once 9 | 10 | #define _WIN32_WINNT 0x0600 11 | #include 12 | // Insert your headers here 13 | #define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers 14 | 15 | #include 16 | #include 17 | 18 | #define _CRT_SECURE_NO_WARNINGS 19 | #pragma warning( disable:4838) 20 | -------------------------------------------------------------------------------- /res/WTLBuilder.exe.manifest: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | 10 | WTLBuilder Application 11 | 12 | 13 | 14 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /AppWiz/Files/Templates/1033/rootps.mk: -------------------------------------------------------------------------------- 1 | 2 | [!output PROJECT_NAME]ps.dll: dlldata.obj [!output PROJECT_NAME]_p.obj [!output PROJECT_NAME]_i.obj 3 | link /dll /out:[!output PROJECT_NAME]ps.dll /def:[!output PROJECT_NAME]ps.def /entry:DllMain dlldata.obj [!output PROJECT_NAME]_p.obj [!output PROJECT_NAME]_i.obj \ 4 | kernel32.lib rpcndr.lib rpcns4.lib rpcrt4.lib oleaut32.lib uuid.lib \ 5 | 6 | .c.obj: 7 | cl /c /Ox /DWIN32 /D_WIN32_WINNT=0x0400 /DREGISTER_PROXY_DLL \ 8 | $< 9 | 10 | clean: 11 | @del [!output PROJECT_NAME]ps.dll 12 | @del [!output PROJECT_NAME]ps.lib 13 | @del [!output PROJECT_NAME]ps.exp 14 | @del dlldata.obj 15 | @del [!output PROJECT_NAME]_p.obj 16 | @del [!output PROJECT_NAME]_i.obj 17 | -------------------------------------------------------------------------------- /Bin/Script/LangID.js: -------------------------------------------------------------------------------- 1 | // Copyright (C) FlatGlobus(wtlbuilder@gmail.com) All rights reserved. 2 | // 3 | // This file is a part of the WTLBuilder. 4 | // The use and distribution terms for this software are covered by the 5 | // Microsoft Public License (http://opensource.org/licenses/MS-PL) 6 | // which can be found in the file MS-PL.txt at the root folder. 7 | 8 | function GetLangID(langName) 9 | { 10 | var count = ValueList.GetValCount("LangID"); 11 | for(i = 0; i < count;i++) 12 | { 13 | if(ValueList.GetValName("LangID",i)==langName) 14 | return ValueList.GetValID("LangID",i); 15 | } 16 | return 0; 17 | } 18 | //////////////////////////////////////////////////////////////////////////////// -------------------------------------------------------------------------------- /SDK/Property/Property.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) FlatGlobus(wtlbuilder@gmail.com) All rights reserved. 2 | // 3 | // This file is a part of the WTLBuilder. 4 | // The use and distribution terms for this software are covered by the 5 | // Microsoft Public License (http://opensource.org/licenses/MS-PL) 6 | // which can be found in the file MS-PL.txt at the root folder. 7 | 8 | #ifndef __PROPERTY_H 9 | #define __PROPERTY_H 10 | 11 | #ifdef PROPERTY_EXPORTS 12 | #define PROPERTY_API __declspec( dllexport ) 13 | #else 14 | #define PROPERTY_API 15 | //#define PROPERTY_API __declspec ( dllimport )//to avoid a bug in VC++2003 16 | #pragma comment( lib,"Property.lib") 17 | #endif 18 | 19 | ////////////////////////////////////////////////////////////////////////// 20 | #endif -------------------------------------------------------------------------------- /Package/StdAfx.h: -------------------------------------------------------------------------------- 1 | // stdafx.h : include file for standard system include files, 2 | // or project specific include files that are used frequently, but 3 | // are changed infrequently 4 | // 5 | 6 | #pragma once 7 | 8 | #define _WIN32_WINNT 0x0600 9 | #include 10 | 11 | #define _WTL_NO_THEME_DELAYLOAD 12 | #define _WTL_NO_CSTRING 13 | 14 | #include "warning.h" 15 | 16 | #include 17 | #include 18 | #include 19 | #include 20 | 21 | extern CAppModule _Module; 22 | 23 | #include 24 | #include 25 | #include 26 | #include 27 | #include 28 | //#include "..\mmgr\mmgr.h" 29 | // TODO: reference additional headers your program requires here 30 | 31 | -------------------------------------------------------------------------------- /Package/PackageApi.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) FlatGlobus(wtlbuilder@gmail.com) All rights reserved. 2 | // 3 | // This file is a part of the WTLBuilder. 4 | // The use and distribution terms for this software are covered by the 5 | // Microsoft Public License (http://opensource.org/licenses/MS-PL) 6 | // which can be found in the file MS-PL.txt at the root folder. 7 | 8 | #ifndef __PACKAGEAPI_H 9 | #define __PACKAGEAPI_H 10 | ////////////////////////////////////////////////////////////////////////// 11 | #ifdef PACKAGE_EXPORTS 12 | #define PACKAGE_API __declspec(dllexport) 13 | #else 14 | #define PACKAGE_API __declspec(dllimport) 15 | #pragma comment(lib,"Package.lib") 16 | #endif 17 | ////////////////////////////////////////////////////////////////////////// 18 | #endif -------------------------------------------------------------------------------- /SDK/Event/Event.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) FlatGlobus(wtlbuilder@gmail.com) All rights reserved. 2 | // 3 | // This file is a part of the WTLBuilder. 4 | // The use and distribution terms for this software are covered by the 5 | // Microsoft Public License (http://opensource.org/licenses/MS-PL) 6 | // which can be found in the file MS-PL.txt at the root folder. 7 | 8 | #ifndef __EVENT_H 9 | #define __EVENT_H 10 | ////////////////////////////////////////////////////////////////////////// 11 | #ifdef EVENT_EXPORTS 12 | #define EVENT_API __declspec(dllexport) 13 | #else 14 | #define EVENT_API __declspec(dllimport) 15 | #pragma comment( lib, "event.lib" ) 16 | #endif 17 | ////////////////////////////////////////////////////////////////////////// 18 | #endif 19 | 20 | -------------------------------------------------------------------------------- /WTLBuilderView.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (C) FlatGlobus(wtlbuilder@gmail.com) All rights reserved. 2 | // 3 | // This file is a part of the WTLBuilder. 4 | // The use and distribution terms for this software are covered by the 5 | // Microsoft Public License (http://opensource.org/licenses/MS-PL) 6 | // which can be found in the file MS-PL.txt at the root folder. 7 | 8 | #include "stdafx.h" 9 | #include "resource.h" 10 | 11 | #include "WTLBuilderView.h" 12 | 13 | BOOL CWTLBuilderView::PreTranslateMessage(MSG* pMsg) 14 | { 15 | pMsg; 16 | return FALSE; 17 | } 18 | 19 | LRESULT CWTLBuilderView::OnPaint(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/) 20 | { 21 | CPaintDC dc(m_hWnd); 22 | 23 | //TODO: Add your drawing code here 24 | 25 | return 0; 26 | } 27 | -------------------------------------------------------------------------------- /Config.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | ////////////////////////////////////////////////////////////////////////// 3 | #include "ini.h" 4 | 5 | class CConfig 6 | { 7 | CIni cfgFile; 8 | public: 9 | CConfig(); 10 | ~CConfig(); 11 | 12 | void LoadConfig(); 13 | void SaveConfig(); 14 | 15 | void SetBOOLValue(LPCTSTR section, LPCTSTR key, BOOL val); 16 | void GetBOOLValue(LPCTSTR section, LPCTSTR key, BOOL *val); 17 | 18 | void SetINTValue(LPCTSTR section, LPCTSTR key, int val); 19 | void GetINTValue(LPCTSTR section, LPCTSTR key, int *val); 20 | 21 | void SetSTRTValue(LPCTSTR section, LPCTSTR key, LPCTSTR val); 22 | void GetSTRValue(LPCTSTR section, LPCTSTR key, LPTSTR val, int sz); 23 | }; 24 | ////////////////////////////////////////////////////////////////////////// 25 | -------------------------------------------------------------------------------- /Forms/Form/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Visual C++ generated include file. 3 | // Used by Form.rc 4 | // 5 | #define IDB_FORM 104 6 | #define IDI_ICON1 105 7 | #define IDI_FORM 105 8 | #define IDB_DIALOG 105 9 | #define IDD_NULL 106 10 | #define IDC_LIST1 1011 11 | #define IDC_SCROLLBAR2 1013 12 | 13 | // Next default values for new objects 14 | // 15 | #ifdef APSTUDIO_INVOKED 16 | #ifndef APSTUDIO_READONLY_SYMBOLS 17 | #define _APS_NEXT_RESOURCE_VALUE 107 18 | #define _APS_NEXT_COMMAND_VALUE 40001 19 | #define _APS_NEXT_CONTROL_VALUE 1022 20 | #define _APS_NEXT_SYMED_VALUE 101 21 | #endif 22 | #endif 23 | -------------------------------------------------------------------------------- /SDK/Property/Resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Visual C++ generated include file. 3 | // Used by Resource.rc 4 | // 5 | #define IDB_PLUS 101 6 | #define IDB_MINUS 102 7 | #define IDB_BUTTON 103 8 | #define IDR_FORM 104 9 | #define IDD_NULL 207 10 | //#define ID_EDIT_DELETE 40001 11 | //#define ID_EDIT_SELECTALL 40002 12 | 13 | // Next default values for new objects 14 | // 15 | #ifdef APSTUDIO_INVOKED 16 | #ifndef APSTUDIO_READONLY_SYMBOLS 17 | #define _APS_NEXT_RESOURCE_VALUE 105 18 | #define _APS_NEXT_COMMAND_VALUE 40003 19 | #define _APS_NEXT_CONTROL_VALUE 1000 20 | #define _APS_NEXT_SYMED_VALUE 101 21 | #endif 22 | #endif 23 | -------------------------------------------------------------------------------- /Components/ViksoeCtrl/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Visual C++ generated include file. 3 | // Used by ViksoeCtrl.rc 4 | // 5 | #define IDB_EDITLISTBOXCOM 501 6 | #define IDB_SCANFEDITCTRL 502 7 | #define IDB_PROPERTYGRID 503 8 | #define IDB_TREELISTVIEW 504 9 | #define IDB_SHELLTREECTRL 505 10 | #define IDB_SHELLLISTCTRL 506 11 | #define IDB_SHELLCOMBOBOX 507 12 | 13 | // Next default values for new objects 14 | // 15 | #ifdef APSTUDIO_INVOKED 16 | #ifndef APSTUDIO_READONLY_SYMBOLS 17 | #define _APS_NEXT_RESOURCE_VALUE 508 18 | #define _APS_NEXT_COMMAND_VALUE 40001 19 | #define _APS_NEXT_CONTROL_VALUE 1001 20 | #define _APS_NEXT_SYMED_VALUE 101 21 | #endif 22 | #endif 23 | -------------------------------------------------------------------------------- /SDK/Utils/InterfaceWrapperTools.h: -------------------------------------------------------------------------------- 1 | /******************************************************************** 2 | * 3 | * Copyright (C) 2001 Sven Wiegand 4 | * 5 | * This file is free software; you can redistribute it and/or 6 | * modify, but leave the headers intact and do not remove any 7 | * copyrights from the source. 8 | * 9 | * If you have further questions, suggestions or bug fixes, please 10 | * let me know 11 | * 12 | * sven.wiegand@web.de 13 | * 14 | ********************************************************************/ 15 | 16 | #ifndef __INTERFACEWRAPPERTOOLS_H__ 17 | #define __INTERFACEWRAPPERTOOLS_H__ 18 | 19 | #define GETTHIS(AggregatingClass, InterfaceImpl) \ 20 | AggregatingClass *pThis = \ 21 | ((AggregatingClass*)((BYTE*)this - offsetof(AggregatingClass, InterfaceImpl))); \ 22 | 23 | 24 | #endif //__INTERFACEWRAPPERSTOOLS_H__ -------------------------------------------------------------------------------- /AppWiz/Files/Templates/1033/Templates.inf: -------------------------------------------------------------------------------- 1 | stdafx.cpp 2 | stdafx.h 3 | root.cpp 4 | root.h 5 | root.rc 6 | layoutmgr.cpp 7 | layoutmgr.h 8 | 9 | [!if !WTL_APPTYPE_DLG] 10 | frame.h 11 | frame.cpp 12 | frame.wff 13 | toolbar.bmp 14 | [!endif] 15 | 16 | [!if WTL_APPTYPE_DLG] 17 | MainDlg.h 18 | MainDlg.cpp 19 | MainDlg.wff 20 | [!endif] 21 | 22 | root.ico 23 | 24 | [!if WTL_APPTYPE_MDI] 25 | rootDoc.ico 26 | ChildFrm.h 27 | ChildFrm.cpp 28 | ChildFrm.wff 29 | [!endif] 30 | 31 | [!if WTL_USE_VIEW] 32 | view.h 33 | view.cpp 34 | view.wff 35 | [!endif] 36 | 37 | [!if !WTL_APPTYPE_DLG_MODAL] 38 | AboutDlg.h 39 | AboutDlg.cpp 40 | AboutDlg.wff 41 | [!endif] 42 | 43 | resource.h 44 | 45 | [!if WTL_USE_RIBBON] 46 | Ribbon.xml 47 | Ribbon.h 48 | [!endif] 49 | 50 | [!if WTL_COM_SERVER] 51 | root.idl 52 | root.rgs 53 | rootps.mk 54 | rootps.def 55 | [!endif] 56 | -------------------------------------------------------------------------------- /Components/DecorativeCtrl/DecorativeCtrl.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (C) FlatGlobus(wtlbuilder@gmail.com) All rights reserved. 2 | // 3 | // This file is a part of the WTLBuilder. 4 | // The use and distribution terms for this software are covered by the 5 | // Microsoft Public License (http://opensource.org/licenses/MS-PL) 6 | // which can be found in the file MS-PL.txt at the root folder. 7 | 8 | #include "stdafx.h" 9 | BOOL APIENTRY DllMain( HANDLE hModule, 10 | DWORD ul_reason_for_call, 11 | LPVOID lpReserved 12 | ) 13 | { 14 | switch (ul_reason_for_call) 15 | { 16 | case DLL_PROCESS_ATTACH: 17 | _Module.Init(NULL, (HINSTANCE)hModule); 18 | break; 19 | case DLL_THREAD_ATTACH: 20 | break; 21 | case DLL_THREAD_DETACH: 22 | break; 23 | case DLL_PROCESS_DETACH: 24 | _Module.Term(); 25 | break; 26 | } 27 | return TRUE; 28 | } 29 | -------------------------------------------------------------------------------- /Components/WTLBuilderCtrl/WTLBuilderCtrls.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (C) FlatGlobus(wtlbuilder@gmail.com) All rights reserved. 2 | // 3 | // This file is a part of the WTLBuilder. 4 | // The use and distribution terms for this software are covered by the 5 | // Microsoft Public License (http://opensource.org/licenses/MS-PL) 6 | // which can be found in the file MS-PL.txt at the root folder. 7 | 8 | #include "stdafx.h" 9 | BOOL APIENTRY DllMain( HANDLE hModule, 10 | DWORD ul_reason_for_call, 11 | LPVOID lpReserved 12 | ) 13 | { 14 | switch (ul_reason_for_call) 15 | { 16 | case DLL_PROCESS_ATTACH: 17 | _Module.Init(NULL, (HINSTANCE)hModule); 18 | break; 19 | case DLL_THREAD_ATTACH: 20 | break; 21 | case DLL_THREAD_DETACH: 22 | break; 23 | case DLL_PROCESS_DETACH: 24 | _Module.Term(); 25 | break; 26 | } 27 | return TRUE; 28 | } 29 | -------------------------------------------------------------------------------- /Bin/Script/CMenu.js: -------------------------------------------------------------------------------- 1 | // Copyright (C) FlatGlobus(wtlbuilder@gmail.com) All rights reserved. 2 | // 3 | // This file is a part of the WTLBuilder. 4 | // The use and distribution terms for this software are covered by the 5 | // Microsoft Public License (http://opensource.org/licenses/MS-PL) 6 | // which can be found in the file MS-PL.txt at the root folder. 7 | 8 | function StdCtl_CMenu(form, component) 9 | { 10 | var codegen=form.Code; 11 | var cmpName = component.Item("Name"); 12 | 13 | CheckProperty(form, component, "Name", ""); 14 | CheckProperty(form, component, "ID", ""); 15 | 16 | var headerStr="\t"+"CMenu"+"\t"+cmpName+";\n"; 17 | var sourceStr="\t"+cmpName+".LoadMenu("+component.Item("ID")+");\n"; 18 | sourceStr+="\n"; 19 | 20 | codegen.Insert(endMemberDecl,headerStr); 21 | codegen.Insert(endMemberCreation,sourceStr); 22 | } -------------------------------------------------------------------------------- /Package/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Developer Studio generated include file. 3 | // Used by iPackage.rc 4 | // 5 | #define IDB_DEFAULT 1101 6 | #define IDD_PACKAGE_DLG 1102 7 | #define IDR_PACKAGE_MENU 1103 8 | #define IDC_LIST1 1000 9 | #define IDC_EDIT1 1001 10 | #define IDC_BUTTON1 1002 11 | #define IDC_BUTTON2 1003 12 | #define ID_PACKAGES_PACKAGES 40001 13 | 14 | // Next default values for new objects 15 | // 16 | #ifdef APSTUDIO_INVOKED 17 | #ifndef APSTUDIO_READONLY_SYMBOLS 18 | #define _APS_NEXT_RESOURCE_VALUE 1104 19 | #define _APS_NEXT_COMMAND_VALUE 40002 20 | #define _APS_NEXT_CONTROL_VALUE 1004 21 | #define _APS_NEXT_SYMED_VALUE 1101 22 | #endif 23 | #endif 24 | -------------------------------------------------------------------------------- /SDK/Utils/CFile.cpp: -------------------------------------------------------------------------------- 1 | #include "stdafx.h" 2 | ////////////////////////////////////////////////////////////////////////// 3 | #define BUFF_SIZE 4096 4 | CString LoadString(const CString & fileName) 5 | { 6 | CString str; 7 | FILE *file = NULL; 8 | if (file = fopen(fileName, "rt")) 9 | { 10 | char buf[BUFF_SIZE + 1]; 11 | memset(buf, 0, (BUFF_SIZE + 1) * sizeof(char)); 12 | UINT nRead; 13 | while ((nRead = fread(buf, 1, BUFF_SIZE, file)) > 0) 14 | { 15 | buf[nRead] = '\0'; 16 | str += buf; 17 | } 18 | fclose(file); 19 | } 20 | return str; 21 | } 22 | 23 | BOOL SaveString(const CString & fileName,CString &source) 24 | { 25 | FILE *file=NULL; 26 | if(file = fopen(fileName,"wt")) 27 | { 28 | if (!source.IsEmpty()) 29 | { 30 | fwrite((LPCTSTR)source, 1, source.GetLength(), file); 31 | } 32 | fclose(file); 33 | return TRUE; 34 | } 35 | return FALSE; 36 | } -------------------------------------------------------------------------------- /Components/StdCtrl/EditListBox.rc: -------------------------------------------------------------------------------- 1 | // Developed by Bjarke Viksoe 2 | // 3 | // EditListBox Control Resources version 1.0 4 | 5 | #ifndef __EDITLISTBOXCTRL_RC__ 6 | #define __EDITLISTBOXCTRL_RC__ 7 | 8 | #ifndef AFX_EDITLISTBOX_H__20010311_8A0B_FC46_5D30_0080AD509054__INCLUDED_ 9 | #include "EditListBox.h" 10 | #endif // AFX_EDITLISTBOX_H__20010311_8A0B_FC46_5D30_0080AD509054__INCLUDED_ 11 | 12 | #ifdef APSTUDIO_INVOKED 13 | // This will prevent the VC++ Resource Editor user from saving this file 14 | 1 TEXTINCLUDE DISCARDABLE 15 | BEGIN 16 | "< Cannot change EditListBox resources! >\0" 17 | END 18 | #endif // APSTUDIO_INVOKED 19 | 20 | ///////////////////////////////////////////////////////////////////////////// 21 | // 22 | // InfoStatic Control Icons 23 | // 24 | 25 | IDB_EDITLISTBOX BITMAP DISCARDABLE "Res\\EditListBox.bmp" 26 | 27 | 28 | #endif //!__EDITLISTBOXCTRL_RC__ 29 | -------------------------------------------------------------------------------- /Components/ViksoeCtrl/EditListBox.rc: -------------------------------------------------------------------------------- 1 | // Developed by Bjarke Viksoe 2 | // 3 | // EditListBox Control Resources version 1.0 4 | 5 | #ifndef __EDITLISTBOXCTRL_RC__ 6 | #define __EDITLISTBOXCTRL_RC__ 7 | 8 | #ifndef AFX_EDITLISTBOX_H__20010311_8A0B_FC46_5D30_0080AD509054__INCLUDED_ 9 | #include "EditListBox.h" 10 | #endif // AFX_EDITLISTBOX_H__20010311_8A0B_FC46_5D30_0080AD509054__INCLUDED_ 11 | 12 | #ifdef APSTUDIO_INVOKED 13 | // This will prevent the VC++ Resource Editor user from saving this file 14 | 1 TEXTINCLUDE DISCARDABLE 15 | BEGIN 16 | "< Cannot change EditListBox resources! >\0" 17 | END 18 | #endif // APSTUDIO_INVOKED 19 | 20 | ///////////////////////////////////////////////////////////////////////////// 21 | // 22 | // InfoStatic Control Icons 23 | // 24 | 25 | IDB_EDITLISTBOX BITMAP DISCARDABLE "Res\\EditListBox.bmp" 26 | 27 | 28 | #endif //!__EDITLISTBOXCTRL_RC__ 29 | -------------------------------------------------------------------------------- /Components/DecorativeCtrl/EditListBox.rc: -------------------------------------------------------------------------------- 1 | // Developed by Bjarke Viksoe 2 | // 3 | // EditListBox Control Resources version 1.0 4 | 5 | #ifndef __EDITLISTBOXCTRL_RC__ 6 | #define __EDITLISTBOXCTRL_RC__ 7 | 8 | #ifndef AFX_EDITLISTBOX_H__20010311_8A0B_FC46_5D30_0080AD509054__INCLUDED_ 9 | #include "EditListBox.h" 10 | #endif // AFX_EDITLISTBOX_H__20010311_8A0B_FC46_5D30_0080AD509054__INCLUDED_ 11 | 12 | #ifdef APSTUDIO_INVOKED 13 | // This will prevent the VC++ Resource Editor user from saving this file 14 | 1 TEXTINCLUDE DISCARDABLE 15 | BEGIN 16 | "< Cannot change EditListBox resources! >\0" 17 | END 18 | #endif // APSTUDIO_INVOKED 19 | 20 | ///////////////////////////////////////////////////////////////////////////// 21 | // 22 | // InfoStatic Control Icons 23 | // 24 | 25 | IDB_EDITLISTBOX BITMAP DISCARDABLE "Res\\EditListBox.bmp" 26 | 27 | 28 | #endif //!__EDITLISTBOXCTRL_RC__ 29 | -------------------------------------------------------------------------------- /AppWiz/Files/Templates/1033/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Visual C++ generated include file. 3 | // Used by [!output PROJECT_NAME].RC 4 | // 5 | 6 | [!if WTL_COM_SERVER] 7 | #define IDS_PROJNAME 100 8 | #define IDR_[!output UPPERCASE_SAFE_PROJECT_NAME] 100 9 | [!endif] 10 | 11 | #define IDD_ABOUTBOX 100 12 | #define IDR_MAINFRAME 128 13 | //#define IDR_[!output UPPERCASE_SAFE_PROJECT_NAME]TYPE 129 14 | [!if WTL_APPTYPE_MDI] 15 | #define IDR_MDICHILD 129 16 | [!endif] 17 | [!if WTL_APPTYPE_MTSDI] 18 | #define ID_FILE_NEW_WINDOW 32771 19 | [!endif] 20 | #define IDD_NULL 201 21 | // Next default values for new objects 22 | // 23 | #ifdef APSTUDIO_INVOKED 24 | #ifndef APSTUDIO_READONLY_SYMBOLS 25 | #define _APS_NEXT_RESOURCE_VALUE 202 26 | #define _APS_NEXT_CONTROL_VALUE 1000 27 | #define _APS_NEXT_SYMED_VALUE 101 28 | #define _APS_NEXT_COMMAND_VALUE 32775 29 | #endif 30 | #endif 31 | -------------------------------------------------------------------------------- /Components/WTLBuilderCtrl/stdafx.h: -------------------------------------------------------------------------------- 1 | // TODO: reference additional headers your program requires here 2 | // stdafx.h : include file for standard system include files, 3 | // or project specific include files that are used frequently, but 4 | // are changed infrequently 5 | // 6 | 7 | #pragma once 8 | 9 | #define _WIN32_WINNT 0x0600 10 | #include 11 | 12 | #define _WTL_NO_THEME_DELAYLOAD 13 | #define _WTL_NO_CSTRING 14 | 15 | #include "warning.h" 16 | 17 | #include 18 | #include 19 | #include 20 | #include 21 | #include 22 | extern CAppModule _Module; 23 | 24 | #include 25 | #include 26 | #include 27 | #include 28 | #include 29 | #include 30 | #include 31 | #include "EventLib.h" 32 | #include "component.h" 33 | #include "ctrlcomponent.h" 34 | //#include "..\mmgr\mmgr.h" -------------------------------------------------------------------------------- /Components/ViksoeCtrl/ViksoeCtrl.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (C) FlatGlobus(wtlbuilder@gmail.com) All rights reserved. 2 | // 3 | // This file is a part of the WTLBuilder. 4 | // The use and distribution terms for this software are covered by the 5 | // Microsoft Public License (http://opensource.org/licenses/MS-PL) 6 | // which can be found in the file MS-PL.txt at the root folder. 7 | 8 | #include "stdafx.h" 9 | BOOL APIENTRY DllMain( HANDLE hModule, 10 | DWORD ul_reason_for_call, 11 | LPVOID lpReserved 12 | ) 13 | { 14 | switch (ul_reason_for_call) 15 | { 16 | case DLL_PROCESS_ATTACH: 17 | _Module.Init(NULL, (HINSTANCE)hModule); 18 | _Module.m_Allocator.Init(); 19 | break; 20 | case DLL_THREAD_ATTACH: 21 | break; 22 | case DLL_THREAD_DETACH: 23 | break; 24 | case DLL_PROCESS_DETACH: 25 | _Module.m_Allocator.Term(); 26 | _Module.Term(); 27 | break; 28 | } 29 | return TRUE; 30 | } 31 | -------------------------------------------------------------------------------- /SDK/Property/LineTracker.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) FlatGlobus(wtlbuilder@gmail.com) All rights reserved. 2 | // 3 | // This file is a part of the WTLBuilder. 4 | // The use and distribution terms for this software are covered by the 5 | // Microsoft Public License (http://opensource.org/licenses/MS-PL) 6 | // which can be found in the file MS-PL.txt at the root folder. 7 | 8 | #pragma once 9 | 10 | class CLineTracker 11 | { 12 | public: 13 | CLineTracker(void); 14 | virtual ~CLineTracker(); 15 | 16 | void SetPos(int); 17 | int GetPos(void); 18 | 19 | void MouseUp(const CPoint &); 20 | void MouseMove(const CPoint &); 21 | void MouseDown(const CPoint &); 22 | void SetParent(HWND); 23 | BOOL CheckPos(const CPoint &); 24 | protected: 25 | void Draw(int); 26 | CRect GetParentDim(void); 27 | 28 | HWND m_Parent; 29 | HCURSOR m_Cursor; 30 | HCURSOR m_OldCursor; 31 | BOOL m_Pressed; 32 | int m_Pos; 33 | }; 34 | 35 | -------------------------------------------------------------------------------- /SDK/Utils/Arrow.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef _ARROW_H_ 3 | #define _ARROW_H_ 4 | 5 | #include 6 | //https://www.codeproject.com/Articles/3274/Drawing-Arrows 7 | // ARROWSTRUCT 8 | // 9 | // Defines the attributes of an arrow. 10 | typedef struct tARROWSTRUCT { 11 | int nWidth; // width (in pixels) of the full base of the arrowhead 12 | float fTheta; // angle (in radians) at the arrow tip between the two 13 | // sides of the arrowhead 14 | bool bFill; // flag indicating whether or not the arrowhead should be 15 | // filled 16 | } ARROWSTRUCT; 17 | 18 | // ArrowTo() 19 | // 20 | // Draws an arrow, using the current pen and brush, from the current position 21 | // to the passed point using the attributes defined in the ARROWSTRUCT. 22 | void ArrowTo(HDC hDC, POINT, ARROWSTRUCT *pArrow); 23 | void ArrowTo(HDC hDC, int x, int y, ARROWSTRUCT *pArrow); 24 | void ArrowTo(HDC hDC, const POINT *lpTo, ARROWSTRUCT *pArrow); 25 | 26 | #endif 27 | -------------------------------------------------------------------------------- /Bin/Script/WindowClass.js: -------------------------------------------------------------------------------- 1 | // Copyright (C) FlatGlobus(wtlbuilder@gmail.com) All rights reserved. 2 | // 3 | // This file is a part of the WTLBuilder. 4 | // The use and distribution terms for this software are covered by the 5 | // Microsoft Public License (http://opensource.org/licenses/MS-PL) 6 | // which can be found in the file MS-PL.txt at the root folder. 7 | 8 | function MakeFrameWindowClassDeclaration(form) 9 | { 10 | var declStr=""; 11 | var codegen=form.Code; 12 | if ( form.Item("WindowClass") == true ) 13 | { 14 | declStr="\tDECLARE_FRAME_WND_CLASS_EX("+MakeCString(form.Item("WindowClass.ClassName"))+","; 15 | declStr+=form.Item("WindowClass.CommonResID")+","; 16 | declStr+=MakeWindowClassStyle(form)+","+form.Item("Color")+")\n"; 17 | } 18 | else 19 | { 20 | declStr = codegen.Format(form, "\tDECLARE_FRAME_WND_CLASS(NULL, [!WindowClass.CommonResID])\n"); 21 | } 22 | return declStr; 23 | } -------------------------------------------------------------------------------- /Components/StdCtrl/StdCtrl.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (C) FlatGlobus(wtlbuilder@gmail.com) All rights reserved. 2 | // 3 | // This file is a part of the WTLBuilder. 4 | // The use and distribution terms for this software are covered by the 5 | // Microsoft Public License (http://opensource.org/licenses/MS-PL) 6 | // which can be found in the file MS-PL.txt at the root folder. 7 | 8 | #include "stdafx.h" 9 | #include "resource.h" 10 | 11 | //REGISTER_PAGE(StdCtl,IDB_STDCTRL) 12 | REGISTER_FIRST_PAGE(StdCtl, 0) 13 | 14 | BOOL APIENTRY DllMain( HANDLE hModule, 15 | DWORD ul_reason_for_call, 16 | LPVOID lpReserved 17 | ) 18 | { 19 | switch (ul_reason_for_call) 20 | { 21 | case DLL_PROCESS_ATTACH: 22 | _Module.Init(NULL, (HINSTANCE)hModule); 23 | break; 24 | case DLL_THREAD_ATTACH: 25 | break; 26 | case DLL_THREAD_DETACH: 27 | break; 28 | case DLL_PROCESS_DETACH: 29 | _Module.Term(); 30 | break; 31 | } 32 | return TRUE; 33 | } 34 | -------------------------------------------------------------------------------- /SDK/Utils/InitTempl.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef __INITTEMPL_H 3 | #define __INITTEMPL_H 4 | ////////////////////////////////////////////////////////////////////////////////////////////////// 5 | template class Init 6 | { 7 | public: 8 | Init(void):val(t) 9 | { 10 | } 11 | 12 | operator T&() 13 | { 14 | return val; 15 | } 16 | 17 | operator T&()const 18 | { 19 | return val; 20 | } 21 | 22 | T& AsType() 23 | { 24 | return val; 25 | } 26 | 27 | const T& AsType() const 28 | { 29 | return val; 30 | } 31 | 32 | T* operator&() 33 | { 34 | return &val; 35 | } 36 | 37 | const T* operator&() const 38 | { 39 | return &val; 40 | } 41 | 42 | T& operator=(const T& t) 43 | { 44 | return (val = t); 45 | } 46 | 47 | Init(const Init& rhs) 48 | { 49 | val = rhs.val; 50 | } 51 | 52 | private: 53 | T val; 54 | }; 55 | 56 | ////////////////////////////////////////////////////////////////////////////////////////////////// 57 | #endif -------------------------------------------------------------------------------- /Forms/Form/SplashWnd.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) FlatGlobus(wtlbuilder@gmail.com) All rights reserved. 2 | // 3 | // This file is a part of the WTLBuilder. 4 | // The use and distribution terms for this software are covered by the 5 | // Microsoft Public License (http://opensource.org/licenses/MS-PL) 6 | // which can be found in the file MS-PL.txt at the root folder. 7 | 8 | #ifndef __SPLASHWND_H 9 | #define __SPLASHWND_H 10 | ////////////////////////////////////////////////////////////////////////// 11 | namespace Form 12 | { 13 | class CSplashWnd:public CFormComponent 14 | { 15 | public: 16 | DECLARE_FRAME_WND_CLASS(NULL,IDI_FORM) 17 | CSplashWnd(LPTSTR _name=NULL); 18 | ~CSplashWnd(void); 19 | virtual void InitProperty(void); 20 | virtual BOOL CreateComponent(Component *); 21 | virtual void OnFinalMessage(HWND /*hWnd*/); 22 | }; 23 | } 24 | ////////////////////////////////////////////////////////////////////////// 25 | #endif -------------------------------------------------------------------------------- /Bin/Script/CToolPanel.js: -------------------------------------------------------------------------------- 1 | // Copyright (C) FlatGlobus(wtlbuilder@gmail.com) All rights reserved. 2 | // 3 | // This file is a part of the WTLBuilder. 4 | // The use and distribution terms for this software are covered by the 5 | // Microsoft Public License (http://opensource.org/licenses/MS-PL) 6 | // which can be found in the file MS-PL.txt at the root folder. 7 | 8 | function WTLBuilderCtrl_CToolTab(form, component) 9 | { 10 | var cmpName = component.Item("Name"); 11 | 12 | CheckComponent(form, component); 13 | 14 | var headerStr="\t"+"CToolTab"+"\t"+cmpName+";\n"; 15 | 16 | var sourceStr="\t"+cmpName+".Create("+component.Item("ParentName")+","; 17 | sourceStr+=MakeRect(component)+","; 18 | sourceStr+=component.Item("ID")+");\n"; 19 | 20 | var codegen=form.Code; 21 | codegen.Insert(endMemberDecl,headerStr); 22 | codegen.Insert(endMemberCreation,sourceStr); 23 | codegen.Insert(endCtrlIDDecl,MakeControlID(component)); 24 | } 25 | -------------------------------------------------------------------------------- /SDK/Event/Event.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (C) FlatGlobus(wtlbuilder@gmail.com) All rights reserved. 2 | // 3 | // This file is a part of the WTLBuilder. 4 | // The use and distribution terms for this software are covered by the 5 | // Microsoft Public License (http://opensource.org/licenses/MS-PL) 6 | // which can be found in the file MS-PL.txt at the root folder. 7 | 8 | #include "stdafx.h" 9 | #include "Event.h" 10 | 11 | #pragma data_seg (".Evt") // you must define as SHARED in .def 12 | HANDLE hModule=NULL; 13 | #pragma data_seg () 14 | 15 | BOOL APIENTRY DllMain( HANDLE HModule, 16 | DWORD ul_reason_for_call, 17 | LPVOID 18 | ) 19 | { 20 | switch (ul_reason_for_call) 21 | { 22 | case DLL_PROCESS_ATTACH: 23 | hModule=HModule; 24 | break; 25 | case DLL_THREAD_ATTACH: 26 | break; 27 | case DLL_THREAD_DETACH: 28 | break; 29 | case DLL_PROCESS_DETACH: 30 | break; 31 | } 32 | return TRUE; 33 | } 34 | 35 | -------------------------------------------------------------------------------- /Forms/Form/DialogImpl.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) FlatGlobus(wtlbuilder@gmail.com) All rights reserved. 2 | // 3 | // This file is a part of the WTLBuilder. 4 | // The use and distribution terms for this software are covered by the 5 | // Microsoft Public License (http://opensource.org/licenses/MS-PL) 6 | // which can be found in the file MS-PL.txt at the root folder. 7 | 8 | #ifndef __DIALOGIMPL_H 9 | #define __DIALOGIMPL_H 10 | ////////////////////////////////////////////////////////////////////////// 11 | namespace Form 12 | { 13 | class CDialogImpl:public CFormComponent 14 | { 15 | public: 16 | DECLARE_FRAME_WND_CLASS(NULL, IDI_FORM) 17 | 18 | CDialogImpl(LPTSTR _name=NULL); 19 | ~CDialogImpl(void); 20 | 21 | virtual BOOL CreateComponent(Component *); 22 | virtual void OnFinalMessage(HWND /*hWnd*/); 23 | virtual void InitProperty(void); 24 | virtual CRect GetMinRect(); 25 | 26 | }; 27 | } 28 | ////////////////////////////////////////////////////////////////////////// 29 | #endif -------------------------------------------------------------------------------- /stdafx.h: -------------------------------------------------------------------------------- 1 | 2 | #pragma once 3 | 4 | #define _WIN32_WINNT 0x0600 5 | #include 6 | 7 | #define _ATL_STATIC_REGISTRY 8 | #define _WTL_NO_THEME_DELAYLOAD 9 | #define _WTL_NO_CSTRING 10 | 11 | #include "warning.h" 12 | 13 | #include 14 | #include 15 | #include 16 | #include 17 | #include 18 | 19 | extern CAppModule _Module; 20 | 21 | #include 22 | #include 23 | #include 24 | #include 25 | #include 26 | 27 | #include 28 | #include 29 | #include 30 | #include 31 | #include 32 | #include "resource.h" 33 | #include "EventLib.h" 34 | #include "SDK\Command.h" 35 | #include "PropertyItem.h" 36 | //#include "SDK\mmgr\mmgr.h" 37 | //////////////////////////////////////////////////////////////////////////////////////////////////////////// 38 | #include 39 | #pragma comment(lib, "gdiplus.lib") 40 | -------------------------------------------------------------------------------- /Forms/Form/FrameWindowImpl.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) FlatGlobus(wtlbuilder@gmail.com) All rights reserved. 2 | // 3 | // This file is a part of the WTLBuilder. 4 | // The use and distribution terms for this software are covered by the 5 | // Microsoft Public License (http://opensource.org/licenses/MS-PL) 6 | // which can be found in the file MS-PL.txt at the root folder. 7 | 8 | #pragma once 9 | ////////////////////////////////////////////////////////////////////////// 10 | namespace Form 11 | { 12 | class CFrameWindowImpl:public CFormComponent 13 | { 14 | public: 15 | DECLARE_FRAME_WND_CLASS(NULL,IDI_FORM) 16 | 17 | CFrameWindowImpl(LPTSTR _name=NULL); 18 | ~CFrameWindowImpl(void); 19 | virtual void InitProperty(void); 20 | virtual BOOL CreateComponent(Component *); 21 | virtual void OnFinalMessage(HWND /*hWnd*/); 22 | virtual CRect GetMinRect(); 23 | }; 24 | } 25 | ////////////////////////////////////////////////////////////////////////// 26 | -------------------------------------------------------------------------------- /AppWiz/Files/Templates/1033/AboutDlg.cpp: -------------------------------------------------------------------------------- 1 | // aboutdlg.cpp : implementation of the CAboutDlg class 2 | // 3 | ///////////////////////////////////////////////////////////////////////////// 4 | 5 | #include "stdafx.h" 6 | #include "resource.h" 7 | 8 | #include "aboutdlg.h" 9 | 10 | CAboutDlg::CAboutDlg(void) 11 | //{{WTLBUILDER_CONSTRUCTOR 12 | //}}WTLBUILDER_CONSTRUCTOR 13 | { 14 | } 15 | 16 | LRESULT CAboutDlg::OnInitDialog(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/) 17 | { 18 | //{{WTLBUILDER_MEMBER_CREATION 19 | //}}WTLBUILDER_MEMBER_CREATION 20 | 21 | //{{WTLBUILDER_POST_CREATION 22 | //}}WTLBUILDER_POST_CREATION 23 | 24 | //{{WTLBUILDER_TABSTOP 25 | //}}WTLBUILDER_TABSTOP 26 | 27 | CenterWindow(GetParent()); 28 | return TRUE; 29 | } 30 | 31 | LRESULT CAboutDlg::OnCloseCmd(WORD /*wNotifyCode*/, WORD wID, HWND /*hWndCtl*/, BOOL& /*bHandled*/) 32 | { 33 | //{{WTLBUILDER_MEMBER_DESTRUCTION 34 | //}}WTLBUILDER_MEMBER_DESTRUCTION 35 | 36 | EndDialog(wID); 37 | return 0; 38 | } 39 | -------------------------------------------------------------------------------- /Bin/Script/CPropertyList.js: -------------------------------------------------------------------------------- 1 | // Copyright (C) FlatGlobus(wtlbuilder@gmail.com) All rights reserved. 2 | // 3 | // This file is a part of the WTLBuilder. 4 | // The use and distribution terms for this software are covered by the 5 | // Microsoft Public License (http://opensource.org/licenses/MS-PL) 6 | // which can be found in the file MS-PL.txt at the root folder. 7 | 8 | function WTLBuilderCtrl_CPropertyList(form, component) 9 | { 10 | var cmpName = component.Item("Name"); 11 | 12 | CheckComponent(form, component); 13 | 14 | var headerStr="\t"+"CPropertyList"+"\t*"+cmpName+";\n"; 15 | 16 | var sourceStr="\t"+cmpName+"=CreatePropertyList("+component.Item("ParentName")+","; 17 | sourceStr+=MakeRect(component)+","+component.Item("ID")+");\n"; 18 | sourceStr+="\n"; 19 | 20 | var codegen=form.Code; 21 | codegen.Insert(endMemberDecl,headerStr); 22 | codegen.Insert(endMemberCreation,sourceStr); 23 | codegen.Insert(endCtrlIDDecl,MakeControlID(component)); 24 | } 25 | -------------------------------------------------------------------------------- /Components/ViksoeCtrl/WinXPButton.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) FlatGlobus(wtlbuilder@gmail.com) All rights reserved. 2 | // 3 | // This file is a part of the WTLBuilder. 4 | // The use and distribution terms for this software are covered by the 5 | // Microsoft Public License (http://opensource.org/licenses/MS-PL) 6 | // which can be found in the file MS-PL.txt at the root folder. 7 | 8 | #ifndef __WINXPBUTTON_H 9 | #define __WINXPBUTTON_H 10 | 11 | 12 | #ifdef __WTLBUILDER__ 13 | 14 | namespace ViksoeCtrl 15 | { 16 | class CWinXPButtonComp:public CWinXPButton,public ControlComponent 17 | { 18 | public: 19 | CWinXPButtonComp(char * _name); 20 | ~CWinXPButtonComp(void); 21 | 22 | BEGIN_MSG_MAP(CWinXPButtonComp) 23 | CHAIN_MSG_MAP(ControlComponent) 24 | CHAIN_MSG_MAP(CWinXPButton) 25 | END_MSG_MAP() 26 | 27 | BOOL CreateComponent(Component * _Parent); 28 | void InitProperty(void); 29 | }; 30 | }; 31 | 32 | #endif 33 | 34 | #endif -------------------------------------------------------------------------------- /Components/ViksoeCtrl/ShellPropMacro.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) FlatGlobus(wtlbuilder@gmail.com) All rights reserved. 2 | // 3 | // This file is a part of the WTLBuilder. 4 | // The use and distribution terms for this software are covered by the 5 | // Microsoft Public License (http://opensource.org/licenses/MS-PL) 6 | // which can be found in the file MS-PL.txt at the root folder. 7 | 8 | #ifndef __SHELLPROPMACRO_H 9 | #define __SHELLPROPMACRO_H 10 | ////////////////////////////////////////////////////////////////////////// 11 | #define IMPLEMENT_SHELL_BOOL_PROPERTY(Class,Name,Style)\ 12 | void Class::set_##Name(BOOL val)\ 13 | {\ 14 | DWORD tempVal = val == TRUE ? (GetShellStyle() | (Style)) : (GetShellStyle() & ~(Style));\ 15 | SetShellStyle(tempVal);\ 16 | Populate(path);\ 17 | SetModified();\ 18 | }\ 19 | BOOL Class::get_##Name(void)\ 20 | {\ 21 | long val=GetShellStyle();\ 22 | return (val & (Style))==Style;\ 23 | } 24 | 25 | ////////////////////////////////////////////////////////////////////////// 26 | #endif -------------------------------------------------------------------------------- /SDK/Property/FontList.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) FlatGlobus(wtlbuilder@gmail.com) All rights reserved. 2 | // 3 | // This file is a part of the WTLBuilder. 4 | // The use and distribution terms for this software are covered by the 5 | // Microsoft Public License (http://opensource.org/licenses/MS-PL) 6 | // which can be found in the file MS-PL.txt at the root folder. 7 | 8 | #ifndef __IFONTLISTEDIT_H 9 | #define __IFONTLISTEDIT_H 10 | //////////////////////////////////////////////////////////////////////////////////////////// 11 | #include "PropertyListEdit.h" 12 | 13 | class PROPERTY_API CFontListEdit:public CInplaceListEdit 14 | { 15 | public: 16 | 17 | virtual void ShowProperty(PropertyBase *prop); 18 | void UpdateProperty(PropertyBase *prop); 19 | static BOOL CALLBACK EnumFontProc (LPLOGFONT lplf, LPTEXTMETRIC /*lptm*/, DWORD dwType, LPARAM lpData); 20 | static HWND CreateEdit(HWND Parent,CRect & Rect,PropertyBase * prop,CPoint &,LPARAM); 21 | }; 22 | //////////////////////////////////////////////////////////////////////////////////////////// 23 | #endif -------------------------------------------------------------------------------- /SDK/Property/StdAfx.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) FlatGlobus(wtlbuilder@gmail.com) All rights reserved. 2 | // 3 | // This file is a part of the WTLBuilder. 4 | // The use and distribution terms for this software are covered by the 5 | // Microsoft Public License (http://opensource.org/licenses/MS-PL) 6 | // which can be found in the file MS-PL.txt at the root folder. 7 | 8 | #pragma once 9 | 10 | #define _WIN32_WINNT 0x0600 11 | #include 12 | 13 | #define _WTL_NO_THEME_DELAYLOAD 14 | #define WIN32_LEAN_AND_MEAN 15 | #define _WTL_NO_CSTRING 16 | 17 | #include "warning.h" 18 | #include 19 | #include 20 | #include 21 | #include 22 | 23 | extern CAppModule _Module; 24 | 25 | #include 26 | #include 27 | #include 28 | #include 29 | #include 30 | #include 31 | #include 32 | #include 33 | #include "EventLib.h" 34 | #include "command.h" 35 | #include "Property.h" 36 | #include "Component.h" 37 | //#include "mmgr.h" 38 | 39 | -------------------------------------------------------------------------------- /Components/StdCtrl/Window.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) FlatGlobus(wtlbuilder@gmail.com) All rights reserved. 2 | // 3 | // This file is a part of the WTLBuilder. 4 | // The use and distribution terms for this software are covered by the 5 | // Microsoft Public License (http://opensource.org/licenses/MS-PL) 6 | // which can be found in the file MS-PL.txt at the root folder. 7 | 8 | #ifndef __WINDOW_H 9 | #define __WINDOW_H 10 | ////////////////////////////////////////////////////////////////////////// 11 | namespace StdCtrl 12 | { 13 | class CWindow:public CWindowImpl,public ControlComponent 14 | { 15 | public: 16 | DECLARE_WND_CLASS(NULL) 17 | CWindow(LPTSTR _name=NULL); 18 | ~CWindow(void); 19 | virtual BOOL CreateComponent(Component *); 20 | BEGIN_MSG_MAP(StdCtrl::CWindow) 21 | CHAIN_MSG_MAP(ControlComponent) 22 | REFLECT_NOTIFICATIONS_EX() 23 | END_MSG_MAP() 24 | 25 | virtual void InitProperty(void); 26 | }; 27 | } 28 | ////////////////////////////////////////////////////////////////////////// 29 | #endif 30 | -------------------------------------------------------------------------------- /Forms/Form/MDIFrameWindowImpl.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) FlatGlobus(wtlbuilder@gmail.com) All rights reserved. 2 | // 3 | // This file is a part of the WTLBuilder. 4 | // The use and distribution terms for this software are covered by the 5 | // Microsoft Public License (http://opensource.org/licenses/MS-PL) 6 | // which can be found in the file MS-PL.txt at the root folder. 7 | 8 | #ifndef __MDIFRAMEWINDOWIMPL_H 9 | #define __MDIFRAMEWINDOWIMPL_H 10 | ////////////////////////////////////////////////////////////////////////// 11 | namespace Form 12 | { 13 | class CMDIFrameWindowImpl:public CFormComponent 14 | { 15 | public: 16 | 17 | DECLARE_FRAME_WND_CLASS(NULL,IDI_FORM) 18 | CMDIFrameWindowImpl(LPTSTR _name=NULL); 19 | ~CMDIFrameWindowImpl(void); 20 | virtual void InitProperty(void); 21 | virtual BOOL CreateComponent(Component *); 22 | virtual void OnFinalMessage(HWND /*hWnd*/); 23 | virtual CRect GetMinRect(); 24 | }; 25 | } 26 | ////////////////////////////////////////////////////////////////////////// 27 | #endif -------------------------------------------------------------------------------- /Forms/Form/MDIChildWindowImpl.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) FlatGlobus(wtlbuilder@gmail.com) All rights reserved. 2 | // 3 | // This file is a part of the WTLBuilder. 4 | // The use and distribution terms for this software are covered by the 5 | // Microsoft Public License (http://opensource.org/licenses/MS-PL) 6 | // which can be found in the file MS-PL.txt at the root folder. 7 | 8 | #ifndef __MDICHILDWINDOWIMPL_H 9 | #define __MDICHILDWINDOWIMPL_H 10 | ////////////////////////////////////////////////////////////////////////// 11 | namespace Form 12 | { 13 | class CMDIChildWindowImpl:public CFormComponent 14 | { 15 | public: 16 | 17 | DECLARE_FRAME_WND_CLASS(NULL,IDI_FORM) 18 | 19 | CMDIChildWindowImpl(LPTSTR _name=NULL); 20 | ~CMDIChildWindowImpl(void); 21 | virtual void InitProperty(void); 22 | virtual BOOL CreateComponent(Component *); 23 | virtual void OnFinalMessage(HWND /*hWnd*/); 24 | virtual CRect GetMinRect(); 25 | }; 26 | } 27 | ////////////////////////////////////////////////////////////////////////// 28 | #endif -------------------------------------------------------------------------------- /Components/StdCtrl/HotKeyCtrl.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) FlatGlobus(wtlbuilder@gmail.com) All rights reserved. 2 | // 3 | // This file is a part of the WTLBuilder. 4 | // The use and distribution terms for this software are covered by the 5 | // Microsoft Public License (http://opensource.org/licenses/MS-PL) 6 | // which can be found in the file MS-PL.txt at the root folder. 7 | 8 | #ifndef __HOTKEYCTRL_H 9 | #define __HOTKEYCTRL_H 10 | ////////////////////////////////////////////////////////////////////////// 11 | namespace StdCtrl 12 | { 13 | class CHotKeyCtrl:public CWindowImpl,public ControlComponent 14 | { 15 | public: 16 | CHotKeyCtrl(LPTSTR _name=NULL); 17 | ~CHotKeyCtrl(void); 18 | virtual BOOL CreateComponent(Component *); 19 | BEGIN_MSG_MAP(StdCtrl::CHotKeyCtrl) 20 | CHAIN_MSG_MAP(ControlComponent) 21 | REFLECT_NOTIFICATIONS_EX() 22 | END_MSG_MAP() 23 | 24 | virtual void InitProperty(void); 25 | }; 26 | } 27 | ////////////////////////////////////////////////////////////////////////// 28 | #endif 29 | -------------------------------------------------------------------------------- /WTLBuilderView.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) FlatGlobus(wtlbuilder@gmail.com) All rights reserved. 2 | // 3 | // This file is a part of the WTLBuilder. 4 | // The use and distribution terms for this software are covered by the 5 | // Microsoft Public License (http://opensource.org/licenses/MS-PL) 6 | // which can be found in the file MS-PL.txt at the root folder. 7 | 8 | #pragma once 9 | 10 | class CWTLBuilderView : public CWindowImpl 11 | { 12 | public: 13 | DECLARE_WND_CLASS(NULL) 14 | 15 | BOOL PreTranslateMessage(MSG* pMsg); 16 | 17 | BEGIN_MSG_MAP(CWTLBuilderView) 18 | MESSAGE_HANDLER(WM_PAINT, OnPaint) 19 | END_MSG_MAP() 20 | 21 | // Handler prototypes (uncomment arguments if needed): 22 | // LRESULT MessageHandler(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/) 23 | // LRESULT CommandHandler(WORD /*wNotifyCode*/, WORD /*wID*/, HWND /*hWndCtl*/, BOOL& /*bHandled*/) 24 | // LRESULT NotifyHandler(int /*idCtrl*/, LPNMHDR /*pnmh*/, BOOL& /*bHandled*/) 25 | 26 | LRESULT OnPaint(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/); 27 | }; 28 | -------------------------------------------------------------------------------- /Forms/Form/Forms.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (C) FlatGlobus(wtlbuilder@gmail.com) All rights reserved. 2 | // 3 | // This file is a part of the WTLBuilder. 4 | // The use and distribution terms for this software are covered by the 5 | // Microsoft Public License (http://opensource.org/licenses/MS-PL) 6 | // which can be found in the file MS-PL.txt at the root folder. 7 | 8 | #include "stdafx.h" 9 | #include "Forms.h" 10 | BOOL APIENTRY DllMain( HANDLE hModule, 11 | DWORD ul_reason_for_call, 12 | LPVOID lpReserved 13 | ) 14 | { 15 | switch (ul_reason_for_call) 16 | { 17 | case DLL_PROCESS_ATTACH: 18 | _Module.Init(NULL, (HINSTANCE)hModule); 19 | AtlInitCommonControls(ICC_WIN95_CLASSES|ICC_COOL_CLASSES|ICC_DATE_CLASSES| 20 | ICC_INTERNET_CLASSES|ICC_PAGESCROLLER_CLASS|ICC_NATIVEFNTCTL_CLASS); // add flags to support other controls 21 | break; 22 | case DLL_THREAD_ATTACH: 23 | break; 24 | case DLL_THREAD_DETACH: 25 | break; 26 | case DLL_PROCESS_DETACH: 27 | _Module.Term(); 28 | break; 29 | } 30 | return TRUE; 31 | } 32 | 33 | -------------------------------------------------------------------------------- /Components/WTLBuilderCtrl/ToolPanel.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) FlatGlobus(wtlbuilder@gmail.com) All rights reserved. 2 | // 3 | // This file is a part of the WTLBuilder. 4 | // The use and distribution terms for this software are covered by the 5 | // Microsoft Public License (http://opensource.org/licenses/MS-PL) 6 | // which can be found in the file MS-PL.txt at the root folder. 7 | 8 | #ifndef __TOOLPANEL_H 9 | #define __TOOLPANEL_H 10 | ////////////////////////////////////////////////////////////////////////// 11 | 12 | 13 | 14 | namespace WTLBuilderCtrl 15 | { 16 | class CToolTab:public CWindowImpl,public ControlComponent 17 | { 18 | public: 19 | CToolTab(LPTSTR _name=NULL); 20 | ~CToolTab(void); 21 | virtual BOOL CreateComponent(Component *); 22 | BEGIN_MSG_MAP(CToolTab) 23 | CHAIN_MSG_MAP(ControlComponent) 24 | REFLECT_NOTIFICATIONS_EX() 25 | END_MSG_MAP() 26 | virtual void InitProperty(void); 27 | }; 28 | } 29 | ////////////////////////////////////////////////////////////////////////// 30 | #endif -------------------------------------------------------------------------------- /Components/StdCtrl/TrackBarCtrl.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) FlatGlobus(wtlbuilder@gmail.com) All rights reserved. 2 | // 3 | // This file is a part of the WTLBuilder. 4 | // The use and distribution terms for this software are covered by the 5 | // Microsoft Public License (http://opensource.org/licenses/MS-PL) 6 | // which can be found in the file MS-PL.txt at the root folder. 7 | 8 | #ifndef __TRACKBARCTRL_H 9 | #define __TRACKBARCTRL_H 10 | ////////////////////////////////////////////////////////////////////////// 11 | namespace StdCtrl 12 | { 13 | class CTrackBarCtrl:public CWindowImpl,public ControlComponent 14 | { 15 | public: 16 | CTrackBarCtrl(LPTSTR _name=NULL); 17 | ~CTrackBarCtrl(void); 18 | virtual BOOL CreateComponent(Component *); 19 | BEGIN_MSG_MAP(StdCtrl::CTrackBarCtrl) 20 | CHAIN_MSG_MAP(ControlComponent) 21 | REFLECT_NOTIFICATIONS_EX() 22 | END_MSG_MAP() 23 | 24 | virtual void InitProperty(void); 25 | }; 26 | } 27 | ////////////////////////////////////////////////////////////////////////// 28 | #endif 29 | -------------------------------------------------------------------------------- /ValueListHelper.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) FlatGlobus(wtlbuilder@gmail.com) All rights reserved. 2 | // 3 | // This file is a part of the WTLBuilder. 4 | // The use and distribution terms for this software are covered by the 5 | // Microsoft Public License (http://opensource.org/licenses/MS-PL) 6 | // which can be found in the file MS-PL.txt at the root folder. 7 | 8 | #ifndef __VALUELISTHELPER_H 9 | #define __VALUELISTHELPER_H 10 | ////////////////////////////////////////////////////////////////////////// 11 | class CValueListHelper : public IDispDynImpl 12 | { 13 | public: 14 | 15 | BEGIN_DISPATCH_MAP(CValueListHelper) 16 | DISP_METHOD(GetValCount, VT_I4, 1, VTS_BSTR) 17 | DISP_METHOD(GetValID, VT_I4, 2, VTS_BSTR VTS_I4) 18 | DISP_METHOD(GetValName, VT_BSTR, 2, VTS_BSTR VTS_I4) 19 | END_DISPATCH_MAP() 20 | 21 | long __stdcall GetValCount(BSTR customValName); 22 | long __stdcall GetValID(BSTR customValName,long idx); 23 | BSTR __stdcall GetValName(BSTR customValName,long idx); 24 | }; 25 | ////////////////////////////////////////////////////////////////////////// 26 | #endif -------------------------------------------------------------------------------- /Components/StdCtrl/Menu.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) FlatGlobus(wtlbuilder@gmail.com) All rights reserved. 2 | // 3 | // This file is a part of the WTLBuilder. 4 | // The use and distribution terms for this software are covered by the 5 | // Microsoft Public License (http://opensource.org/licenses/MS-PL) 6 | // which can be found in the file MS-PL.txt at the root folder. 7 | 8 | #ifndef __IMAGELIST_H 9 | #define __IMAGELIST_H 10 | ////////////////////////////////////////////////////////////////////////// 11 | namespace StdCtrl 12 | { 13 | class CMenu:public Component 14 | { 15 | WTL::CMenu hMenu; 16 | CString menuID; 17 | void CreateSampleMenu(); 18 | public: 19 | CMenu(LPTSTR _name=NULL); 20 | ~CMenu(void); 21 | virtual BOOL CreateComponent(Component *); 22 | virtual void DeleteComponent(); 23 | 24 | virtual void InitProperty(void); 25 | virtual CString GetComponetKind(){return _T("MENU");} 26 | virtual HANDLE GetHandle(); 27 | DECLARE_PROPERTY(ID,CString) 28 | }; 29 | } 30 | ////////////////////////////////////////////////////////////////////////// 31 | #endif 32 | -------------------------------------------------------------------------------- /Components/DecorativeCtrl/stdafx.h: -------------------------------------------------------------------------------- 1 | // TODO: reference additional headers your program requires here 2 | // stdafx.h : include file for standard system include files, 3 | // or project specific include files that are used frequently, but 4 | // are changed infrequently 5 | // 6 | 7 | #pragma once 8 | 9 | #define _WIN32_WINNT 0x0600 10 | #include 11 | 12 | #define _WTL_NO_THEME_DELAYLOAD 13 | #define _WTL_NO_CSTRING 14 | 15 | #include "warning.h" 16 | 17 | #include 18 | #include 19 | #include 20 | #include 21 | #include 22 | 23 | extern CAppModule _Module; 24 | 25 | #include 26 | #include 27 | #include 28 | #include 29 | #include 30 | #include 31 | #include 32 | #include "EventLib.h" 33 | #include "component.h" 34 | #include "resource.h" 35 | #include "Register.h" 36 | #include "PropertyListEdit.h" 37 | #include "PagesList.h" 38 | #include "CtrlComponent.h" 39 | 40 | #pragma comment( lib, "utils.lib" ) 41 | #pragma comment( lib, "event.lib" ) 42 | #pragma comment( lib, "property.lib" ) 43 | 44 | -------------------------------------------------------------------------------- /SDK/Utils/LayoutMgr.cpp: -------------------------------------------------------------------------------- 1 | // -------------------------------------------------------------------------- 2 | // Description : several WTL utility classes for managing the layout of window children 3 | // Author : Serge Weinstock 4 | // 5 | // You are free to use, distribute or modify this code 6 | // as long as this header is not removed or modified. 7 | // -------------------------------------------------------------------------- 8 | #include "stdafx.h" 9 | #include "LayoutMgr.h" 10 | 11 | //============================================================================= 12 | // Private messages 13 | //============================================================================= 14 | const RegisteredWindowMessage WMU_PS_ATTACH_PAGE(_T("WTLU_LM::WMU_PS_ATTACH_PAGE")); 15 | const RegisteredWindowMessage WMU_PS_INIT(_T("WTLU_LM::WMU_PS_INIT")); 16 | const RegisteredWindowMessage WMU_PS_ATTACH_PS(_T("WTLU_LM::WMU_PS_ATTACH_PS")); 17 | 18 | //============================================================================= 19 | // 20 | //============================================================================= 21 | int SysInfo::_isThemeSupported = -1; 22 | -------------------------------------------------------------------------------- /AppWiz/Files/Templates/1033/LayoutMgr.cpp: -------------------------------------------------------------------------------- 1 | // -------------------------------------------------------------------------- 2 | // Description : several WTL utility classes for managing the layout of window children 3 | // Author : Serge Weinstock 4 | // 5 | // You are free to use, distribute or modify this code 6 | // as long as this header is not removed or modified. 7 | // -------------------------------------------------------------------------- 8 | #include "stdafx.h" 9 | #include "LayoutMgr.h" 10 | 11 | //============================================================================= 12 | // Private messages 13 | //============================================================================= 14 | const RegisteredWindowMessage WMU_PS_ATTACH_PAGE(_T("WTLU_LM::WMU_PS_ATTACH_PAGE")); 15 | const RegisteredWindowMessage WMU_PS_INIT(_T("WTLU_LM::WMU_PS_INIT")); 16 | const RegisteredWindowMessage WMU_PS_ATTACH_PS(_T("WTLU_LM::WMU_PS_ATTACH_PS")); 17 | 18 | //============================================================================= 19 | // 20 | //============================================================================= 21 | int SysInfo::_isThemeSupported = -1; 22 | -------------------------------------------------------------------------------- /Components/StdCtrl/stdafx.h: -------------------------------------------------------------------------------- 1 | // TODO: reference additional headers your program requires here 2 | // stdafx.h : include file for standard system include files, 3 | // or project specific include files that are used frequently, but 4 | // are changed infrequently 5 | // 6 | #pragma once 7 | 8 | #define _WIN32_WINNT 0x0600 9 | #include 10 | 11 | #define _WTL_NO_THEME_DELAYLOAD 12 | #define _WTL_NO_CSTRING 13 | 14 | #include "warning.h" 15 | #include 16 | #include 17 | #include 18 | #include 19 | 20 | extern CAppModule _Module; 21 | #include 22 | #include 23 | #include 24 | #include 25 | #include 26 | #include 27 | #include 28 | #include 29 | #include "EventLib.h" 30 | #include "component.h" 31 | #include "ctrlcomponent.h" 32 | #include "Register.h" 33 | //#include "mmgr.h" 34 | 35 | #pragma comment( lib, "utils.lib" ) 36 | #pragma comment( lib, "event.lib" ) 37 | //#pragma comment( lib, "mmgr.lib" ) 38 | #pragma comment( lib, "property.lib" ) 39 | // TODO: reference additional headers your program requires here 40 | -------------------------------------------------------------------------------- /Forms/Form/stdafx.h: -------------------------------------------------------------------------------- 1 | // stdafx.h : include file for standard system include files, 2 | // or project specific include files that are used frequently, but 3 | // are changed infrequently 4 | // 5 | 6 | #pragma once 7 | 8 | #define _WIN32_WINNT 0x0600 9 | #include 10 | 11 | #define _WTL_NO_THEME_DELAYLOAD 12 | #define _WTL_NO_CSTRING 13 | 14 | #include "warning.h" 15 | 16 | #include 17 | #include 18 | #include 19 | #include 20 | 21 | extern CAppModule _Module; 22 | 23 | #include 24 | #include 25 | #include 26 | #include 27 | #include 28 | #include 29 | #include 30 | #include 31 | #include 32 | #include 33 | #include "EventLib.h" 34 | #include "Command.h" 35 | #include "Component.h" 36 | #include "FormComponent.h" 37 | #include 38 | #include "resource.h" 39 | #include "LayoutMgr.h" 40 | //#include "mmgr.h" 41 | 42 | #pragma comment( lib, "utils.lib" ) 43 | #pragma comment( lib, "event.lib" ) 44 | //#pragma comment( lib, "mmgr.lib" ) 45 | #pragma comment( lib, "property.lib" ) 46 | -------------------------------------------------------------------------------- /Components/ViksoeCtrl/EditListBoxComp.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) FlatGlobus(wtlbuilder@gmail.com) All rights reserved. 2 | // 3 | // This file is a part of the WTLBuilder. 4 | // The use and distribution terms for this software are covered by the 5 | // Microsoft Public License (http://opensource.org/licenses/MS-PL) 6 | // which can be found in the file MS-PL.txt at the root folder. 7 | 8 | #if !defined(__EDITLISTBOXCOMP_H_) 9 | #define __EDITLISTBOXCOMP_H_ 10 | 11 | #ifdef __WTLBUILDER__ 12 | 13 | #include "EditListBox.h" 14 | 15 | namespace ViksoeCtrl 16 | { 17 | class CEditListBoxComp:public CEditListBox,public ControlComponent 18 | { 19 | CString caption; 20 | public: 21 | CEditListBoxComp(char * _name); 22 | ~CEditListBoxComp(void); 23 | 24 | BEGIN_MSG_MAP(CEditListBoxComp) 25 | CHAIN_MSG_MAP(ControlComponent) 26 | CHAIN_MSG_MAP(CEditListBox) 27 | END_MSG_MAP() 28 | 29 | BOOL CreateComponent(Component * _Parent); 30 | void InitProperty(void); 31 | DECLARE_PROPERTY(Caption,CString) 32 | }; 33 | }; 34 | 35 | #endif 36 | 37 | #endif // !defined(__EDITLISTBOX_H_) 38 | -------------------------------------------------------------------------------- /Bin/Script/checkProperty.js: -------------------------------------------------------------------------------- 1 | // Copyright (C) FlatGlobus(wtlbuilder@gmail.com) All rights reserved. 2 | // 3 | // This file is a part of the WTLBuilder. 4 | // The use and distribution terms for this software are covered by the 5 | // Microsoft Public License (http://opensource.org/licenses/MS-PL) 6 | // which can be found in the file MS-PL.txt at the root folder. 7 | ///////////////////////////////////////////////////////////////////////////////////////////// 8 | function CheckProperty(form, component, prop, errVal) 9 | { 10 | //var compClass = component.Class; 11 | if (component.Item(prop) == errVal) 12 | { 13 | Output.Err = "Form \"" + form.Item("Name") + "\", Component \"" + component.Item("Name") + "\" has incorrect value. Property name = \"" + prop + "\". Value = \"" + errVal + "\""; 14 | return false; 15 | } 16 | return true; 17 | } 18 | 19 | 20 | function CheckComponent(form, comp) 21 | { 22 | CheckProperty(form, comp, "Name", ""); 23 | CheckProperty(form, comp, "ID", ""); 24 | CheckProperty(form, comp, "Width", "0"); 25 | CheckProperty(form, comp, "Height", "0"); 26 | if (comp.Item("EnableToolTip") == true) 27 | { 28 | CheckProperty(form, comp, "ToolTip", ""); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /ModuleLoader.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) FlatGlobus(wtlbuilder@gmail.com) All rights reserved. 2 | // 3 | // This file is a part of the WTLBuilder. 4 | // The use and distribution terms for this software are covered by the 5 | // Microsoft Public License (http://opensource.org/licenses/MS-PL) 6 | // which can be found in the file MS-PL.txt at the root folder. 7 | 8 | #pragma once 9 | ////////////////////////////////////////////////////////////////////////// 10 | class CModuleItem 11 | { 12 | public: 13 | CModuleItem(void); 14 | CModuleItem(const CString &); 15 | ~CModuleItem(void); 16 | BOOL Load(void); 17 | void Free(void); 18 | void SetName(const CString &); 19 | const CString & GetName(void); 20 | BOOL IsLoaded(void); 21 | protected: 22 | CString DllName; 23 | HINSTANCE Handle; 24 | }; 25 | 26 | typedef CSimpleArray CModuleItems; 27 | 28 | class CModuleLoader 29 | { 30 | public: 31 | CModuleLoader(); 32 | virtual ~CModuleLoader(); 33 | void Load(void); 34 | void Free(void); 35 | void Add(const CString &,BOOL DoLoad=FALSE); 36 | protected: 37 | CModuleItems modules; 38 | }; 39 | ////////////////////////////////////////////////////////////////////////// 40 | -------------------------------------------------------------------------------- /Components/WTLBuilderCtrl/PropertyBox.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) FlatGlobus(wtlbuilder@gmail.com) All rights reserved. 2 | // 3 | // This file is a part of the WTLBuilder. 4 | // The use and distribution terms for this software are covered by the 5 | // Microsoft Public License (http://opensource.org/licenses/MS-PL) 6 | // which can be found in the file MS-PL.txt at the root folder. 7 | 8 | #ifndef __LISTBOX_H 9 | #define __LISTBOX_H 10 | ////////////////////////////////////////////////////////////////////////// 11 | 12 | #include <..\Property\component.h> 13 | 14 | namespace WTLBuilderCtrl 15 | { 16 | class CPropertyList:public CWindowImpl,public ControlComponent 17 | { 18 | CBrush m_bkgBrush; 19 | public: 20 | CPropertyList(LPTSTR _name=NULL); 21 | ~CPropertyList(void); 22 | virtual BOOL CreateComponent(Component *); 23 | BEGIN_MSG_MAP(CPropertyList) 24 | CHAIN_MSG_MAP(ControlComponent) 25 | MESSAGE_HANDLER(OCM_CTLCOLORLISTBOX,OnCtlColor) 26 | REFLECT_NOTIFICATIONS_EX() 27 | END_MSG_MAP() 28 | virtual void InitProperty(void); 29 | LRESULT OnCtlColor(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& handled); 30 | }; 31 | } 32 | ////////////////////////////////////////////////////////////////////////// 33 | #endif -------------------------------------------------------------------------------- /SDK/Property/PreReadForm.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (C) FlatGlobus(wtlbuilder@gmail.com) All rights reserved. 2 | // 3 | // This file is a part of the WTLBuilder. 4 | // The use and distribution terms for this software are covered by the 5 | // Microsoft Public License (http://opensource.org/licenses/MS-PL) 6 | // which can be found in the file MS-PL.txt at the root folder. 7 | 8 | #include "stdafx.h" 9 | #include "property.h" 10 | #include 11 | //#include "Component.h" 12 | ////////////////////////////////////////////////////////////////////////// 13 | BOOL PROPERTY_API PreReadForm(const CString &fn,CString &page,CString &cmpName) 14 | { 15 | try 16 | { 17 | CXMLDOMDocument2 Doc; 18 | //Doc = CDOMDocument40Class::CreateXMLDOMDocument2(); 19 | Doc = CDOMDocument30Class::CreateXMLDOMDocument2(); 20 | if(Doc.Load((LPCTSTR)fn)==FALSE) 21 | return FALSE; 22 | CXMLDOMNode formNode(Doc.SelectSingleNode(_T("Form"))); 23 | if(formNode==NULL) 24 | return FALSE; 25 | cmpName=formNode.GetAttributes().GetNamedItem(_T("Class")).GetText(); 26 | page=formNode.GetAttributes().GetNamedItem(_T("Page")).GetText(); 27 | } 28 | catch (CComException *pE) 29 | { 30 | pE->Delete(); 31 | return FALSE; 32 | } 33 | catch(...) 34 | { 35 | return FALSE; 36 | } 37 | return TRUE; 38 | } -------------------------------------------------------------------------------- /Forms/Form/WindowImpl.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) FlatGlobus(wtlbuilder@gmail.com) All rights reserved. 2 | // 3 | // This file is a part of the WTLBuilder. 4 | // The use and distribution terms for this software are covered by the 5 | // Microsoft Public License (http://opensource.org/licenses/MS-PL) 6 | // which can be found in the file MS-PL.txt at the root folder. 7 | 8 | #ifndef __WINDOWIMPL_H 9 | #define __WINDOWIMPL_H 10 | ////////////////////////////////////////////////////////////////////////// 11 | namespace Form 12 | { 13 | 14 | class CWindowImpl:public CFormComponent 15 | { 16 | public: 17 | DECLARE_FRAME_WND_CLASS(NULL, IDI_FORM) 18 | 19 | CWindowImpl(LPTSTR _name=NULL); 20 | ~CWindowImpl(void); 21 | virtual void InitProperty(void); 22 | virtual BOOL CreateComponent(Component *); 23 | virtual void OnFinalMessage(HWND /*hWnd*/); 24 | 25 | virtual BOOL __stdcall get_IsControl(); 26 | virtual BOOL __stdcall get_IsForm(); 27 | 28 | IMPLEMENT_WINSTYLE_BOOL_PROPERTY_I(Border,(WS_BORDER)) 29 | IMPLEMENT_WINSTYLE_BOOL_PROPERTY_NOT_I(Enabled,(WS_DISABLED)) 30 | IMPLEMENT_WINSTYLE_BOOL_PROPERTY_I(TabStop,(WS_TABSTOP)) 31 | IMPLEMENT_WINSTYLE_BOOL_PROPERTY_I(Group,(WS_GROUP)) 32 | }; 33 | } 34 | ////////////////////////////////////////////////////////////////////////// 35 | #endif -------------------------------------------------------------------------------- /Components/ViksoeCtrl/TreeListComp.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) FlatGlobus(wtlbuilder@gmail.com) All rights reserved. 2 | // 3 | // This file is a part of the WTLBuilder. 4 | // The use and distribution terms for this software are covered by the 5 | // Microsoft Public License (http://opensource.org/licenses/MS-PL) 6 | // which can be found in the file MS-PL.txt at the root folder. 7 | 8 | #pragma once 9 | ////////////////////////////////////////////////////////////////////////// 10 | //#include "TreeListView.h" 11 | #include 12 | #ifdef __WTLBUILDER__ 13 | namespace ViksoeCtrl 14 | { 15 | class CTreeListViewComp:public CWindowImpl/*CTreeListViewCtrl*/,public ControlComponent 16 | { 17 | public: 18 | CTreeListViewComp(LPTSTR _name=NULL); 19 | ~CTreeListViewComp(void); 20 | virtual BOOL CreateComponent(Component *); 21 | BEGIN_MSG_MAP(CTreeListViewComp) 22 | CHAIN_MSG_MAP(ControlComponent) 23 | // CHAIN_MSG_MAP(CListViewCtrl)/*CTreeListViewCtrl*/ 24 | REFLECT_NOTIFICATIONS_EX() 25 | END_MSG_MAP() 26 | 27 | virtual void InitProperty(void); 28 | }; 29 | }; 30 | #endif 31 | ////////////////////////////////////////////////////////////////////////// -------------------------------------------------------------------------------- /Bin/Script/CWindow.js: -------------------------------------------------------------------------------- 1 | // Copyright (C) FlatGlobus(wtlbuilder@gmail.com) All rights reserved. 2 | // 3 | // This file is a part of the WTLBuilder. 4 | // The use and distribution terms for this software are covered by the 5 | // Microsoft Public License (http://opensource.org/licenses/MS-PL) 6 | // which can be found in the file MS-PL.txt at the root folder. 7 | 8 | function StdCtl_CWindow(form, component) 9 | { 10 | var cmpName = component.Item("Name"); 11 | 12 | CheckComponent(form, component); 13 | 14 | var headerStr="\t"+"CWindowImpl"+"\t"+cmpName+";\n"; 15 | 16 | headerStr+=MakeFontDeclaration(component); 17 | 18 | var sourceStr="\t"+cmpName+".Create("+component.Item("ParentName")+","; 19 | sourceStr+=MakeRect(component)+","; 20 | sourceStr+=MakeLocalizedCString(component.Item("Caption"),component)+","+ 21 | MakeWindowStyle(component)+","+ 22 | MakeExWindowStyle(component)+","+ 23 | component.Item("ID")+");\n"; 24 | sourceStr+=MakeControlFont(component); 25 | sourceStr+=MakeToolTip(component); 26 | sourceStr+="\n"; 27 | 28 | var codegen=form.Code; 29 | codegen.Insert(endMemberDecl,headerStr); 30 | codegen.Insert(endMemberCreation,sourceStr); 31 | codegen.Insert(endCtrlIDDecl,MakeControlID(component)); 32 | } 33 | -------------------------------------------------------------------------------- /Components/StdCtrl/Window.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (C) FlatGlobus(wtlbuilder@gmail.com) All rights reserved. 2 | // 3 | // This file is a part of the WTLBuilder. 4 | // The use and distribution terms for this software are covered by the 5 | // Microsoft Public License (http://opensource.org/licenses/MS-PL) 6 | // which can be found in the file MS-PL.txt at the root folder. 7 | 8 | #include "StdAfx.h" 9 | #include "window.h" 10 | #include "..\Component\Register.h" 11 | #include "resource.h" 12 | #include "..\Property\PropertyListEdit.h" 13 | ////////////////////////////////////////////////////////////////////////// 14 | namespace StdCtrl 15 | { 16 | REGISTER_COMPONENT(CWindow,StdCtl,IDB_WINDOWIMPL) 17 | 18 | CWindow::CWindow(char * _name):ControlComponent(_name) 19 | { 20 | SetDefDim(50,14); 21 | } 22 | 23 | CWindow::~CWindow(void) 24 | { 25 | } 26 | 27 | BOOL CWindow::CreateComponent(Component * _Parent) 28 | { 29 | Parent=_Parent; 30 | CWindowImpl::Create(GetComponentParent()->GetHandle(),GetBoundsRect(),NULL,get_CtrlWindowStyle(),get_CtrlWindowStyleEx()); 31 | return ::IsWindow(m_hWnd); 32 | } 33 | 34 | void CWindow::InitProperty(void) 35 | { 36 | ControlComponent::InitProperty(); 37 | } 38 | } 39 | ////////////////////////////////////////////////////////////////////////// 40 | -------------------------------------------------------------------------------- /Components/ViksoeCtrl/stdafx.h: -------------------------------------------------------------------------------- 1 | // TODO: reference additional headers your program requires here 2 | // stdafx.h : include file for standard system include files, 3 | // or project specific include files that are used frequently, but 4 | // are changed infrequently 5 | // 6 | 7 | #pragma once 8 | 9 | #define _WIN32_WINNT 0x0600 10 | #include 11 | 12 | #define _WTL_NO_THEME_DELAYLOAD 13 | #define _WTL_NO_CSTRING 14 | 15 | #include "warning.h" 16 | 17 | #include 18 | #include 19 | #include 20 | #include 21 | #include "atlshellextbase.h" 22 | 23 | class CExAppModule : public CAppModule 24 | { 25 | public: 26 | CShellMalloc m_Allocator; 27 | }; 28 | 29 | extern CExAppModule _Module; 30 | 31 | #include 32 | #include 33 | #include 34 | #include 35 | #include 36 | #include 37 | #include 38 | #include 39 | #include "EventLib.h" 40 | #include "component.h" 41 | #include "ctrlcomponent.h" 42 | #include "resource.h" 43 | #include "Register.h" 44 | //#include "mmgr.h" 45 | 46 | #pragma comment( lib, "utils.lib" ) 47 | #pragma comment( lib, "event.lib" ) 48 | //#pragma comment( lib, "mmgr.lib" ) 49 | #pragma comment( lib, "property.lib" ) 50 | 51 | #include 52 | #pragma comment(lib, "gdiplus.lib") 53 | 54 | -------------------------------------------------------------------------------- /Bin/Template/CStringsEdit/CStringsEdit.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | ////////////////////////////////////////////////////////////////////////// 3 | #include "resource.h" 4 | //{{WTLBUILDER_INCLUDE_DECLARATION 5 | //}}WTLBUILDER_INCLUDE_DECLARATION 6 | 7 | #undef __WTLBUILDER__ 8 | #include "editlistbox.h" 9 | 10 | //{{WTLBUILDER_CONTROL_ID_DECLARATION 11 | #define IDC_STRINGS_LIST 1015 12 | //}}WTLBUILDER_CONTROL_ID_DECLARATION 13 | 14 | class CStringsEdit:public CDialogImpl 15 | { 16 | CToolTipCtrl m_toolTip; 17 | //{{WTLBUILDER_MEMBER_DECLARATION 18 | CFont m_formFont; 19 | CButton m_ok; 20 | CButton m_cancel; 21 | CEditListBox m_stringsList; 22 | //}}WTLBUILDER_MEMBER_DECLARATION 23 | PropertyBase * prop; 24 | public: 25 | enum { IDD = IDD_NULL }; 26 | 27 | BEGIN_MSG_MAP(CStringsEdit) 28 | MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog) 29 | COMMAND_ID_HANDLER(IDOK, OnCloseCmd) 30 | COMMAND_ID_HANDLER(IDCANCEL, OnCloseCmd) 31 | REFLECT_NOTIFICATIONS() 32 | END_MSG_MAP() 33 | 34 | CStringsEdit(PropertyBase *); 35 | 36 | LRESULT OnInitDialog(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/); 37 | LRESULT OnCloseCmd(WORD /*wNotifyCode*/, WORD wID, HWND /*hWndCtl*/, BOOL& /*bHandled*/); 38 | }; 39 | void StringsEdit(HWND parent,PropertyBase *prop); 40 | ////////////////////////////////////////////////////////////////////////// 41 | -------------------------------------------------------------------------------- /Bin/Script/CHotKeyCtrl.js: -------------------------------------------------------------------------------- 1 | // Copyright (C) FlatGlobus(wtlbuilder@gmail.com) All rights reserved. 2 | // 3 | // This file is a part of the WTLBuilder. 4 | // The use and distribution terms for this software are covered by the 5 | // Microsoft Public License (http://opensource.org/licenses/MS-PL) 6 | // which can be found in the file MS-PL.txt at the root folder. 7 | 8 | function StdCtl_CHotKeyCtrl(form, component) 9 | { 10 | var cmpName = component.Item("Name"); 11 | 12 | CheckComponent(form, component); 13 | 14 | var headerStr="\t"+"CHotKeyCtrl"+"\t"+cmpName+";\n"; 15 | headerStr+=MakeContainedDecl(form,component); 16 | headerStr+=MakeFontDeclaration(component); 17 | 18 | var sourceStr="\t"+cmpName+".Create("+component.Item("ParentName")+","; 19 | sourceStr+=MakeRect(component)+",NULL,"+ 20 | MakeWindowStyle(component)+","+ 21 | MakeExWindowStyle(component)+","+ 22 | component.Item("ID")+");\n"; 23 | sourceStr+=MakeControlFont(component); 24 | sourceStr+=MakeToolTip(component); 25 | sourceStr+="\n"; 26 | 27 | MakeSetFocus(form,component); 28 | MakeContained(form,component); 29 | 30 | var codegen=form.Code; 31 | codegen.Insert(endMemberDecl,headerStr); 32 | codegen.Insert(endMemberCreation,sourceStr); 33 | codegen.Insert(endCtrlIDDecl,MakeControlID(component)); 34 | } 35 | -------------------------------------------------------------------------------- /AppWiz/Files/Templates/1033/AboutDlg.h: -------------------------------------------------------------------------------- 1 | // aboutdlg.h : interface of the CAboutDlg class 2 | // 3 | ///////////////////////////////////////////////////////////////////////////// 4 | 5 | #pragma once 6 | 7 | //{{WTLBUILDER_INCLUDE_DECLARATION 8 | //}}WTLBUILDER_INCLUDE_DECLARATION 9 | 10 | //{{WTLBUILDER_CONTROL_ID_DECLARATION 11 | //}}WTLBUILDER_CONTROL_ID_DECLARATION 12 | 13 | class CAboutDlg : public [!output ATL_NS]CDialogImpl 14 | //{{WTLBUILDER_BASE_CLASS 15 | //}}WTLBUILDER_BASE_CLASS 16 | { 17 | //{{WTLBUILDER_MEMBER_DECLARATION 18 | //}}WTLBUILDER_MEMBER_DECLARATION 19 | public: 20 | enum { IDD = IDD_NULL }; 21 | 22 | BEGIN_MSG_MAP(CAboutDlg) 23 | MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog) 24 | COMMAND_ID_HANDLER(IDOK, OnCloseCmd) 25 | COMMAND_ID_HANDLER(IDCANCEL, OnCloseCmd) 26 | END_MSG_MAP() 27 | 28 | CAboutDlg(void); 29 | 30 | // Handler prototypes (uncomment arguments if needed): 31 | // LRESULT MessageHandler(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/) 32 | // LRESULT CommandHandler(WORD /*wNotifyCode*/, WORD /*wID*/, HWND /*hWndCtl*/, BOOL& /*bHandled*/) 33 | // LRESULT NotifyHandler(int /*idCtrl*/, LPNMHDR /*pnmh*/, BOOL& /*bHandled*/) 34 | 35 | LRESULT OnInitDialog(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/); 36 | LRESULT OnCloseCmd(WORD /*wNotifyCode*/, WORD wID, HWND /*hWndCtl*/, BOOL& /*bHandled*/); 37 | }; 38 | -------------------------------------------------------------------------------- /SDK/Event/Event.vcxproj.filters: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Source Files 6 | 7 | 8 | Source Files 9 | 10 | 11 | Source Files 12 | 13 | 14 | 15 | 16 | Header Files 17 | 18 | 19 | Header Files 20 | 21 | 22 | Header Files 23 | 24 | 25 | Header Files 26 | 27 | 28 | 29 | 30 | {d2809032-7777-47ff-94d4-d7db7929be1c} 31 | h;hpp;hxx;hm;inl;inc 32 | 33 | 34 | {40a035ac-67f1-4931-80fa-e2dcfcd51d16} 35 | cpp;c;cxx;def;odl;idl;hpj;bat;asm 36 | 37 | 38 | -------------------------------------------------------------------------------- /Bin/Script/CStatusBarCtrl.js: -------------------------------------------------------------------------------- 1 | // Copyright (C) FlatGlobus(wtlbuilder@gmail.com) All rights reserved. 2 | // 3 | // This file is a part of the WTLBuilder. 4 | // The use and distribution terms for this software are covered by the 5 | // Microsoft Public License (http://opensource.org/licenses/MS-PL) 6 | // which can be found in the file MS-PL.txt at the root folder. 7 | 8 | function StdCtl_CStatusBarCtrl(form, component) 9 | { 10 | var cmpName = component.Item("Name"); 11 | 12 | CheckComponent(form, component); 13 | 14 | var headerStr = "\t" + "CStatusBarCtrl" + "\t" + cmpName + ";\n"; 15 | headerStr+=MakeContainedDecl(form,component); 16 | headerStr+=MakeFontDeclaration(component); 17 | 18 | var sourceStr="\t"+cmpName+".Create("+component.Item("ParentName")+","; 19 | sourceStr+=MakeRect(component)+",NULL,"+ 20 | MakeCommonControlStyle(component, MakeWindowStyle(component))+","+ 21 | MakeExWindowStyle(component)+","+ 22 | component.Item("ID")+");\n"; 23 | sourceStr+=MakeControlFont(component); 24 | sourceStr+=MakeToolTip(component); 25 | sourceStr+="\n"; 26 | 27 | MakeSetFocus(form,component); 28 | MakeContained(form,component); 29 | 30 | var codegen=form.Code; 31 | codegen.Insert(endMemberDecl,headerStr); 32 | codegen.Insert(endMemberCreation,sourceStr); 33 | codegen.Insert(endCtrlIDDecl,MakeControlID(component)); 34 | } 35 | -------------------------------------------------------------------------------- /Bin/Script/SplitterBar.js: -------------------------------------------------------------------------------- 1 | // Copyright (C) FlatGlobus(wtlbuilder@gmail.com) All rights reserved. 2 | // 3 | // This file is a part of the WTLBuilder. 4 | // The use and distribution terms for this software are covered by the 5 | // Microsoft Public License (http://opensource.org/licenses/MS-PL) 6 | // which can be found in the file MS-PL.txt at the root folder. 7 | 8 | function ViksoeCtrl_CVertSplitterCtrl(form, component) 9 | { 10 | var codegen = form.Code; 11 | var cmpName = component.Item("Name"); 12 | 13 | CheckComponent(form, component); 14 | 15 | var headerStr = "\t" + "CVertSplitterCtrl" + "\t" + cmpName + ";\n"; 16 | headerStr += MakeContainedDecl(form, component); 17 | 18 | var sourceStr = "\t" + cmpName + ".Create(" + component.Item("ParentName") + ","; 19 | sourceStr += MakeRect(component) + ",NULL," + MakeWindowStyle(component) + "," + 20 | MakeExWindowStyle(component) + "," + component.Item("ID") + ");\n"; 21 | sourceStr += "\n"; 22 | 23 | var postSource = ""; 24 | 25 | if (component.Item("LeftPane") != "" && component.Item("RightPane") != "") 26 | postSource = codegen.Format(component, "\t[!Name].SetSplitterPanes([!LeftPane],[!RightPane]);\n"); 27 | 28 | MakeContained(form, component); 29 | codegen.Insert(endMemberDecl, headerStr); 30 | codegen.Insert(endMemberCreation, sourceStr); 31 | codegen.Insert(endCtrlIDDecl, MakeControlID(component)); 32 | codegen.Insert(endPostCreation, postSource); 33 | } 34 | -------------------------------------------------------------------------------- /SDK/Property/PropertyListEdit.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) FlatGlobus(wtlbuilder@gmail.com) All rights reserved. 2 | // 3 | // This file is a part of the WTLBuilder. 4 | // The use and distribution terms for this software are covered by the 5 | // Microsoft Public License (http://opensource.org/licenses/MS-PL) 6 | // which can be found in the file MS-PL.txt at the root folder. 7 | 8 | #ifndef __PROPERTYLISTEDIT_H 9 | #define __PROPERTYLISTEDIT_H 10 | //////////////////////////////////////////////////////////////////////////////////////////// 11 | #include "InplaceEdit.h" 12 | 13 | typedef CWinTraits CInplaceListEditTraits; 14 | class PROPERTY_API CInplaceListEdit : 15 | public CInplaceEditBase 16 | { 17 | public: 18 | typedef CInplaceEditBase baseClass; 19 | BEGIN_MSG_MAP(CInplaceListEdit) 20 | CHAIN_MSG_MAP(baseClass) 21 | MESSAGE_HANDLER(WM_LBUTTONUP, OnLButtonUp) 22 | REFLECT_NOTIFICATIONS_EX() 23 | END_MSG_MAP() 24 | 25 | virtual void ShowProperty(PropertyBase *prop); 26 | void UpdateProperty(PropertyBase *prop); 27 | LRESULT OnLButtonUp(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled); 28 | static HWND CreateEdit(HWND Parent,CRect & Rect,PropertyBase * prop,CPoint &,LPARAM); 29 | }; 30 | //////////////////////////////////////////////////////////////////////////////////////////// 31 | #endif -------------------------------------------------------------------------------- /Components/StdCtrl/PaneContainer.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) FlatGlobus(wtlbuilder@gmail.com) All rights reserved. 2 | // 3 | // This file is a part of the WTLBuilder. 4 | // The use and distribution terms for this software are covered by the 5 | // Microsoft Public License (http://opensource.org/licenses/MS-PL) 6 | // which can be found in the file MS-PL.txt at the root folder. 7 | 8 | #pragma once 9 | 10 | namespace StdCtrl 11 | { 12 | class CPaneContainer:public WTL::CPaneContainer,public ControlComponent 13 | { 14 | CString title; 15 | BOOL closeButton; 16 | BOOL enableCloseButton; 17 | BOOL vertical; 18 | public: 19 | CPaneContainer(LPTSTR _name=NULL); 20 | ~CPaneContainer(void); 21 | virtual BOOL CreateComponent(Component *); 22 | BEGIN_MSG_MAP(StdCtrl::CPaneContainer) 23 | CHAIN_MSG_MAP(ControlComponent) 24 | CHAIN_MSG_MAP(CPaneContainerImpl) 25 | REFLECT_NOTIFICATIONS_EX() 26 | END_MSG_MAP() 27 | virtual void InitProperty(void); 28 | virtual CRect GetBoundsRect(void); 29 | virtual void SetBoundsRect(CRect rc); 30 | DECLARE_PROPERTY(Title,CString) 31 | DECLARE_PROPERTY(CloseButton,BOOL) 32 | DECLARE_PROPERTY(EnableCloseButton,BOOL) 33 | DECLARE_PROPERTY(Vertical,BOOL) 34 | 35 | //virtual BOOL MouseMove(CDC *,CPoint,HintItem); 36 | }; 37 | } 38 | -------------------------------------------------------------------------------- /Components/StdCtrl/ImageList.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) FlatGlobus(wtlbuilder@gmail.com) All rights reserved. 2 | // 3 | // This file is a part of the WTLBuilder. 4 | // The use and distribution terms for this software are covered by the 5 | // Microsoft Public License (http://opensource.org/licenses/MS-PL) 6 | // which can be found in the file MS-PL.txt at the root folder. 7 | 8 | #ifndef __IMAGELIST_H 9 | #define __IMAGELIST_H 10 | ////////////////////////////////////////////////////////////////////////// 11 | namespace StdCtrl 12 | { 13 | class CImageList:public WTL::CImageList,public Component 14 | { 15 | CColorref bkColor,maskColor; 16 | long cx,cy,imageCount,grow,flag; 17 | CImage bitmap; 18 | CString constructor; 19 | void OnImageChange(CImage *); 20 | void InternalCreate(void); 21 | public: 22 | CImageList(LPTSTR _name=NULL); 23 | ~CImageList(void); 24 | virtual BOOL CreateComponent(Component *); 25 | virtual void InitProperty(void); 26 | DECLARE_PROPERTY(BkColor,CColorref) 27 | DECLARE_PROPERTY(Mask,CColorref) 28 | DECLARE_PROPERTY(cx,long) 29 | DECLARE_PROPERTY(cy,long) 30 | DECLARE_PROPERTY(Grow,long) 31 | DECLARE_PROPERTY(ImageCount,long) 32 | DECLARE_PROPERTY(Flag,long) 33 | DECLARE_PROPERTY(Constructor,CString) 34 | virtual CString GetComponetKind(){return _T("IMAGELIST");} 35 | }; 36 | } 37 | ////////////////////////////////////////////////////////////////////////// 38 | #endif 39 | -------------------------------------------------------------------------------- /Bin/Script/CTreeListView.js: -------------------------------------------------------------------------------- 1 | // Copyright (C) FlatGlobus(wtlbuilder@gmail.com) All rights reserved. 2 | // 3 | // This file is a part of the WTLBuilder. 4 | // The use and distribution terms for this software are covered by the 5 | // Microsoft Public License (http://opensource.org/licenses/MS-PL) 6 | // which can be found in the file MS-PL.txt at the root folder. 7 | 8 | function ViksoeCtrl_CTreeListView(form, component) 9 | { 10 | var cmpName = component.Item("Name"); 11 | 12 | CheckComponent(form, component); 13 | 14 | var headerStr="\t"+"CTreeListViewCtrl"+"\t"+cmpName+";\n"; 15 | headerStr+=MakeContainedDecl(form,component); 16 | headerStr+=MakeFontDeclaration(component); 17 | 18 | var sourceStr="\t"+cmpName+".Create("+component.Item("ParentName")+","; 19 | sourceStr+=MakeRect(component)+",NULL,"+ 20 | MakeWindowStyle(component)+","+ 21 | MakeExWindowStyle(component)+","+ 22 | component.Item("ID")+");\n"; 23 | sourceStr+=MakeControlFont(component); 24 | sourceStr+=MakeToolTip(component); 25 | sourceStr+="\n"; 26 | 27 | MakeSetFocus(form,component); 28 | MakeContained(form,component); 29 | 30 | var codegen=form.Code; 31 | codegen.AddInclude(endIncludeDecl,CorrectPath(component.Item("IncludePath"))+"TreeListView.h"); 32 | codegen.Insert(endMemberDecl,headerStr); 33 | codegen.Insert(endMemberCreation,sourceStr); 34 | codegen.Insert(endCtrlIDDecl,MakeControlID(component)); 35 | } 36 | -------------------------------------------------------------------------------- /Components/WTLBuilderCtrl/ToolPanel.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (C) FlatGlobus(wtlbuilder@gmail.com) All rights reserved. 2 | // 3 | // This file is a part of the WTLBuilder. 4 | // The use and distribution terms for this software are covered by the 5 | // Microsoft Public License (http://opensource.org/licenses/MS-PL) 6 | // which can be found in the file MS-PL.txt at the root folder. 7 | 8 | #include "StdAfx.h" 9 | #include "toolpanel.h" 10 | #include "..\Property\Register.h" 11 | #include "resource.h" 12 | //#include "..\Property\PropertyListEdit.h" 13 | ////////////////////////////////////////////////////////////////////////// 14 | namespace WTLBuilderCtrl 15 | { 16 | REGISTER_COMPONENT(CToolTab,WTLBuilderCtrl,IDB_TOOLTAB) 17 | CToolTab::CToolTab(LPTSTR _name):ControlComponent(_name) 18 | { 19 | } 20 | 21 | CToolTab::~CToolTab(void) 22 | { 23 | } 24 | 25 | BOOL CToolTab::CreateComponent(Component * _Parent) 26 | { 27 | ADD_WIN_STYLE(WS_CHILD | WS_VISIBLE | WS_CLIPCHILDREN | TCS_TABS | TCS_FOCUSNEVER) 28 | SetComponentParent(_Parent); 29 | Create((HWND)_Parent->GetHandle(),GetBoundsRect(),0,get_InternalWindowStyle()); 30 | if(::IsWindow(m_hWnd)) 31 | InsertItem(0,_T("StdCtrl")); 32 | return ::IsWindow(m_hWnd); 33 | } 34 | 35 | void CToolTab::InitProperty(void) 36 | { 37 | ControlComponent::InitProperty(); 38 | } 39 | ////////////////////////////////////////////////////////////////////////// 40 | } 41 | -------------------------------------------------------------------------------- /AppWiz/Files/Templates/1033/Ribbon.h: -------------------------------------------------------------------------------- 1 | // ***************************************************************************** 2 | // * This is an automatically generated header file for UI Element definition * 3 | // * resource symbols and values. Please do not modify manually. * 4 | // ***************************************************************************** 5 | 6 | #pragma once 7 | 8 | #define ID_FILE_NEW 0xE100 9 | #define ID_FILE_OPEN 0xE101 10 | #define ID_FILE_CLOSE 0xE102 11 | #define ID_FILE_SAVE 0xE103 12 | #define ID_FILE_SAVE_AS 0xE104 13 | #define ID_FILE_PAGE_SETUP 0xE105 14 | #define ID_FILE_PRINT_SETUP 0xE106 15 | #define ID_FILE_PRINT 0xE107 16 | #define ID_FILE_PRINT_DIRECT 0xE108 17 | #define ID_FILE_PRINT_PREVIEW 0xE109 18 | #define ID_EDIT_COPY 0xE122 19 | #define ID_EDIT_CUT 0xE123 20 | #define ID_EDIT_FIND 0xE124 21 | #define ID_EDIT_PASTE 0xE125 22 | #define ID_EDIT_SELECT_ALL 0xE12A 23 | #define ID_EDIT_UNDO 0xE12B 24 | #define ID_EDIT_REDO 0xE12C 25 | #define ID_VIEW_TOOLBAR 0xE800 26 | #define ID_VIEW_STATUS_BAR 0xE801 27 | #define ID_VIEW_RIBBON 0xE804 28 | #define ID_APP_ABOUT 0xE140 29 | #define ID_APP_EXIT 0xE141 30 | #define ID_TAB_HOME 2 31 | #define ID_TAB_HOME_LabelTitle_RESID 60001 32 | #define ID_GROUP_CLIPBOARD 3 33 | #define ID_GROUP_CLIPBOARD_LabelTitle_RESID 60002 34 | #define ID_GROUP_VIEW 4 35 | #define ID_GROUP_VIEW_LabelTitle_RESID 60003 36 | #define ID_RIBBON_APP_MENU 5 37 | #define ID_SAVEMORE 6 38 | #define ID_PRINTMORE 7 39 | #define ID_RIBBON_QAT 8 40 | -------------------------------------------------------------------------------- /Components/StdCtrl/StatusBarCtrl.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) FlatGlobus(wtlbuilder@gmail.com) All rights reserved. 2 | // 3 | // This file is a part of the WTLBuilder. 4 | // The use and distribution terms for this software are covered by the 5 | // Microsoft Public License (http://opensource.org/licenses/MS-PL) 6 | // which can be found in the file MS-PL.txt at the root folder. 7 | 8 | #ifndef __STATUSBARCTRL_H 9 | #define __STATUSBARCTRL_H 10 | ////////////////////////////////////////////////////////////////////////// 11 | namespace StdCtrl 12 | { 13 | class CStatusBarCtrl:public CWindowImpl,public ControlComponent 14 | { 15 | public: 16 | CStatusBarCtrl(LPTSTR _name=NULL); 17 | ~CStatusBarCtrl(void); 18 | virtual BOOL CreateComponent(Component *); 19 | BEGIN_MSG_MAP(StdCtrl::CStatusBarCtrl) 20 | CHAIN_MSG_MAP(ControlComponent) 21 | REFLECT_NOTIFICATIONS_EX() 22 | END_MSG_MAP() 23 | virtual CString GetComponetKind(){return _T("STATUSBAR");} 24 | virtual void InitProperty(void); 25 | 26 | DECLARE_WINSTYLE_BOOL_PROPERTY(NoDivider) 27 | DECLARE_WINSTYLE_BOOL_PROPERTY(NoMoveY) 28 | DECLARE_WINSTYLE_BOOL_PROPERTY(NoMoveX) 29 | DECLARE_WINSTYLE_BOOL_PROPERTY(NoParentAlign) 30 | DECLARE_WINSTYLE_BOOL_PROPERTY(NoResize) 31 | DECLARE_WINSTYLE_BOOL_PROPERTY(Adjustable) 32 | DECLARE_PROPERTY(Position, long) 33 | }; 34 | } 35 | ////////////////////////////////////////////////////////////////////////// 36 | #endif 37 | -------------------------------------------------------------------------------- /Components/DecorativeCtrl/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Visual C++ generated include file. 3 | // Used by DecorativeCtrl.rc 4 | // 5 | #define IDB_PANEL 102 6 | #define IDB_PANELHOST 103 7 | #define IDB_TABCTRL 104 8 | #define IDI_MINUS 109 9 | #define IDI_PLUS 110 10 | #define IDI_ARROWD 111 11 | #define IDI_ARROWU 112 12 | #define IDI_UPDATE 113 13 | #define IDB_CALENDAR 114 14 | #define IDB_BUTTONST 115 15 | #define IDB_CALCULATOR_EDIT 116 16 | #define IDB_MASKEDIT 117 17 | #define IDB_DATEEDIT 118 18 | #define IDB_STRIPEDLISTVIEW 119 19 | #define IDB_LISTVIEWCTRL 120 20 | #define IDB_BITMAP1 121 21 | #define IDB_GRIDCTRL 121 22 | #define IDB_IMAGEVIEW 122 23 | #define IDB_STRIPEDLISTVIEW1 123 24 | #define IDB_BITMAP2 123 25 | #define IDB_COLORBUTTON 123 26 | #define IDD_NULL 207 27 | 28 | // Next default values for new objects 29 | // 30 | #ifdef APSTUDIO_INVOKED 31 | #ifndef APSTUDIO_READONLY_SYMBOLS 32 | #define _APS_NEXT_RESOURCE_VALUE 124 33 | #define _APS_NEXT_COMMAND_VALUE 40001 34 | #define _APS_NEXT_CONTROL_VALUE 1001 35 | #define _APS_NEXT_SYMED_VALUE 101 36 | #endif 37 | #endif 38 | -------------------------------------------------------------------------------- /Bin/Template/CDialogImpl/CDialogImpl.cpp: -------------------------------------------------------------------------------- 1 | #include "StdAfx.h" 2 | #include "resource.h" 3 | 4 | #include "[!FILENAME].h" 5 | /////////////////////////////////////////////////////////////////////////////// 6 | const UINT [!CLASSNAME]::_controlsToClip[] = 7 | { 8 | //{{WTLBUILDER_CTRLTOCLIP 9 | //}}WTLBUILDER_CTRLTOCLIP 10 | 0 11 | }; 12 | 13 | ////////////////////////////////////////////////////////////////////////// 14 | [!CLASSNAME]::[!CLASSNAME](void) 15 | //{{WTLBUILDER_CONSTRUCTOR 16 | //}}WTLBUILDER_CONSTRUCTOR 17 | { 18 | } 19 | 20 | [!CLASSNAME]::~[!CLASSNAME](void) 21 | { 22 | } 23 | 24 | LRESULT [!CLASSNAME]::OnInitDialog(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/) 25 | { 26 | m_toolTip.Create(m_hWnd); 27 | //{{WTLBUILDER_MEMBER_CREATION 28 | //}}WTLBUILDER_MEMBER_CREATION 29 | 30 | //{{WTLBUILDER_POST_CREATION 31 | //}}WTLBUILDER_POST_CREATION 32 | 33 | //{{WTLBUILDER_TABSTOP 34 | //}}WTLBUILDER_TABSTOP 35 | CenterWindow(GetParent()); 36 | DefineLayout(); 37 | return TRUE; 38 | } 39 | 40 | LRESULT [!CLASSNAME]::OnCloseCmd(WORD /*wNotifyCode*/, WORD wID, HWND /*hWndCtl*/, BOOL& /*bHandled*/) 41 | { 42 | EndDialog(wID); 43 | //{{WTLBUILDER_MEMBER_DESTRUCTION 44 | //}}WTLBUILDER_MEMBER_DESTRUCTION 45 | return 0; 46 | } 47 | 48 | void [!CLASSNAME]::DefineLayout() 49 | { 50 | //{{WTLBUILDER_ATTACH_CONTROLS 51 | //}}WTLBUILDER_ATTACH_CONTROLS 52 | } 53 | 54 | void [!CLASSNAME]::InitLayout() 55 | { 56 | //{{WTLBUILDER_INITLAYOUT 57 | //}}WTLBUILDER_INITLAYOUT 58 | //SetScrollSize(_minClientSize); 59 | } 60 | -------------------------------------------------------------------------------- /Bin/Template/CDialogTemplate/CDialogTemplate.h: -------------------------------------------------------------------------------- 1 | ////////////////////////////////////////////////////////////////////////// 2 | #pragma once 3 | ////////////////////////////////////////////////////////////////////////// 4 | #include "resource.h" 5 | //{{WTLBUILDER_INCLUDE_DECLARATION 6 | #include "Panel.h" 7 | //}}WTLBUILDER_INCLUDE_DECLARATION 8 | 9 | //{{WTLBUILDER_CONTROL_ID_DECLARATION 10 | #define IDC_CFORMTYPE_PANEL0 1000 11 | #define IDC_CFORMTYPE_PANEL1 1001 12 | #define IDC_CFORMTYPE_PANEL8 1008 13 | //}}WTLBUILDER_CONTROL_ID_DECLARATION 14 | 15 | class CDialogTemplate:public CDialogImpl 16 | //{{WTLBUILDER_BASE_CLASS 17 | //}}WTLBUILDER_BASE_CLASS 18 | { 19 | CToolTipCtrl m_toolTip; 20 | //{{WTLBUILDER_MEMBER_DECLARATION 21 | CFont m_formFont; 22 | Panel::CPanel m_panel0; 23 | Panel::CPanel m_panel1; 24 | Panel::CPanel m_panel8; 25 | CButton m_button9; 26 | CButton m_button10; 27 | //}}WTLBUILDER_MEMBER_DECLARATION 28 | public: 29 | enum { IDD = IDD_NULL }; 30 | 31 | BEGIN_MSG_MAP(CDialogTemplate) 32 | MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog) 33 | COMMAND_ID_HANDLER(IDOK, OnCloseCmd) 34 | COMMAND_ID_HANDLER(IDCANCEL, OnCloseCmd) 35 | REFLECT_NOTIFICATIONS() 36 | END_MSG_MAP() 37 | 38 | CDialogTemplate(void); 39 | ~CDialogTemplate(void); 40 | LRESULT OnInitDialog(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/); 41 | LRESULT OnCloseCmd(WORD /*wNotifyCode*/, WORD wID, HWND /*hWndCtl*/, BOOL& /*bHandled*/); 42 | }; 43 | ////////////////////////////////////////////////////////////////////////// 44 | -------------------------------------------------------------------------------- /Components/DecorativeCtrl/CButtonST.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | 5 | #ifdef __WTLBUILDER__ 6 | namespace DecorativeCtrl 7 | { 8 | class CButtonSTComp:public CButtonST,public ControlComponent 9 | { 10 | CImage inImage; 11 | CImage outImage; 12 | 13 | CColorref BkColorIn; 14 | CColorref TextColorIn; 15 | CColorref BkColorOut; 16 | CColorref TextColorOut; 17 | BOOL drawTransparent; 18 | 19 | CString caption; 20 | void OnInImageChange(CImage *); 21 | void OnOutImageChange(CImage *); 22 | 23 | public: 24 | CButtonSTComp(LPTSTR _name=NULL); 25 | ~CButtonSTComp(void); 26 | 27 | virtual BOOL CreateComponent(Component *); 28 | BEGIN_MSG_MAP_EX(CButtonSTComp) 29 | CHAIN_MSG_MAP(ControlComponent) 30 | CHAIN_MSG_MAP(CButtonST) 31 | END_MSG_MAP() 32 | 33 | virtual void InitProperty(void); 34 | 35 | //DECLARE_PROPERTY(Style,long) 36 | DECLARE_PROPERTY(Caption,CString) 37 | DECLARE_PROPERTY(Flat,BOOL) 38 | 39 | DECLARE_PROPERTY(BkColorIn,CColorref) 40 | DECLARE_PROPERTY(TextColorIn,CColorref) 41 | DECLARE_PROPERTY(BkColorOut,CColorref) 42 | DECLARE_PROPERTY(TextColorOut,CColorref) 43 | 44 | DECLARE_PROPERTY(Transparent,BOOL) 45 | DECLARE_PROPERTY(Alignment,long) 46 | DECLARE_PROPERTY(Pressed,bool) 47 | DECLARE_PROPERTY(EnablePressed,bool) 48 | 49 | }; 50 | }; 51 | #endif 52 | 53 | -------------------------------------------------------------------------------- /Components/StdCtrl/DateTimePicker.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) FlatGlobus(wtlbuilder@gmail.com) All rights reserved. 2 | // 3 | // This file is a part of the WTLBuilder. 4 | // The use and distribution terms for this software are covered by the 5 | // Microsoft Public License (http://opensource.org/licenses/MS-PL) 6 | // which can be found in the file MS-PL.txt at the root folder. 7 | 8 | #ifndef __DATETIMEPICKER_H 9 | #define __DATETIMEPICKER_H 10 | ///////////////////////////////////////////////////////////////////////////////////////////////// 11 | namespace StdCtrl 12 | { 13 | class CDateTimePickerCtrl:public CWindowImpl,public ControlComponent 14 | { 15 | long format; 16 | BOOL showNone; 17 | public: 18 | CDateTimePickerCtrl(LPTSTR _name=NULL); 19 | ~CDateTimePickerCtrl(void); 20 | 21 | virtual BOOL CreateComponent(Component *); 22 | BEGIN_MSG_MAP(StdCtrl::CDateTimePickerCtrl) 23 | CHAIN_MSG_MAP(ControlComponent) 24 | REFLECT_NOTIFICATIONS_EX() 25 | END_MSG_MAP() 26 | 27 | virtual void InitProperty(void); 28 | DECLARE_WINSTYLE_BOOL_PROPERTY(AppCanParse) 29 | DECLARE_WINSTYLE_PROPERTY(Format) 30 | DECLARE_WINSTYLE_BOOL_PROPERTY(RightAlign) 31 | //DECLARE_WINSTYLE_BOOL_PROPERTY(ShowNone) 32 | DECLARE_PROPERTY(ShowNone,BOOL) 33 | DECLARE_WINSTYLE_BOOL_PROPERTY(UpDown) 34 | }; 35 | } 36 | ///////////////////////////////////////////////////////////////////////////////////////////////// 37 | #endif -------------------------------------------------------------------------------- /wtl/wtl_message_reflection.h: -------------------------------------------------------------------------------- 1 | // wtl_message_reflection.h: implementation of message reflection 2 | // for WTL wrappers for Windows Controls 3 | // (c) Alexander Fedorov, 2001. lamer2000@hotmail.com 4 | ////////////////////////////////////////////////////////////////////// 5 | 6 | #ifndef wtl_message_reflection 7 | #define wtl_message_reflection 8 | 9 | #ifndef WM_REFLECT_BASE 10 | #define WM_REFLECT_BASE 0xBC00 11 | #endif 12 | 13 | // WM_NOTIFY_REFLECTOR 14 | // Should be placed in message map of window which 15 | // should reflect WM_NOTIFY to its child controls 16 | 17 | #define WM_NOTIFY_REFLECTOR()\ 18 | if(uMsg == WM_NOTIFY)\ 19 | {\ 20 | UINT code = ((LPNMHDR)lParam)->code;\ 21 | switch(code)\ 22 | {\ 23 | case NM_SETCURSOR:\ 24 | break;\ 25 | default:\ 26 | if ((NULL != lParam) &&\ 27 | (NULL != ((LPNMHDR)lParam)->hwndFrom))\ 28 | {\ 29 | BOOL bHandled = ::SendMessage(((LPNMHDR)lParam)->hwndFrom, WM_NOTIFY + WM_REFLECT_BASE, wParam, lParam);\ 30 | if(bHandled) \ 31 | return TRUE; \ 32 | };\ 33 | };\ 34 | }\ 35 | 36 | 37 | // NOTIFY_REFLECT_CODE_HANDLER 38 | // Should be placed in message map of control which 39 | // wants to handle its own notifications 40 | 41 | #define NOTIFY_REFLECT_CODE_HANDLER(cd, func) \ 42 | { \ 43 | if (((WM_NOTIFY + WM_REFLECT_BASE) == uMsg) && \ 44 | (NULL != lParam) && \ 45 | (cd == ((LPNMHDR)lParam)->code)) \ 46 | {\ 47 | bHandled = FALSE;\ 48 | lResult = func((int)wParam, (LPNMHDR)lParam, bHandled);\ 49 | if(bHandled)\ 50 | return TRUE;\ 51 | }\ 52 | } 53 | 54 | #endif 55 | 56 | 57 | -------------------------------------------------------------------------------- /Components/StdCtrl/CPagesEdit.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) FlatGlobus(wtlbuilder@gmail.com) All rights reserved. 2 | // 3 | // This file is a part of the WTLBuilder. 4 | // The use and distribution terms for this software are covered by the 5 | // Microsoft Public License (http://opensource.org/licenses/MS-PL) 6 | // which can be found in the file MS-PL.txt at the root folder. 7 | 8 | #pragma once 9 | ////////////////////////////////////////////////////////////////////////// 10 | #include "resource.h" 11 | #undef __WTLBUILDER__ 12 | #include "editlistbox.h" 13 | 14 | //{{WTLBUILDER_CONTROL_ID_DECLARATION 15 | #define IDC_PAGES_LIST 1013 16 | //}}WTLBUILDER_CONTROL_ID_DECLARATION 17 | 18 | class CPagesEdit:public CDialogImpl 19 | { 20 | CToolTipCtrl m_toolTip; 21 | //{{WTLBUILDER_MEMBER_DECLARATION 22 | CFont m_formFont; 23 | CButton m_ok; 24 | CButton m_cancel; 25 | CEditListBox m_pagesList; 26 | //}}WTLBUILDER_MEMBER_DECLARATION 27 | PropertyBase * prop; 28 | public: 29 | enum { IDD = IDD_NULL }; 30 | 31 | BEGIN_MSG_MAP(CPagesEdit) 32 | MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog) 33 | COMMAND_ID_HANDLER(IDOK, OnCloseCmd) 34 | COMMAND_ID_HANDLER(IDCANCEL, OnCloseCmd) 35 | END_MSG_MAP() 36 | 37 | CPagesEdit(PropertyBase *); 38 | 39 | LRESULT OnInitDialog(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/); 40 | LRESULT OnCloseCmd(WORD /*wNotifyCode*/, WORD wID, HWND /*hWndCtl*/, BOOL& /*bHandled*/); 41 | }; 42 | void PagesEdit(HWND parent,PropertyBase *prop,LPARAM); 43 | ////////////////////////////////////////////////////////////////////////// 44 | -------------------------------------------------------------------------------- /Components/ViksoeCtrl/WinXPButton.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (C) FlatGlobus(wtlbuilder@gmail.com) All rights reserved. 2 | // 3 | // This file is a part of the WTLBuilder. 4 | // The use and distribution terms for this software are covered by the 5 | // Microsoft Public License (http://opensource.org/licenses/MS-PL) 6 | // which can be found in the file MS-PL.txt at the root folder. 7 | 8 | #include "stdafx.h" 9 | #include "imagehelpers.h" 10 | #include "FadeStateButton.h" 11 | #include "MiscControls.h" 12 | #include "WinXPButton.h" 13 | /////////////////////////////////////////////////////////////////////////////////////////////////////// 14 | #ifdef __WTLBUILDER__ 15 | namespace ViksoeCtrl 16 | { 17 | REGISTER_COMPONENT_EX(CWinXPButton,CWinXPButtonComp,ViksoeCtrl,IDB_EDITLISTBOXCOM) 18 | 19 | CWinXPButtonComp::CWinXPButtonComp(LPTSTR _name):ControlComponent(_name) 20 | { 21 | SetDefaultSize(40,60); 22 | } 23 | 24 | 25 | CWinXPButtonComp::~CWinXPButtonComp(void) 26 | { 27 | } 28 | 29 | BOOL CWinXPButtonComp::CreateComponent(Component * _Parent) 30 | { 31 | SetComponentParent(_Parent); 32 | CWinXPButton::Create((HWND)_Parent->GetHandle(),GetBoundsRect(),NULL,get_CtrlWindowStyle(),get_CtrlWindowStyleEx()); 33 | SetBkColor(RGB(238,243,250)); 34 | GenerateImages(_T(""), IDB_PROPERTYGRID, TRUE); 35 | return ::IsWindow(m_hWnd); 36 | } 37 | 38 | void CWinXPButtonComp::InitProperty(void) 39 | { 40 | ControlComponent::InitProperty(); 41 | } 42 | 43 | }; 44 | #endif -------------------------------------------------------------------------------- /SDK/Property/StdPropClass.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) FlatGlobus(wtlbuilder@gmail.com) All rights reserved. 2 | // 3 | // This file is a part of the WTLBuilder. 4 | // The use and distribution terms for this software are covered by the 5 | // Microsoft Public License (http://opensource.org/licenses/MS-PL) 6 | // which can be found in the file MS-PL.txt at the root folder. 7 | 8 | #ifndef __STDPROPCLASS_H 9 | #define __STDPROPCLASS_H 10 | ////////////////////////////////////////////////////////////////////////// 11 | class PROPERTY_API CPointEx:public CPoint 12 | { 13 | public: 14 | CPointEx():CPoint() 15 | { 16 | } 17 | 18 | DECLARE_PROPERTY(x,int) 19 | DECLARE_PROPERTY(y,int) 20 | 21 | void AddProperty(LPCTSTR Name,CProperties & objprop); 22 | 23 | DECLARE_CALLBACK(Change,change) 24 | }; 25 | 26 | class PROPERTY_API CSizeEx:public CSize 27 | { 28 | public: 29 | CSizeEx():CSize() 30 | { 31 | } 32 | 33 | DECLARE_PROPERTY(cx,int) 34 | DECLARE_PROPERTY(cy,int) 35 | 36 | void AddProperty(LPCTSTR Name,CProperties & objprop); 37 | 38 | DECLARE_CALLBACK(Change,change) 39 | }; 40 | 41 | class PROPERTY_API CRectEx:public CRect 42 | { 43 | public: 44 | CRectEx():CRect() 45 | { 46 | } 47 | 48 | DECLARE_PROPERTY(Left,int) 49 | DECLARE_PROPERTY(Top,int) 50 | DECLARE_PROPERTY(Right,int) 51 | DECLARE_PROPERTY(Bottom,int) 52 | 53 | void AddProperty(LPCTSTR Name,CProperties & objprop); 54 | 55 | DECLARE_CALLBACK(Change,change) 56 | 57 | }; 58 | ////////////////////////////////////////////////////////////////////////// 59 | #endif -------------------------------------------------------------------------------- /Components/StdCtrl/HyperLink.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) FlatGlobus(wtlbuilder@gmail.com) All rights reserved. 2 | // 3 | // This file is a part of the WTLBuilder. 4 | // The use and distribution terms for this software are covered by the 5 | // Microsoft Public License (http://opensource.org/licenses/MS-PL) 6 | // which can be found in the file MS-PL.txt at the root folder. 7 | 8 | #ifndef __HYPERLINK_H 9 | #define __HYPERLINK_H 10 | ////////////////////////////////////////////////////////////////////////// 11 | namespace StdCtrl 12 | { 13 | //class CHyperLink:public WTL::CHyperLinkImpl,public ControlComponent 14 | class CHyperLink:public WTL::CHyperLink,public ControlComponent 15 | { 16 | CString label; 17 | CString hyperlink; 18 | CColorref clrLink; 19 | CColorref clrVisited; 20 | public: 21 | CHyperLink(LPTSTR _name=NULL); 22 | ~CHyperLink(void); 23 | virtual BOOL CreateComponent(Component *); 24 | 25 | BEGIN_MSG_MAP(StdCtrl::CHyperLink) 26 | CHAIN_MSG_MAP(ControlComponent) 27 | CHAIN_MSG_MAP(CHyperLinkImpl) 28 | REFLECT_NOTIFICATIONS_EX() 29 | END_MSG_MAP() 30 | 31 | virtual void InitProperty(void); 32 | DECLARE_PROPERTY(Label,CString) 33 | DECLARE_PROPERTY(HyperLink,CString) 34 | DECLARE_PROPERTY(ColorLink,CColorref) 35 | DECLARE_PROPERTY(ColorVisited,CColorref) 36 | DECLARE_PROPERTY(PaintLabel,BOOL) 37 | }; 38 | } 39 | ////////////////////////////////////////////////////////////////////////// 40 | #endif 41 | -------------------------------------------------------------------------------- /Components/ViksoeCtrl/FadeStateButton.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (C) FlatGlobus(wtlbuilder@gmail.com) All rights reserved. 2 | // 3 | // This file is a part of the WTLBuilder. 4 | // The use and distribution terms for this software are covered by the 5 | // Microsoft Public License (http://opensource.org/licenses/MS-PL) 6 | // which can be found in the file MS-PL.txt at the root folder. 7 | 8 | #include "stdafx.h" 9 | #include "imagehelpers.h" 10 | #include "FadeStateButton.h" 11 | /////////////////////////////////////////////////////////////////////////////////////////////////////// 12 | #ifdef __WTLBUILDER__ 13 | namespace ViksoeCtrl 14 | { 15 | REGISTER_COMPONENT_EX(CFadeStateButtonCtrl,CFadeStateButtonCtrlComp,ViksoeCtrl,IDB_EDITLISTBOXCOM) 16 | 17 | CFadeStateButtonCtrlComp::CFadeStateButtonCtrlComp(LPTSTR _name):ControlComponent(_name) 18 | { 19 | SetDefaultSize(40,60); 20 | } 21 | 22 | 23 | CFadeStateButtonCtrlComp::~CFadeStateButtonCtrlComp(void) 24 | { 25 | } 26 | 27 | BOOL CFadeStateButtonCtrlComp::CreateComponent(Component * _Parent) 28 | { 29 | SetComponentParent(_Parent); 30 | CFadeStateButtonCtrl::Create((HWND)_Parent->GetHandle(),GetBoundsRect(),NULL,get_CtrlWindowStyle(),get_CtrlWindowStyleEx()); 31 | HBITMAP bmp=AtlLoadBitmap(IDB_PROPERTYGRID); 32 | SetBitmap(bmp); 33 | return ::IsWindow(m_hWnd); 34 | } 35 | 36 | void CFadeStateButtonCtrlComp::InitProperty(void) 37 | { 38 | ControlComponent::InitProperty(); 39 | } 40 | 41 | }; 42 | #endif 43 | -------------------------------------------------------------------------------- /Bin/Script/CSortListViewCtrl.js: -------------------------------------------------------------------------------- 1 | // Copyright (C) FlatGlobus(wtlbuilder@gmail.com) All rights reserved. 2 | // 3 | // This file is a part of the WTLBuilder. 4 | // The use and distribution terms for this software are covered by the 5 | // Microsoft Public License (http://opensource.org/licenses/MS-PL) 6 | // which can be found in the file MS-PL.txt at the root folder. 7 | 8 | function DecorativeCtrl_CSortListViewCtrl(form, component) 9 | { 10 | var codegen=form.Code; 11 | var cmpName = component.Item("Name"); 12 | 13 | CheckComponent(form, component); 14 | 15 | //var headerStr="\t"+"CSortListViewCtrl"+"\t"+cmpName+";\n"; 16 | 17 | var headerStr=codegen.Format(component,"\tCSortListViewCtrl<[!ItemClass]>\t[!Name];\n"); 18 | 19 | 20 | headerStr+=MakeContainedDecl(form,component); 21 | headerStr+=MakeFontDeclaration(component); 22 | 23 | var sourceStr="\t"+cmpName+".Create("+component.Item("ParentName")+","; 24 | sourceStr+=MakeRect(component)+",NULL,"+ 25 | MakeListViewCtrlStyle(component)+","+ 26 | MakeExWindowStyle(component)+","+ 27 | component.Item("ID")+");\n"; 28 | sourceStr+=MakeControlFont(component); 29 | sourceStr+=MakeToolTip(component); 30 | 31 | sourceStr+=MakeListViewCtrlStyleEx(component); 32 | 33 | sourceStr+="\n"; 34 | 35 | MakeSetFocus(form,component); 36 | MakeContained(form,component); 37 | 38 | codegen.Insert(endMemberDecl,headerStr); 39 | codegen.Insert(endMemberCreation,sourceStr); 40 | codegen.Insert(endCtrlIDDecl,MakeControlID(component)); 41 | } 42 | -------------------------------------------------------------------------------- /Components/StdCtrl/ProgressBarCtrl.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) FlatGlobus(wtlbuilder@gmail.com) All rights reserved. 2 | // 3 | // This file is a part of the WTLBuilder. 4 | // The use and distribution terms for this software are covered by the 5 | // Microsoft Public License (http://opensource.org/licenses/MS-PL) 6 | // which can be found in the file MS-PL.txt at the root folder. 7 | 8 | #ifndef __PROGRESSBARCTRL_H 9 | #define __PROGRESSBARCTRL_H 10 | ////////////////////////////////////////////////////////////////////////// 11 | namespace StdCtrl 12 | { 13 | class CProgressBarCtrl:public CWindowImpl,public ControlComponent 14 | { 15 | CColorref m_bkColor,m_barColor; 16 | long m_minRange,m_maxRange; 17 | long m_pos,m_step,m_offsetPos; 18 | public: 19 | CProgressBarCtrl(LPTSTR _name=NULL); 20 | ~CProgressBarCtrl(void); 21 | virtual BOOL CreateComponent(Component *); 22 | BEGIN_MSG_MAP(StdCtrl::CProgressBarCtrl) 23 | CHAIN_MSG_MAP(ControlComponent) 24 | REFLECT_NOTIFICATIONS_EX() 25 | END_MSG_MAP() 26 | 27 | virtual void InitProperty(void); 28 | DECLARE_WINSTYLE_BOOL_PROPERTY(Vertical) 29 | DECLARE_WINSTYLE_BOOL_PROPERTY(Smooth) 30 | DECLARE_PROPERTY(BkColor,CColorref) 31 | DECLARE_PROPERTY(BarColor,CColorref) 32 | DECLARE_PROPERTY(Min,long) 33 | DECLARE_PROPERTY(Max,long) 34 | DECLARE_PROPERTY(Pos,long) 35 | DECLARE_PROPERTY(Step,long) 36 | DECLARE_PROPERTY(OffsetPos,long) 37 | }; 38 | } 39 | ////////////////////////////////////////////////////////////////////////// 40 | #endif 41 | -------------------------------------------------------------------------------- /Components/StdCtrl/Menu.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (C) FlatGlobus(wtlbuilder@gmail.com) All rights reserved. 2 | // 3 | // This file is a part of the WTLBuilder. 4 | // The use and distribution terms for this software are covered by the 5 | // Microsoft Public License (http://opensource.org/licenses/MS-PL) 6 | // which can be found in the file MS-PL.txt at the root folder. 7 | 8 | #include "StdAfx.h" 9 | #include "menu.h" 10 | #include "resource.h" 11 | 12 | namespace StdCtrl 13 | { 14 | // REGISTER_COMPONENT(CMenu,StdCtl,IDB_MENU) 15 | 16 | CMenu::CMenu(LPTSTR _name):Component(_name) 17 | { 18 | enableTabIndex=FALSE; 19 | } 20 | 21 | CMenu::~CMenu(void) 22 | { 23 | } 24 | 25 | BOOL CMenu::CreateComponent(Component *_Parent) 26 | { 27 | return Component::CreateComponent(_Parent); 28 | } 29 | 30 | void CMenu::DeleteComponent() 31 | { 32 | Component::DeleteComponent(); 33 | } 34 | 35 | void CMenu::InitProperty(void) 36 | { 37 | Component::InitProperty(); 38 | DEFINE_PROPERTY(ID,CString,CMenu,"") 39 | } 40 | 41 | void CMenu::set_ID(CString str) 42 | { 43 | menuID=str; 44 | SetModified(); 45 | } 46 | 47 | CString CMenu::get_ID(void) 48 | { 49 | if(state.GetBit(csLoading)) 50 | { 51 | menuID= GET_PROP_VALUE(CString, ID) 52 | } 53 | return menuID; 54 | } 55 | 56 | void CMenu::CreateSampleMenu() 57 | { 58 | if(hMenu.IsMenu() == FALSE) 59 | { 60 | hMenu.LoadMenu(_U_STRINGorID(IDR_SAMPLE_MENU)); 61 | } 62 | } 63 | 64 | HANDLE CMenu::GetHandle() 65 | { 66 | CreateSampleMenu(); 67 | return (HANDLE)hMenu.Detach(); 68 | } 69 | } -------------------------------------------------------------------------------- /ValueListHelper.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (C) FlatGlobus(wtlbuilder@gmail.com) All rights reserved. 2 | // 3 | // This file is a part of the WTLBuilder. 4 | // The use and distribution terms for this software are covered by the 5 | // Microsoft Public License (http://opensource.org/licenses/MS-PL) 6 | // which can be found in the file MS-PL.txt at the root folder. 7 | 8 | #include "stdafx.h" 9 | #include "ValueListHelper.h" 10 | #include "PropertyItem.h" 11 | 12 | 13 | long __stdcall CValueListHelper::GetValCount(BSTR customValName) 14 | { 15 | CCustomVal * values=GetCustomVal(CString(customValName)); 16 | if(values) 17 | { 18 | long i=0; 19 | for (i = 0; values[i].name!=NULL; i++); 20 | return i; 21 | } 22 | return 0; 23 | } 24 | 25 | BSTR __stdcall CValueListHelper::GetValName(BSTR customValName,long idx) 26 | { 27 | CCustomVal * values=GetCustomVal(CString(customValName)); 28 | if(values) 29 | { 30 | long i=0; 31 | for (i = 0; values[i].name!=NULL && i != idx ; i++); 32 | 33 | if(i==idx && values[i].name!=NULL) 34 | { 35 | CString str(values[i].decorate); 36 | return str.AllocSysString(); 37 | } 38 | } 39 | return NULL; 40 | } 41 | 42 | long __stdcall CValueListHelper::GetValID(BSTR customValName,long idx) 43 | { 44 | CCustomVal * values=GetCustomVal(CString(customValName)); 45 | if(values) 46 | { 47 | long i=0; 48 | for (i = 0; values[i].name!=NULL && i != idx ; i++); 49 | 50 | if(i==idx && values[i].name!=NULL) 51 | return values[i].id; 52 | } 53 | return 0; 54 | } 55 | -------------------------------------------------------------------------------- /Bin/Template/CDialogImpl/CDialogImpl.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "resource.h" 4 | #include "LayoutMgr.h" 5 | //{{WTLBUILDER_INCLUDE_DECLARATION 6 | //}}WTLBUILDER_INCLUDE_DECLARATION 7 | 8 | //{{WTLBUILDER_CONTROL_ID_DECLARATION 9 | //}}WTLBUILDER_CONTROL_ID_DECLARATION 10 | 11 | class [!CLASSNAME]:public CResizableDialogImpl<[!CLASSNAME]> 12 | { 13 | //{{WTLBUILDER_BASE_CLASS 14 | //}}WTLBUILDER_BASE_CLASS 15 | CToolTipCtrl m_toolTip; 16 | //{{WTLBUILDER_MEMBER_DECLARATION 17 | //}}WTLBUILDER_MEMBER_DECLARATION 18 | void InitLayout(void); 19 | public: 20 | virtual void DefineLayout(); 21 | enum { IDD = IDD_NULL }; 22 | static const UINT _controlsToClip[]; 23 | 24 | typedef CResizableDialogImpl<[!CLASSNAME]> baseClass; 25 | 26 | BEGIN_MSG_MAP([!CLASSNAME]) 27 | MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog) 28 | COMMAND_ID_HANDLER(IDOK, OnCloseCmd) 29 | COMMAND_ID_HANDLER(IDCANCEL, OnCloseCmd) 30 | REFLECT_NOTIFICATIONS() 31 | END_MSG_MAP() 32 | 33 | [!CLASSNAME](void); 34 | ~[!CLASSNAME](void); 35 | // Handler prototypes (uncomment arguments if needed): 36 | // LRESULT MessageHandler(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/) 37 | // LRESULT CommandHandler(WORD /*wNotifyCode*/, WORD /*wID*/, HWND /*hWndCtl*/, BOOL& /*bHandled*/) 38 | // LRESULT NotifyHandler(int /*idCtrl*/, LPNMHDR /*pnmh*/, BOOL& /*bHandled*/) 39 | 40 | LRESULT OnInitDialog(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/); 41 | LRESULT OnCloseCmd(WORD /*wNotifyCode*/, WORD wID, HWND /*hWndCtl*/, BOOL& /*bHandled*/); 42 | }; 43 | ////////////////////////////////////////////////////////////////////////// 44 | -------------------------------------------------------------------------------- /Components/StdCtrl/ToolBarCtrl.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) FlatGlobus(wtlbuilder@gmail.com) All rights reserved. 2 | // 3 | // This file is a part of the WTLBuilder. 4 | // The use and distribution terms for this software are covered by the 5 | // Microsoft Public License (http://opensource.org/licenses/MS-PL) 6 | // which can be found in the file MS-PL.txt at the root folder. 7 | 8 | #ifndef __TOOLBARCTRL_H 9 | #define __TOOLBARCTRL_H 10 | ////////////////////////////////////////////////////////////////////////// 11 | namespace StdCtrl 12 | { 13 | class CToolBarCtrl:public CWindowImpl,public ControlComponent 14 | { 15 | public: 16 | CToolBarCtrl(LPTSTR _name=NULL); 17 | ~CToolBarCtrl(void); 18 | virtual BOOL CreateComponent(Component *); 19 | BEGIN_MSG_MAP(StdCtrl::CToolBarCtrl) 20 | CHAIN_MSG_MAP(ControlComponent) 21 | MESSAGE_HANDLER(WM_PARENTNOTIFY ,OnParentNotify) 22 | REFLECT_NOTIFICATIONS_EX() 23 | END_MSG_MAP() 24 | 25 | LRESULT OnParentNotify(UINT,WPARAM,LPARAM, BOOL& bHandled); 26 | virtual CString GetComponetKind(){return _T("TOOLBAR");} 27 | virtual void InitProperty(void); 28 | ///common styles 29 | 30 | DECLARE_WINSTYLE_BOOL_PROPERTY(NoDivider) 31 | DECLARE_WINSTYLE_BOOL_PROPERTY(NoMoveY) 32 | DECLARE_WINSTYLE_BOOL_PROPERTY(NoMoveX) 33 | DECLARE_WINSTYLE_BOOL_PROPERTY(NoParentAlign) 34 | DECLARE_WINSTYLE_BOOL_PROPERTY(NoResize) 35 | DECLARE_WINSTYLE_BOOL_PROPERTY(Adjustable) 36 | DECLARE_PROPERTY(Position, long) 37 | }; 38 | } 39 | ////////////////////////////////////////////////////////////////////////// 40 | #endif 41 | -------------------------------------------------------------------------------- /Components/StdCtrl/scrollbar.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) FlatGlobus(wtlbuilder@gmail.com) All rights reserved. 2 | // 3 | // This file is a part of the WTLBuilder. 4 | // The use and distribution terms for this software are covered by the 5 | // Microsoft Public License (http://opensource.org/licenses/MS-PL) 6 | // which can be found in the file MS-PL.txt at the root folder. 7 | 8 | #ifndef __SCROLLBAR_H 9 | #define __SCROLLBAR_H 10 | ////////////////////////////////////////////////////////////////////////// 11 | namespace StdCtrl 12 | { 13 | class CHScrollBar:public CWindowImpl,public ControlComponent 14 | { 15 | public: 16 | CHScrollBar(LPTSTR _name=NULL); 17 | ~CHScrollBar(void); 18 | virtual BOOL CreateComponent(Component *); 19 | BEGIN_MSG_MAP(StdCtrl::CHScrollBar) 20 | CHAIN_MSG_MAP(ControlComponent) 21 | REFLECT_NOTIFICATIONS_EX() 22 | END_MSG_MAP() 23 | 24 | virtual void InitProperty(void); 25 | DECLARE_WINSTYLE_PROPERTY(Alignment) 26 | }; 27 | 28 | class CVScrollBar:public CWindowImpl,public ControlComponent 29 | { 30 | public: 31 | CVScrollBar(LPTSTR _name=NULL); 32 | ~CVScrollBar(void); 33 | virtual BOOL CreateComponent(Component *); 34 | BEGIN_MSG_MAP(StdCtrl::CVScrollBar) 35 | CHAIN_MSG_MAP(ControlComponent) 36 | REFLECT_NOTIFICATIONS_EX() 37 | END_MSG_MAP() 38 | 39 | virtual void InitProperty(void); 40 | DECLARE_WINSTYLE_PROPERTY(Alignment) 41 | }; 42 | 43 | } 44 | ////////////////////////////////////////////////////////////////////////// 45 | #endif 46 | -------------------------------------------------------------------------------- /SDK/Property/PropertyTextEdit.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) FlatGlobus(wtlbuilder@gmail.com) All rights reserved. 2 | // 3 | // This file is a part of the WTLBuilder. 4 | // The use and distribution terms for this software are covered by the 5 | // Microsoft Public License (http://opensource.org/licenses/MS-PL) 6 | // which can be found in the file MS-PL.txt at the root folder. 7 | 8 | #ifndef __PROPERTYTEXTEDIT_H 9 | #define __PROPERTYTEXTEDIT_H 10 | ///////////////////////////////////////////////////////////////////////////////////////////////////// 11 | #include "InplaceEdit.h" 12 | 13 | typedef CWinTraits CInplaceTextEditTraits; 14 | 15 | class PROPERTY_API CInplaceTextEdit : 16 | public CInplaceEditBase 17 | { 18 | public: 19 | virtual void ShowProperty(PropertyBase *prop); 20 | void UpdateProperty(PropertyBase *prop); 21 | }; 22 | 23 | ////////////////////////////////////////////////////////////////////////// 24 | 25 | typedef CWinTraits CInplaceIntEditTraits; 26 | class PROPERTY_API CInplaceIntEdit : 27 | public CInplaceEditBase 28 | { 29 | public: 30 | typedef CInplaceEditBase baseClass; 31 | 32 | virtual void ShowProperty(PropertyBase *prop); 33 | void UpdateProperty(PropertyBase *prop); 34 | LRESULT OnChar(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled); 35 | }; 36 | ///////////////////////////////////////////////////////////////////////////////////////////////////// 37 | #endif -------------------------------------------------------------------------------- /SDK/Property/Layout.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) FlatGlobus(wtlbuilder@gmail.com) All rights reserved. 2 | // 3 | // This file is a part of the WTLBuilder. 4 | // The use and distribution terms for this software are covered by the 5 | // Microsoft Public License (http://opensource.org/licenses/MS-PL) 6 | // which can be found in the file MS-PL.txt at the root folder. 7 | 8 | #ifndef __LAYOUT_H__ 9 | #define __LAYOUT_H__ 10 | ////////////////////////////////////////////////////////////////////////// 11 | #include "Property.h" 12 | class CProperties; 13 | class PROPERTY_API CLayout 14 | { 15 | BOOL attachNone,attachForm,attachOppositeForm, 16 | attachChild,attachOppositeChild,attachPosition,attachSelf; 17 | CString child; 18 | Component * component; 19 | long position; 20 | void DefineLayout(); 21 | CString propName; 22 | public: 23 | CLayout(Component *); 24 | ~CLayout(void); 25 | 26 | void set_AttachNone(BOOL val); 27 | BOOL get_AttachNone(void); 28 | void set_AttachForm(BOOL val); 29 | BOOL get_AttachForm(void); 30 | void set_AttachOppositeForm(BOOL val); 31 | BOOL get_AttachOppositeForm(void); 32 | void set_AttachChild(BOOL val); 33 | BOOL get_AttachChild(void); 34 | void set_AttachOppositeChild(BOOL val); 35 | BOOL get_AttachOppositeChild(void); 36 | void set_AttachPosition(BOOL val); 37 | BOOL get_AttachPosition(void); 38 | void set_AttachSelf(BOOL val); 39 | BOOL get_AttachSelf(void); 40 | 41 | void set_Position(long val); 42 | long get_Position(void); 43 | 44 | void set_Child(CString); 45 | CString get_Child(void); 46 | 47 | void AddProperty(LPCTSTR Name,LPCTSTR SubName,CProperties & objprop); 48 | }; 49 | ////////////////////////////////////////////////////////////////////////// 50 | #endif -------------------------------------------------------------------------------- /Components/DecorativeCtrl/TabPanel.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (C) FlatGlobus(wtlbuilder@gmail.com) All rights reserved. 2 | // 3 | // This file is a part of the WTLBuilder. 4 | // The use and distribution terms for this software are covered by the 5 | // Microsoft Public License (http://opensource.org/licenses/MS-PL) 6 | // which can be found in the file MS-PL.txt at the root folder. 7 | 8 | #include "StdAfx.h" 9 | #include "TabPanel.h" 10 | ////////////////////////////////////////////////////////////////////////// 11 | //static void RegisterTabCtrlStyles(); 12 | namespace StdCtrl 13 | { 14 | REGISTER_COMPONENT_EX(CTabPanel,CTabPanelComp,DecorativeCtrl,IDB_TABCTRL) 15 | 16 | CTabPanelComp::CTabPanelComp(LPTSTR _name):ControlComponent(_name) 17 | { 18 | SetDefaultSize(50,50); 19 | } 20 | 21 | CTabPanelComp::~CTabPanelComp(void) 22 | { 23 | } 24 | 25 | BOOL CTabPanelComp::CreateComponent(Component * _Parent) 26 | { 27 | SetComponentParent(_Parent); 28 | Create((HWND)_Parent->GetHandle(),GetBoundsRect(),NULL,get_InternalWindowStyle(),get_InternalWindowStyleEx()); 29 | TCITEM tab = { 0 }; 30 | tab.mask = TCIF_TEXT; 31 | tab.pszText = _T("Page 0"); 32 | tab.cchTextMax = 7; 33 | m_tab.InsertItem(0, &tab); 34 | 35 | //AddPage(); 36 | return ::IsWindow(m_hWnd); 37 | } 38 | 39 | void CTabPanelComp::InitProperty(void) 40 | { 41 | ControlComponent::InitProperty(); 42 | //DEFINE_PROPERTY(Current,long,CTabCtrl,0) 43 | } 44 | } 45 | ////////////////////////////////////////////////////////////////////////// 46 | //static void RegisterTabCtrlStyles() 47 | //{ 48 | // static IsInited=FALSE; 49 | // if(IsInited==TRUE) 50 | // return; 51 | 52 | 53 | // IsInited=TRUE; 54 | //} 55 | -------------------------------------------------------------------------------- /Config.cpp: -------------------------------------------------------------------------------- 1 | #include "stdafx.h" 2 | #include "Config.h" 3 | #include "path.h" 4 | 5 | static CConfig cfg; 6 | 7 | ////////////////////////////////////////////////////////////////////////// 8 | CConfig::CConfig() 9 | { 10 | RegisterEvent(evCfgSetBOOLVal, this, &CConfig::SetBOOLValue); 11 | RegisterEvent(evCfgGetBOOLVal, this, &CConfig::GetBOOLValue); 12 | RegisterEvent(evCfgSetINTVal, this, &CConfig::SetINTValue); 13 | RegisterEvent(evCfgGetINTVal, this, &CConfig::GetINTValue); 14 | RegisterEvent(evCfgSetSTRVal, this, &CConfig::SetSTRTValue); 15 | RegisterEvent(evCfgGetSTRVal, this, &CConfig::GetSTRValue); 16 | 17 | CString cfgFileName = CPath::GetAppPath() + _T("wtlbuilder.cfg"); 18 | cfgFile.SetPathName(cfgFileName); 19 | } 20 | 21 | 22 | CConfig::~CConfig() 23 | { 24 | } 25 | 26 | void CConfig::SetBOOLValue(LPCTSTR section, LPCTSTR key, BOOL val) 27 | { 28 | cfgFile.WriteBool(section, key, val); 29 | } 30 | 31 | void CConfig::GetBOOLValue(LPCTSTR section, LPCTSTR key, BOOL *val) 32 | { 33 | if(val != NULL) 34 | *val = cfgFile.GetBool(section, key, FALSE); 35 | } 36 | 37 | void CConfig::SetINTValue(LPCTSTR section, LPCTSTR key, BOOL val) 38 | { 39 | cfgFile.WriteInt(section, key, val); 40 | } 41 | 42 | void CConfig::GetINTValue(LPCTSTR section, LPCTSTR key, BOOL *val) 43 | { 44 | if (val != NULL) 45 | *val = cfgFile.GetInt(section, key, 0); 46 | } 47 | 48 | void CConfig::SetSTRTValue(LPCTSTR section, LPCTSTR key, LPCTSTR val) 49 | { 50 | cfgFile.WriteString(section, key, val); 51 | } 52 | 53 | void CConfig::GetSTRValue(LPCTSTR section, LPCTSTR key, LPTSTR val, int sz) 54 | { 55 | if (val != NULL) 56 | cfgFile.GetString(section, key, val, sz, ""); 57 | } 58 | -------------------------------------------------------------------------------- /Components/StdCtrl/AnimateCtrl.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) FlatGlobus(wtlbuilder@gmail.com) All rights reserved. 2 | // 3 | // This file is a part of the WTLBuilder. 4 | // The use and distribution terms for this software are covered by the 5 | // Microsoft Public License (http://opensource.org/licenses/MS-PL) 6 | // which can be found in the file MS-PL.txt at the root folder. 7 | #ifndef __ANIMATECTRL_H 8 | #define __ANIMATECTRL_H 9 | ////////////////////////////////////////////////////////////////////////// 10 | namespace StdCtrl 11 | { 12 | class CAviImage 13 | { 14 | CString fileName; 15 | CString id; 16 | public: 17 | CAviImage(); 18 | ~CAviImage(); 19 | void set_FileName(CString); 20 | CString get_FileName(); 21 | void set_ID(CString); 22 | CString get_ID(void); 23 | 24 | void AddProperty(LPCTSTR,CProperties &); 25 | DECLARE_CALLBACK(Change,change) 26 | }; 27 | 28 | class CAnimateCtrl:public CWindowImpl,public ControlComponent 29 | { 30 | BOOL play; 31 | CAviImage image; 32 | void OnImageChange(CAviImage *); 33 | public: 34 | CAnimateCtrl(LPTSTR _name=NULL); 35 | ~CAnimateCtrl(void); 36 | virtual BOOL CreateComponent(Component *); 37 | BEGIN_MSG_MAP(StdCtrl::CAnimateCtrl) 38 | CHAIN_MSG_MAP(ControlComponent) 39 | REFLECT_NOTIFICATIONS_EX() 40 | END_MSG_MAP() 41 | 42 | virtual void InitProperty(void); 43 | DECLARE_WINSTYLE_BOOL_PROPERTY(AutoPlay) 44 | DECLARE_WINSTYLE_BOOL_PROPERTY(Center) 45 | DECLARE_WINSTYLE_BOOL_PROPERTY(Timer) 46 | DECLARE_WINSTYLE_BOOL_PROPERTY(Transparent) 47 | DECLARE_PROPERTY(Play,BOOL) 48 | }; 49 | } 50 | ////////////////////////////////////////////////////////////////////////// 51 | #endif 52 | -------------------------------------------------------------------------------- /Components/StdCtrl/TrackBarCtrl.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (C) FlatGlobus(wtlbuilder@gmail.com) All rights reserved. 2 | // 3 | // This file is a part of the WTLBuilder. 4 | // The use and distribution terms for this software are covered by the 5 | // Microsoft Public License (http://opensource.org/licenses/MS-PL) 6 | // which can be found in the file MS-PL.txt at the root folder. 7 | 8 | #include "StdAfx.h" 9 | #include "trackbarctrl.h" 10 | #include "resource.h" 11 | #include "PropertyListEdit.h" 12 | ////////////////////////////////////////////////////////////////////////// 13 | static void RegisterStatusBarCtrlStyles(); 14 | //typedef long ListViewStyle; 15 | //typedef long ListAlignStyle; 16 | //typedef long ListSortStyle; 17 | 18 | namespace StdCtrl 19 | { 20 | REGISTER_COMPONENT(CTrackBarCtrl,StdCtl,IDB_TRACKBARCTRL) 21 | 22 | CTrackBarCtrl::CTrackBarCtrl(LPTSTR _name):ControlComponent(_name) 23 | { 24 | SetDefaultSize(130,27); 25 | RegisterStatusBarCtrlStyles(); 26 | } 27 | 28 | CTrackBarCtrl::~CTrackBarCtrl(void) 29 | { 30 | } 31 | 32 | BOOL CTrackBarCtrl::CreateComponent(Component * _Parent) 33 | { 34 | SetComponentParent(_Parent); 35 | CWindowImpl::Create((HWND)_Parent->GetHandle(),GetBoundsRect(),NULL,get_InternalWindowStyle(),get_InternalWindowStyleEx()); 36 | return ::IsWindow(m_hWnd); 37 | } 38 | 39 | void CTrackBarCtrl::InitProperty(void) 40 | { 41 | ControlComponent::InitProperty(); 42 | } 43 | } 44 | ////////////////////////////////////////////////////////////////////////// 45 | static void RegisterStatusBarCtrlStyles() 46 | { 47 | static BOOL IsInited=FALSE; 48 | if(IsInited==TRUE) 49 | return; 50 | 51 | 52 | IsInited=TRUE; 53 | } 54 | -------------------------------------------------------------------------------- /Components/StdCtrl/UpDownCtrl.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) FlatGlobus(wtlbuilder@gmail.com) All rights reserved. 2 | // 3 | // This file is a part of the WTLBuilder. 4 | // The use and distribution terms for this software are covered by the 5 | // Microsoft Public License (http://opensource.org/licenses/MS-PL) 6 | // which can be found in the file MS-PL.txt at the root folder. 7 | 8 | #ifndef __UPDOWNCTRL_H 9 | #define __UPDOWNCTRL_H 10 | ////////////////////////////////////////////////////////////////////////// 11 | namespace StdCtrl 12 | { 13 | class CUpDownCtrl:public CWindowImpl,public ControlComponent 14 | { 15 | int lover,upper; 16 | CString buddy; 17 | public: 18 | CUpDownCtrl(LPTSTR _name=NULL); 19 | ~CUpDownCtrl(void); 20 | virtual BOOL CreateComponent(Component *); 21 | BEGIN_MSG_MAP(StdCtrl::CUpDownCtrl) 22 | CHAIN_MSG_MAP(ControlComponent) 23 | REFLECT_NOTIFICATIONS_EX() 24 | END_MSG_MAP() 25 | 26 | virtual void InitProperty(void); 27 | DECLARE_PROPERTY(Base,int) 28 | DECLARE_PROPERTY(Buddy,CString) 29 | DECLARE_PROPERTY(Pos,int) 30 | DECLARE_PROPERTY(Lover,int) 31 | DECLARE_PROPERTY(Upper,int) 32 | DECLARE_WINSTYLE_PROPERTY(Align) 33 | DECLARE_WINSTYLE_BOOL_PROPERTY(ArrowKeys) 34 | DECLARE_WINSTYLE_BOOL_PROPERTY(AutoBuddy) 35 | DECLARE_WINSTYLE_BOOL_PROPERTY(Horz) 36 | DECLARE_WINSTYLE_BOOL_PROPERTY(HotTrack) 37 | DECLARE_WINSTYLE_BOOL_PROPERTY(NoThousands) 38 | DECLARE_WINSTYLE_BOOL_PROPERTY(SetBuddyInt) 39 | DECLARE_WINSTYLE_BOOL_PROPERTY(Wrap) 40 | }; 41 | } 42 | ////////////////////////////////////////////////////////////////////////// 43 | #endif 44 | -------------------------------------------------------------------------------- /SDK/Property/bitvect.H: -------------------------------------------------------------------------------- 1 | // Copyright (C) FlatGlobus(wtlbuilder@gmail.com) All rights reserved. 2 | // 3 | // This file is a part of the WTLBuilder. 4 | // The use and distribution terms for this software are covered by the 5 | // Microsoft Public License (http://opensource.org/licenses/MS-PL) 6 | // which can be found in the file MS-PL.txt at the root folder. 7 | 8 | #ifndef __BITVEC_H 9 | #define __BITVEC_H 10 | ///////////////////////////////////////////////////////////////////////////////////////// 11 | class PROPERTY_API CBitVect 12 | { 13 | unsigned char * vect; 14 | short numbytes; 15 | unsigned short numbits; 16 | public: 17 | CBitVect(const CBitVect&); 18 | CBitVect(unsigned short n); 19 | CBitVect(unsigned short n,short val); 20 | ~CBitVect(); 21 | 22 | void Reset(short val=0); 23 | 24 | short operator[](unsigned short inx) 25 | { 26 | return (vect[inx>>3]&(1<<(inx&7)))!=0; 27 | 28 | } 29 | 30 | short GetBit(unsigned short inx) 31 | { 32 | return (*this)[inx]; 33 | } 34 | 35 | void SetBit(unsigned short inx,short val=1) 36 | { 37 | if(val) 38 | vect[inx>>3] |=(unsigned char)(1 << (inx & 7)); 39 | else 40 | vect[inx>>3] &= (unsigned char)~(1 << (inx & 7)); 41 | } 42 | 43 | void SetRange(unsigned short min,unsigned short max,short val=1); 44 | 45 | CBitVect& operator = (CBitVect& x); 46 | CBitVect operator ~ (); 47 | CBitVect& operator |= (CBitVect& x); 48 | CBitVect& operator &= (CBitVect& x); 49 | CBitVect& operator -= (CBitVect& x); 50 | 51 | friend CBitVect operator | (CBitVect& x,CBitVect& y); 52 | friend CBitVect operator & (CBitVect& x,CBitVect& y); 53 | friend CBitVect operator - (CBitVect& x,CBitVect& y); 54 | }; 55 | ///////////////////////////////////////////////////////////////////////////////////////// 56 | #endif 57 | -------------------------------------------------------------------------------- /Bin/Script/CStripedListView.js: -------------------------------------------------------------------------------- 1 | // Copyright (C) FlatGlobus(wtlbuilder@gmail.com) All rights reserved. 2 | // 3 | // This file is a part of the WTLBuilder. 4 | // The use and distribution terms for this software are covered by the 5 | // Microsoft Public License (http://opensource.org/licenses/MS-PL) 6 | // which can be found in the file MS-PL.txt at the root folder. 7 | 8 | function DecorativeCtrl_CStripedListView(form, component) 9 | { 10 | var cmpName = component.Item("Name"); 11 | 12 | CheckComponent(form, component); 13 | 14 | var headerStr="\t"+"CStripedListView"+"\t"+cmpName+";\n"; 15 | headerStr+=MakeContainedDecl(form,component); 16 | headerStr+=MakeFontDeclaration(component); 17 | 18 | var sourceStr="\t"+cmpName+".Create("+component.Item("ParentName")+","; 19 | sourceStr+=MakeRect(component)+",NULL,"+ 20 | MakeListViewCtrlStyle(component)+","+ 21 | MakeExWindowStyle(component)+","+ 22 | component.Item("ID")+");\n"; 23 | sourceStr+=MakeControlFont(component); 24 | sourceStr+=MakeToolTip(component); 25 | 26 | sourceStr+=MakeListViewCtrlStyleEx(component); 27 | 28 | sourceStr+="\t"+cmpName+".SetFirstColor("+MakeColor(component.Item("FirstColor"))+");\n"; 29 | sourceStr+="\t"+cmpName+".SetSecondColor("+MakeColor(component.Item("SecondColor"))+");\n"; 30 | sourceStr+="\n"; 31 | 32 | MakeSetFocus(form,component); 33 | MakeContained(form,component); 34 | 35 | var codegen=form.Code; 36 | codegen.AddInclude(endIncludeDecl,CorrectPath(component.Item("IncludePath"))+"StripedListView.h"); 37 | codegen.Insert(endMemberDecl,headerStr); 38 | codegen.Insert(endMemberCreation,sourceStr); 39 | codegen.Insert(endCtrlIDDecl,MakeControlID(component)); 40 | } 41 | -------------------------------------------------------------------------------- /Components/StdCtrl/HotKeyCtrl.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (C) FlatGlobus(wtlbuilder@gmail.com) All rights reserved. 2 | // 3 | // This file is a part of the WTLBuilder. 4 | // The use and distribution terms for this software are covered by the 5 | // Microsoft Public License (http://opensource.org/licenses/MS-PL) 6 | // which can be found in the file MS-PL.txt at the root folder. 7 | 8 | #include "StdAfx.h" 9 | #include "hotkeyctrl.h" 10 | #include "resource.h" 11 | #include "PropertyListEdit.h" 12 | ////////////////////////////////////////////////////////////////////////// 13 | static void RegisterStatusBarCtrlStyles(); 14 | //typedef long ListViewStyle; 15 | //typedef long ListAlignStyle; 16 | //typedef long ListSortStyle; 17 | 18 | namespace StdCtrl 19 | { 20 | REGISTER_COMPONENT(CHotKeyCtrl,StdCtl,IDB_HOTKEYCTRL) 21 | 22 | CHotKeyCtrl::CHotKeyCtrl(LPTSTR _name):ControlComponent(_name) 23 | { 24 | SetDefaultSize(80,14); 25 | RegisterStatusBarCtrlStyles(); 26 | } 27 | 28 | CHotKeyCtrl::~CHotKeyCtrl(void) 29 | { 30 | } 31 | 32 | BOOL CHotKeyCtrl::CreateComponent(Component * _Parent) 33 | { 34 | SetComponentParent(_Parent); 35 | CWindowImpl::Create((HWND)_Parent->GetHandle(),GetBoundsRect(),NULL,get_InternalWindowStyle(),get_InternalWindowStyleEx()); 36 | return ::IsWindow(m_hWnd); 37 | } 38 | 39 | void CHotKeyCtrl::InitProperty(void) 40 | { 41 | ControlComponent::InitProperty(); 42 | } 43 | } 44 | ////////////////////////////////////////////////////////////////////////// 45 | static void RegisterStatusBarCtrlStyles() 46 | { 47 | static BOOL IsInited=FALSE; 48 | if(IsInited==TRUE) 49 | return; 50 | 51 | 52 | IsInited=TRUE; 53 | } 54 | -------------------------------------------------------------------------------- /Package/Package.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) FlatGlobus(wtlbuilder@gmail.com) All rights reserved. 2 | // 3 | // This file is a part of the WTLBuilder. 4 | // The use and distribution terms for this software are covered by the 5 | // Microsoft Public License (http://opensource.org/licenses/MS-PL) 6 | // which can be found in the file MS-PL.txt at the root folder. 7 | 8 | #ifndef __PACKAGE_H 9 | #define __PACKAGE_H 10 | ////////////////////////////////////////////////////////////////////////// 11 | #include "EventLib.h" 12 | #include "PackageApi.h" 13 | #pragma warning( disable:4251) 14 | ////////////////////////////////////////////////////////////////////////// 15 | class CPackageItem 16 | { 17 | public: 18 | CPackageItem(void); 19 | CPackageItem(const CString &); 20 | ~CPackageItem(void); 21 | BOOL Load(void); 22 | void Free(void); 23 | void SetName(const CString &); 24 | const CString & GetName(void); 25 | BOOL IsLoaded(void); 26 | protected: 27 | CString DllName; 28 | HINSTANCE Handle; 29 | }; 30 | 31 | ////////////////////////////////////////////////////////////////////////// 32 | typedef CSimpleArray CPackages; 33 | class PACKAGE_API CPackage 34 | { 35 | public: 36 | CPackage(void); 37 | ~CPackage(void); 38 | 39 | void * CreateByName(LPCTSTR); 40 | void LoadPackages(void); 41 | void FreePackages(void); 42 | void StartingUp(void); 43 | void OnCommand(UINT); 44 | void ScanFolder(LPCTSTR folder,LPCTSTR ext); 45 | HBITMAP GetDefaulBitmap(); 46 | protected: 47 | CBitmap defBitmap; 48 | CPackages packages; 49 | }; 50 | 51 | extern PACKAGE_API CPackage * Package; 52 | ////////////////////////////////////////////////////////////////////////// 53 | #endif 54 | -------------------------------------------------------------------------------- /Bin/Template/CSplashWnd/csplashwnd.js: -------------------------------------------------------------------------------- 1 | // Copyright (C) FlatGlobus(wtlbuilder@gmail.com) All rights reserved. 2 | // 3 | // This file is a part of the WTLBuilder. 4 | // The use and distribution terms for this software are covered by the 5 | // Microsoft Public License (http://opensource.org/licenses/MS-PL) 6 | // which can be found in the file MS-PL.txt at the root folder. 7 | 8 | function Form_CSplashWnd(form) 9 | { 10 | RemoveGenerated(form); 11 | 12 | var codegen=form.Code; 13 | var headerStr="\tCFont\tm_formFont;\n"; 14 | var sourceStr=MakeFormFont(form); 15 | var postSource=""; 16 | var destructionStr=""; 17 | sourceStr+="\tSetFont((HFONT)m_formFont);\n"; 18 | sourceStr+=codegen.Format(form,"\tResizeClient([!ClientWidth],[!ClientHeight]);\n"); 19 | sourceStr+="\n"; 20 | 21 | codegen.Insert(endMemberDecl,headerStr); 22 | codegen.Insert(endMemberCreation,sourceStr); 23 | codegen.Insert(endWindowStyle,MakeWinTraits(form)); 24 | codegen.Insert(endPostCreation,postSource); 25 | codegen.Insert(endCtrlToClip,MakeControlsToClip(form)); 26 | codegen.Insert(endAttachCtrls,MakeDefineLayout(form)); 27 | codegen.Insert(endInitLayout,MakeInitLayout(form)); 28 | codegen.Insert(endMemberDestruction,destructionStr); 29 | codegen.Insert(endTabStop,TabStopControls(form)); 30 | LocalizeWindow(form); 31 | } 32 | 33 | function Form_CSplashWndLocalize(form) 34 | { 35 | var codegen=form.Code; 36 | 37 | var langId=GetLangID(form.Item("Localize.LangID")); 38 | var langIdStr=""; 39 | if(langId != -1) 40 | langIdStr=parseInt(langId); 41 | var str="[LangInfo]\nLanguageID = "+langIdStr+"\n"+codegen.Format(form,"Language = [!Localize.LangID]\n\n[[!Localize.LocalizeName]]\n"); 42 | codegen.Localize=str; 43 | } 44 | -------------------------------------------------------------------------------- /Components/WTLBuilderCtrl/ImgListCtrl.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (C) FlatGlobus(wtlbuilder@gmail.com) All rights reserved. 2 | // 3 | // This file is a part of the WTLBuilder. 4 | // The use and distribution terms for this software are covered by the 5 | // Microsoft Public License (http://opensource.org/licenses/MS-PL) 6 | // which can be found in the file MS-PL.txt at the root folder. 7 | 8 | #include "stdafx.h" 9 | #include "ImgListCtrl.h" 10 | #include "..\Property\Register.h" 11 | #include "resource.h" 12 | 13 | namespace WTLBuilderCtrl 14 | { 15 | REGISTER_COMPONENT_EX(CImgListCtrl,CImgListCtrlComp,WTLBuilderCtrl,IDB_PROPERTYBOX) 16 | ////////////////////////////////////////////////////////////////////////// 17 | CImgListCtrlComp::CImgListCtrlComp(LPTSTR _name):CImgListCtrl(16,16),ControlComponent(_name) 18 | { 19 | } 20 | 21 | CImgListCtrlComp::~CImgListCtrlComp(void) 22 | { 23 | } 24 | ////////////////////////////////////////////////////////////////////////// 25 | BOOL CImgListCtrlComp::CreateComponent(Component * _Parent) 26 | { 27 | SetComponentParent(_Parent); 28 | Create((HWND)_Parent->GetHandle(),GetBoundsRect(),0); 29 | //CWindowImpl::Create((HWND)_Parent->GetHandle(),GetBoundsRect(),(LPCTSTR)get_Name(),get_InternalWindowStyle(),get_InternalWindowStyleEx()); 30 | AddImage(ATL::_U_STRINGorID(IDB_PROPERTYBOX)); 31 | return ::IsWindow(m_hWnd); 32 | } 33 | 34 | void CImgListCtrlComp::InitProperty(void) 35 | { 36 | ControlComponent::InitProperty(); 37 | DEFINE_PROPERTY(ImageWidth,long,CImgListCtrlComp,16) 38 | } 39 | 40 | void CImgListCtrlComp::set_ImageWidth(long n) 41 | { 42 | SetColWidth(n); 43 | SetModified(); 44 | } 45 | 46 | long CImgListCtrlComp::get_ImageWidth() 47 | { 48 | return GetColWidth(); 49 | } 50 | 51 | } -------------------------------------------------------------------------------- /Package/Package.vcxproj.filters: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Source Files 6 | 7 | 8 | Source Files 9 | 10 | 11 | 12 | 13 | Header Files 14 | 15 | 16 | Header Files 17 | 18 | 19 | Header Files 20 | 21 | 22 | Header Files 23 | 24 | 25 | 26 | 27 | {033b62d7-7ed7-4d0e-bae8-f12f4515e332} 28 | h;hpp;hxx;hm;inl;inc 29 | 30 | 31 | {b75d005e-0060-47c2-b90f-172de330d40b} 32 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;jpg;jpeg;jpe;manifest 33 | 34 | 35 | {fb278055-9406-41e4-a808-02ae4c0d6b0e} 36 | cpp;c;cxx;def;odl;idl;hpj;bat;asm 37 | 38 | 39 | 40 | 41 | Resource Files 42 | 43 | 44 | 45 | 46 | Resource Files 47 | 48 | 49 | -------------------------------------------------------------------------------- /SDK/Property/PropertyTextEdit.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (C) FlatGlobus(wtlbuilder@gmail.com) All rights reserved. 2 | // 3 | // This file is a part of the WTLBuilder. 4 | // The use and distribution terms for this software are covered by the 5 | // Microsoft Public License (http://opensource.org/licenses/MS-PL) 6 | // which can be found in the file MS-PL.txt at the root folder. 7 | 8 | #include "stdafx.h" 9 | #include "PropertyTextEdit.h" 10 | ////////////////////////////////////////////////////////////////////////// 11 | void CInplaceTextEdit::ShowProperty(PropertyBase *prop) 12 | { 13 | LimitText(256); 14 | SetWindowText(prop->ToString()); 15 | } 16 | 17 | void CInplaceTextEdit::UpdateProperty(PropertyBase *prop) 18 | { 19 | if(IsCancel()==FALSE) 20 | { 21 | CString str=GetText(); 22 | if(prop->ToString()!=str) 23 | { 24 | prop->FromString(GetText()); 25 | ::UpdateProperty(prop->GetName()); 26 | SendEvent(evAddUndo,NULL); 27 | } 28 | } 29 | } 30 | ////////////////////////////////////////////////////////////////////////// 31 | void CInplaceIntEdit::ShowProperty(PropertyBase *prop) 32 | { 33 | LimitText(256); 34 | SetWindowText(prop->ToString()); 35 | } 36 | 37 | void CInplaceIntEdit::UpdateProperty(PropertyBase *prop) 38 | { 39 | if(IsCancel()==FALSE) 40 | { 41 | CString str=GetText(); 42 | if(prop->ToString()!=str) 43 | { 44 | prop->FromString(GetText()); 45 | ::UpdateProperty(prop->GetName()); 46 | SendEvent(evAddUndo,NULL); 47 | } 48 | } 49 | } 50 | 51 | LRESULT CInplaceIntEdit::OnChar(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled) 52 | { 53 | if(isdigit((int)wParam) || wParam == '-') 54 | return 0; 55 | bHandled=TRUE; 56 | return TRUE; 57 | } 58 | -------------------------------------------------------------------------------- /Bin/Template/CMDIChildWindowImpl/CMDIChildWindowImpl.h: -------------------------------------------------------------------------------- 1 | ////////////////////////////////////////////////////////////////////////// 2 | #pragma once 3 | 4 | #include 5 | #include 6 | //{{WTLBUILDER_INCLUDE_DECLARATION 7 | //}}WTLBUILDER_INCLUDE_DECLARATION 8 | 9 | //{{WTLBUILDER_CONTROL_ID_DECLARATION 10 | //}}WTLBUILDER_CONTROL_ID_DECLARATION 11 | 12 | //{{WTLBUILDER_WINDOW_STYLE 13 | //}}WTLBUILDER_WINDOW_STYLE 14 | class [!CLASSNAME]:public CMDIChildWindowImpl<[!CLASSNAME],CWindow,[!CLASSNAME]WinTraits>, 15 | public CScrollImpl<[!CLASSNAME]>,public LayoutMgr<[!CLASSNAME]> 16 | //{{WTLBUILDER_BASE_CLASS 17 | //}}WTLBUILDER_BASE_CLASS 18 | { 19 | CToolTipCtrl m_toolTip; 20 | // CBrush m_bkColor; 21 | //{{WTLBUILDER_MEMBER_DECLARATION 22 | //}}WTLBUILDER_MEMBER_DECLARATION 23 | void InitLayout(void); 24 | virtual void DefineLayout(); 25 | public: 26 | virtual void GetDialogRect(LPRECT r); 27 | virtual void GetOffset(LPPOINT offset); 28 | virtual void DoPaint(CDCHandle /*dc*/); 29 | static const UINT _controlsToClip[]; 30 | typedef CMDIChildWindowImpl<[!CLASSNAME], CWindow, [!CLASSNAME]WinTraits> thisClass; 31 | 32 | //{{WTLBUILDER_WINCLASS_DECLARATION 33 | //}}WTLBUILDER_WINCLASS_DECLARATION 34 | 35 | //DECLARE_FRAME_WND_CLASS(NULL, IDR_MAINFRAME) 36 | 37 | virtual BOOL PreTranslateMessage(MSG* pMsg); 38 | 39 | BEGIN_MSG_MAP([!CLASSNAME]) 40 | MESSAGE_HANDLER(WM_SIZE, LayoutMgr<[!CLASSNAME]>::OnSize) 41 | MESSAGE_HANDLER(WM_ERASEBKGND, LayoutMgr<[!CLASSNAME]>::OnEraseBackground) 42 | MESSAGE_HANDLER(WM_CREATE, OnCreate) 43 | CHAIN_MSG_MAP(thisClass) 44 | REFLECT_NOTIFICATIONS() 45 | END_MSG_MAP() 46 | 47 | [!CLASSNAME](void); 48 | ~[!CLASSNAME](void); 49 | LRESULT OnCreate(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/); 50 | }; 51 | ////////////////////////////////////////////////////////////////////////// 52 | -------------------------------------------------------------------------------- /Bin/Template/CMDIFrameWindowImpl/CMDIFrameWindowImpl.h: -------------------------------------------------------------------------------- 1 | ////////////////////////////////////////////////////////////////////////// 2 | #pragma once 3 | 4 | #include 5 | #include 6 | //{{WTLBUILDER_INCLUDE_DECLARATION 7 | //}}WTLBUILDER_INCLUDE_DECLARATION 8 | 9 | //{{WTLBUILDER_CONTROL_ID_DECLARATION 10 | //}}WTLBUILDER_CONTROL_ID_DECLARATION 11 | 12 | //{{WTLBUILDER_WINDOW_STYLE 13 | //}}WTLBUILDER_WINDOW_STYLE 14 | class [!CLASSNAME]:public CMDIFrameWindowImpl<[!CLASSNAME],CWindow,[!CLASSNAME]WinTraits>, 15 | public CScrollImpl<[!CLASSNAME]>,public LayoutMgr<[!CLASSNAME]> 16 | //{{WTLBUILDER_BASE_CLASS 17 | //}}WTLBUILDER_BASE_CLASS 18 | { 19 | CToolTipCtrl m_toolTip; 20 | // CBrush m_bkColor; 21 | //{{WTLBUILDER_MEMBER_DECLARATION 22 | //}}WTLBUILDER_MEMBER_DECLARATION 23 | void InitLayout(void); 24 | virtual void DefineLayout(); 25 | public: 26 | virtual void GetDialogRect(LPRECT r); 27 | virtual void GetOffset(LPPOINT offset); 28 | virtual void DoPaint(CDCHandle /*dc*/); 29 | static const UINT _controlsToClip[]; 30 | typedef CMDIFrameWindowImpl<[!CLASSNAME], CWindow, [!CLASSNAME]WinTraits> thisClass; 31 | 32 | //{{WTLBUILDER_WINCLASS_DECLARATION 33 | //}}WTLBUILDER_WINCLASS_DECLARATION 34 | 35 | //DECLARE_FRAME_WND_CLASS(NULL, IDR_MAINFRAME) 36 | 37 | virtual BOOL PreTranslateMessage(MSG* pMsg); 38 | 39 | BEGIN_MSG_MAP([!CLASSNAME]) 40 | MESSAGE_HANDLER(WM_SIZE, LayoutMgr<[!CLASSNAME]>::OnSize) 41 | MESSAGE_HANDLER(WM_ERASEBKGND, LayoutMgr<[!CLASSNAME]>::OnEraseBackground) 42 | MESSAGE_HANDLER(WM_CREATE, OnCreate) 43 | CHAIN_MSG_MAP(thisClass) 44 | REFLECT_NOTIFICATIONS() 45 | END_MSG_MAP() 46 | 47 | [!CLASSNAME](void); 48 | ~[!CLASSNAME](void); 49 | LRESULT OnCreate(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/); 50 | }; 51 | ////////////////////////////////////////////////////////////////////////// 52 | -------------------------------------------------------------------------------- /SDK/Property/Property.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (C) FlatGlobus(wtlbuilder@gmail.com) All rights reserved. 2 | // 3 | // This file is a part of the WTLBuilder. 4 | // The use and distribution terms for this software are covered by the 5 | // Microsoft Public License (http://opensource.org/licenses/MS-PL) 6 | // which can be found in the file MS-PL.txt at the root folder. 7 | 8 | #include "stdafx.h" 9 | #include "PropertyList.h" 10 | 11 | CAppModule _Module; 12 | 13 | void InitProperty(void); 14 | 15 | BOOL APIENTRY DllMain( HANDLE hInstance, 16 | DWORD ul_reason_for_call, 17 | LPVOID lpReserved 18 | ) 19 | { 20 | switch (ul_reason_for_call) 21 | { 22 | case DLL_PROCESS_ATTACH: 23 | _Module.Init(NULL, (HINSTANCE)hInstance); 24 | InitProperty(); 25 | break; 26 | case DLL_THREAD_ATTACH: 27 | break; 28 | case DLL_THREAD_DETACH: 29 | break; 30 | case DLL_PROCESS_DETACH: 31 | _Module.Term(); 32 | break; 33 | } 34 | return TRUE; 35 | } 36 | 37 | 38 | static CPropertyList propertyList; 39 | 40 | void RegisterThemes(); 41 | 42 | extern "C" PROPERTY_API CPropertyList * CreatePropertyList(HWND Parent, CRect &rc,UINT id) 43 | { 44 | RegisterThemes(); 45 | if(::IsWindow(propertyList.m_hWnd)==NULL) 46 | propertyList.Create(Parent,rc,id); 47 | 48 | return &propertyList; 49 | } 50 | 51 | extern "C" PROPERTY_API void RemoveProperties(void) 52 | { 53 | if(::IsWindow(propertyList.m_hWnd)) 54 | { 55 | propertyList.ResetContent(); 56 | } 57 | } 58 | 59 | extern "C" PROPERTY_API void ShowProperties(CProperties * p) 60 | { 61 | if(::IsWindow(propertyList.m_hWnd)) 62 | { 63 | propertyList.InsertProperty(p); 64 | } 65 | } 66 | 67 | extern "C" PROPERTY_API void UpdateProperty(const CString & p) 68 | { 69 | if(::IsWindow(propertyList.m_hWnd)) 70 | { 71 | propertyList.UpdateProperty(p); 72 | } 73 | } 74 | -------------------------------------------------------------------------------- /Components/ViksoeCtrl/TreeListComp.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (C) FlatGlobus(wtlbuilder@gmail.com) All rights reserved. 2 | // 3 | // This file is a part of the WTLBuilder. 4 | // The use and distribution terms for this software are covered by the 5 | // Microsoft Public License (http://opensource.org/licenses/MS-PL) 6 | // which can be found in the file MS-PL.txt at the root folder. 7 | 8 | #include "StdAfx.h" 9 | #include "TreeListComp.h" 10 | #include "resource.h" 11 | #include "PropertyListEdit.h" 12 | #ifdef __WTLBUILDER__ 13 | ////////////////////////////////////////////////////////////////////////// 14 | static void RegisterTreeListViewCtrlStyles(); 15 | namespace ViksoeCtrl 16 | { 17 | REGISTER_COMPONENT_EX(CTreeListView,CTreeListViewComp,ViksoeCtrl,IDB_TREELISTVIEW) 18 | 19 | CTreeListViewComp::CTreeListViewComp(LPTSTR _name):ControlComponent(_name) 20 | { 21 | SetDefaultSize(120,128); 22 | RegisterTreeListViewCtrlStyles(); 23 | } 24 | 25 | CTreeListViewComp::~CTreeListViewComp(void) 26 | { 27 | } 28 | 29 | BOOL CTreeListViewComp::CreateComponent(Component * _Parent) 30 | { 31 | SetComponentParent(_Parent); 32 | Create((HWND)_Parent->GetHandle(),GetBoundsRect(),NULL,get_InternalWindowStyle(),get_InternalWindowStyleEx()); 33 | return ::IsWindow(m_hWnd); 34 | } 35 | 36 | void CTreeListViewComp::InitProperty(void) 37 | { 38 | ControlComponent::InitProperty(); 39 | } 40 | } 41 | ////////////////////////////////////////////////////////////////////////// 42 | static void RegisterTreeListViewCtrlStyles() 43 | { 44 | static BOOL IsInited=FALSE; 45 | if(IsInited==TRUE) 46 | return; 47 | IsInited=TRUE; 48 | } 49 | //////////////////////////////////////////////////////////////////////////////////////////////// 50 | #endif 51 | -------------------------------------------------------------------------------- /Components/StdCtrl/Edit.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) FlatGlobus(wtlbuilder@gmail.com) All rights reserved. 2 | // 3 | // This file is a part of the WTLBuilder. 4 | // The use and distribution terms for this software are covered by the 5 | // Microsoft Public License (http://opensource.org/licenses/MS-PL) 6 | // which can be found in the file MS-PL.txt at the root folder. 7 | 8 | #ifndef __EDIT_H 9 | #define __EDIT_H 10 | ////////////////////////////////////////////////////////////////////////// 11 | namespace StdCtrl 12 | { 13 | class CEdit:public CWindowImpl,public ControlComponent 14 | { 15 | CString text; 16 | CString cueBannerText; 17 | CString ddxVar; 18 | long limitText; 19 | //long leftMargin; 20 | //long rightMargin; 21 | public: 22 | CEdit(LPTSTR _name=NULL); 23 | ~CEdit(void); 24 | virtual BOOL CreateComponent(Component *); 25 | BEGIN_MSG_MAP(StdCtrl::CEdit) 26 | CHAIN_MSG_MAP(ControlComponent) 27 | REFLECT_NOTIFICATIONS_EX() 28 | END_MSG_MAP() 29 | 30 | virtual void InitProperty(void); 31 | //void SetLimitText(long); 32 | //long GetLimitText(void); 33 | DECLARE_PROPERTY(Text,CString) 34 | DECLARE_PROPERTY(CueBannerText, CString) 35 | DECLARE_WINSTYLE_BOOL_PROPERTY(AutoHScroll) 36 | DECLARE_WINSTYLE_BOOL_PROPERTY(AutoVScroll) 37 | DECLARE_WINSTYLE_BOOL_PROPERTY(MultiLine) 38 | DECLARE_WINSTYLE_BOOL_PROPERTY(LowerCase) 39 | DECLARE_WINSTYLE_BOOL_PROPERTY(NoHideSel) 40 | DECLARE_WINSTYLE_BOOL_PROPERTY(Number) 41 | DECLARE_WINSTYLE_BOOL_PROPERTY(OemConvert) 42 | DECLARE_WINSTYLE_BOOL_PROPERTY(Password) 43 | DECLARE_WINSTYLE_BOOL_PROPERTY(ReadOnly) 44 | DECLARE_WINSTYLE_BOOL_PROPERTY(UpperCase) 45 | DECLARE_WINSTYLE_BOOL_PROPERTY(WantReturn) 46 | DECLARE_WINSTYLE_PROPERTY(TextAlign) 47 | }; 48 | } 49 | ////////////////////////////////////////////////////////////////////////// 50 | #endif -------------------------------------------------------------------------------- /Components/WTLBuilderCtrl/PropertyBox.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (C) FlatGlobus(wtlbuilder@gmail.com) All rights reserved. 2 | // 3 | // This file is a part of the WTLBuilder. 4 | // The use and distribution terms for this software are covered by the 5 | // Microsoft Public License (http://opensource.org/licenses/MS-PL) 6 | // which can be found in the file MS-PL.txt at the root folder. 7 | 8 | #include "StdAfx.h" 9 | #include "propertybox.h" 10 | #include "..\Property\Register.h" 11 | #include "resource.h" 12 | #include "..\Property\PropertyListEdit.h" 13 | ////////////////////////////////////////////////////////////////////////// 14 | namespace WTLBuilderCtrl 15 | { 16 | REGISTER_COMPONENT(CPropertyList,WTLBuilderCtrl,IDB_PROPERTYBOX) 17 | CPropertyList::CPropertyList(LPTSTR _name):ControlComponent(_name) 18 | { 19 | m_bkgBrush.CreateSolidBrush(::GetSysColor(COLOR_BTNFACE)); 20 | } 21 | 22 | CPropertyList::~CPropertyList(void) 23 | { 24 | } 25 | 26 | BOOL CPropertyList::CreateComponent(Component * _Parent) 27 | { 28 | ADD_WIN_STYLE(LBS_SORT | LBS_OWNERDRAWFIXED | WS_CHILD | WS_VISIBLE | WS_VSCROLL | LBS_NOTIFY | LBS_HASSTRINGS | LBS_NOINTEGRALHEIGHT) 29 | SetComponentParent(_Parent); 30 | CWindowImpl::Create((HWND)_Parent->GetHandle(),GetBoundsRect(),(LPCTSTR)get_Name(),get_InternalWindowStyle(),get_InternalWindowStyleEx()); 31 | return ::IsWindow(m_hWnd); 32 | } 33 | 34 | void CPropertyList::InitProperty(void) 35 | { 36 | ControlComponent::InitProperty(); 37 | } 38 | 39 | LRESULT CPropertyList::OnCtlColor(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& handled) 40 | { 41 | handled=TRUE; 42 | SetBkColor((HDC)wParam,::GetSysColor(COLOR_BTNFACE)); 43 | SetTextColor((HDC)wParam,RGB(0,0,0)); 44 | return (LRESULT)(HBRUSH)m_bkgBrush; 45 | } 46 | 47 | ////////////////////////////////////////////////////////////////////////// 48 | } 49 | -------------------------------------------------------------------------------- /Bin/Template/CMDIChildWindowImpl/CMDIChildWindowImpl.cpp: -------------------------------------------------------------------------------- 1 | ////////////////////////////////////////////////////////////////////////// 2 | #include "StdAfx.h" 3 | #include "[!FILENAME].h" 4 | ////////////////////////////////////////////////////////////////////////// 5 | const UINT [!CLASSNAME]::_controlsToClip[] = 6 | { 7 | //{{WTLBUILDER_CTRLTOCLIP 8 | //}}WTLBUILDER_CTRLTOCLIP 9 | 0 10 | }; 11 | ////////////////////////////////////////////////////////////////////////// 12 | [!CLASSNAME]::[!CLASSNAME](void) 13 | //{{WTLBUILDER_CONSTRUCTOR 14 | //}}WTLBUILDER_CONSTRUCTOR 15 | { 16 | } 17 | 18 | [!CLASSNAME]::~[!CLASSNAME](void) 19 | { 20 | //{{WTLBUILDER_MEMBER_DESTRUCTION 21 | //}}WTLBUILDER_MEMBER_DESTRUCTION 22 | } 23 | 24 | BOOL [!CLASSNAME]::PreTranslateMessage(MSG* pMsg) 25 | { 26 | m_toolTip.RelayEvent(pMsg); 27 | return thisClass::PreTranslateMessage(pMsg); 28 | } 29 | 30 | LRESULT [!CLASSNAME]::OnCreate(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/) 31 | { 32 | m_toolTip.Create(m_hWnd); 33 | 34 | //{{WTLBUILDER_MEMBER_CREATION 35 | //}}WTLBUILDER_MEMBER_CREATION 36 | //{{WTLBUILDER_POST_CREATION 37 | //}}WTLBUILDER_POST_CREATION 38 | 39 | InitLayout(); 40 | 41 | return 0; 42 | } 43 | 44 | void [!CLASSNAME]::DefineLayout() 45 | { 46 | //{{WTLBUILDER_ATTACH_CONTROLS 47 | //}}WTLBUILDER_ATTACH_CONTROLS 48 | } 49 | 50 | void [!CLASSNAME]::InitLayout() 51 | { 52 | //{{WTLBUILDER_INITLAYOUT 53 | //}}WTLBUILDER_INITLAYOUT 54 | //SetScrollSize(_minClientSize); 55 | } 56 | 57 | void [!CLASSNAME]::GetDialogRect(LPRECT r) 58 | { 59 | GetClientRect(r); 60 | if (r->right < m_sizeAll.cx) 61 | { 62 | r->right = m_sizeAll.cx; 63 | } 64 | if (r->bottom < m_sizeAll.cy) 65 | { 66 | r->bottom = m_sizeAll.cy; 67 | } 68 | } 69 | 70 | void [!CLASSNAME]::GetOffset(LPPOINT offset) 71 | { 72 | *offset = m_ptOffset; 73 | } 74 | 75 | void [!CLASSNAME]::DoPaint(CDCHandle /*dc*/) 76 | { 77 | 78 | } 79 | -------------------------------------------------------------------------------- /Bin/Template/CMDIFrameWindowImpl/CMDIFrameWindowImpl.cpp: -------------------------------------------------------------------------------- 1 | ////////////////////////////////////////////////////////////////////////// 2 | #include "StdAfx.h" 3 | #include "[!FILENAME].h" 4 | ////////////////////////////////////////////////////////////////////////// 5 | const UINT [!CLASSNAME]::_controlsToClip[] = 6 | { 7 | //{{WTLBUILDER_CTRLTOCLIP 8 | //}}WTLBUILDER_CTRLTOCLIP 9 | 0 10 | }; 11 | ////////////////////////////////////////////////////////////////////////// 12 | [!CLASSNAME]::[!CLASSNAME](void) 13 | //{{WTLBUILDER_CONSTRUCTOR 14 | //}}WTLBUILDER_CONSTRUCTOR 15 | { 16 | } 17 | 18 | [!CLASSNAME]::~[!CLASSNAME](void) 19 | { 20 | //{{WTLBUILDER_MEMBER_DESTRUCTION 21 | //}}WTLBUILDER_MEMBER_DESTRUCTION 22 | } 23 | 24 | BOOL [!CLASSNAME]::PreTranslateMessage(MSG* pMsg) 25 | { 26 | m_toolTip.RelayEvent(pMsg); 27 | return thisClass::PreTranslateMessage(pMsg); 28 | } 29 | 30 | LRESULT [!CLASSNAME]::OnCreate(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/) 31 | { 32 | m_toolTip.Create(m_hWnd); 33 | 34 | //{{WTLBUILDER_MEMBER_CREATION 35 | //}}WTLBUILDER_MEMBER_CREATION 36 | //{{WTLBUILDER_POST_CREATION 37 | //}}WTLBUILDER_POST_CREATION 38 | 39 | InitLayout(); 40 | 41 | return 0; 42 | } 43 | 44 | void [!CLASSNAME]::DefineLayout() 45 | { 46 | //{{WTLBUILDER_ATTACH_CONTROLS 47 | //}}WTLBUILDER_ATTACH_CONTROLS 48 | } 49 | 50 | void [!CLASSNAME]::InitLayout() 51 | { 52 | //{{WTLBUILDER_INITLAYOUT 53 | //}}WTLBUILDER_INITLAYOUT 54 | //SetScrollSize(_minClientSize); 55 | } 56 | 57 | void [!CLASSNAME]::GetDialogRect(LPRECT r) 58 | { 59 | GetClientRect(r); 60 | if (r->right < m_sizeAll.cx) 61 | { 62 | r->right = m_sizeAll.cx; 63 | } 64 | if (r->bottom < m_sizeAll.cy) 65 | { 66 | r->bottom = m_sizeAll.cy; 67 | } 68 | } 69 | 70 | void [!CLASSNAME]::GetOffset(LPPOINT offset) 71 | { 72 | *offset = m_ptOffset; 73 | } 74 | 75 | void [!CLASSNAME]::DoPaint(CDCHandle /*dc*/) 76 | { 77 | 78 | } 79 | --------------------------------------------------------------------------------