This project is intended to replace the MS common controls for VB6.
The „MSCOMCT2.OCX“ can be replaced completly, except the FlatScrollBar. (But this is anyway not supported on the comctl32 v6.0)
The „MSCOMCTL.OCX“ can not yet be replaced fully, as the ToolBar control is not included.
The „COMCT332.OCX“ can not yet be replaced, as the CoolBar (ReBar) is not included.
Following controls are available at the moment:
Unicode is supported for all the stated controls.
At design time (IDE) there is only one dependency. (OLEGuids.tlb)
This is a modified version of the original .tlb from the vbaccelerator website.
But for the compiled .exe there are no dependencies, because the .tlb gets then compiled into the executable.
Everything should be self explained, because all functions and properties have a description.
- When using the SetParent API, then you should pass .hWndOwner and not .hWnd to it.
List of revisions:
Code:09-May-2013 - Some enhancements to the SubclassProc. - StatusBar can process WM_DRAWITEM in Design Mode via ASM Subclassing. (Tooglable compile option) 04-May-2013 - MonthView control does not need to subclass the parent form anymore at creation of the control. - DTPicker control support now bold dates. (But only on Vista/7 or above) 02-May-2013 - Implemented a GETDISPINFO handling on the ImageCombo and TreeView control. Therefore if SelImage/SelectedImage is not specified it will copy it from the Image value. (Same behavior now like the original controls) 01-May-2013 - TreeView control is added. - Some enhancements and bug fixes to the ListView control. 25-Apr-2013 - Some enhancements to the ListView control. - Improved the WM_SETFOCUS handling on all concerned controls. SetFocus API can now also be passed to .hWnd directly. But when using a SetParent API than you still should pass .hWndOwner and not .hWnd to it. 14-Apr-2013 - CallbackKeyDown, FormatString and FormatSize events are added to the DTPicker control to provide Callback Fields. - Property Page is implemented to the ProgressBar control. 09-Apr-2013 - Fixed a bug with the property bag concerning the date properties of the DTPicker and MonthView control. - Property Page is implemented to the MonthView control. 08-Apr-2013 - Const DTM_SETFORMATW on the DTPicker control was incorrect, causing no success on the CustomFormat property. - Included the MouseIcon/MousePointer property to the DTPicker control. - Property Page is implemented to the DTPicker control. - ItemBkColor event is added to the ListView. 14-Mar-2013 - ImageCombo control is added. 10-Mar-2013 - 'Tile' view on the ListView does not cause a crash anymore on Windows XP. - Fixed a issue on the ListView that the SelectedItem property could not be set to Nothing. 08-Mar-2013 - Minor improvements are done. 27-Feb-2013 - Included the 'Tile' view (and some other enhancements) to the ListView control. 23-Feb-2013 - IPAddress control is added. - Changes to the KeyAscii/KeyCode value on the KeyPress/KeyDown/KeyUp event will be considered now. - Included the WM_KEYUP message to the TranslateAccelerator handling. 20-Feb-2013 - Fixed a bug with the WM_MOUSEACTIVATE message on the ListView. 14-Feb-2013 - The Tag, Width and Height properties are now also available when setting to a shadow object. ('Set' command) - Some minor modifications on the property pages of the ImageList control. - Minor bugfixes on the ListView. 13-Feb-2013 - Complete remake of the ImageList control. (More comfortable and it works now like the orginal ImageList from MS) - Picture property of the ListView can now hold icons as well. 07-Feb-2013 - PictureAlignment 'Tile' for the ListView is improved on systems with version 6.1 of comctl32.dll. 06-Feb-2013 - Removed the 'Ex' addition to the whole project. - Fixed the column headers Left property for the ListView. 05-Feb-2013 - The Name and Parent properties are now also available when setting to a shadow object. ('Set' command) - Added the column headers Left property for the ListView. 04-Feb-2013 - Some enhancements to the ListView control. 03-Feb-2013 - ListView control is added. - Modified the OLEGuids.tlb and other components. - Fixed a scale mode issue with the X and Y coordinates of the OLEDragDrop/OLEDragOver events. - Improved the BuddyControl property of the UpDown control. (Returns now an object at runtime and it is even available on Form_Load) - Removed the hWndBuddy property of the UpDown control as now the object provides all information. 24-Jan-2013 - Improved the ImageList property of the TabStrip control. (Returns now an object at runtime and it is even available on Form_Load) - Renamed the ImageIndex property to Image of the tab object to harmonize more the namings with the original control. - Removed the ImageListHandle property of the TabStrip control as now the object provides all information. - Property Page is implemented to the Animation control and some modifications are done on it. - Included the OLEDrag method for each control. 16-Jan-2013 - Included the MouseIcon/MousePointer property to the MonthView control and improved the WM_SETCURSOR handling for all controls. 07-Jan-2013 - Improved the collections of the property classes. (Issue with internal wrong indexing when adding an item before an existing item) 06-Jan-2013 - Fixed a bug in the StartOfWeek property of the MonthView control. 04-Jan-2013 - Set the VB_Creatable property to false for all property classes. (e.g. Panel on StatusBar control) 30-Dec-2012 - Changed the way of subclassing. (From Friend Functions to ISubclass.cls) - The #Const declarations for subclassing are therefore not needed anymore. 23-Dec-2012 - IDE doesn't crash anymore when you push the End Button. (Togglable function) - Fixed a leak on the MonthView control concerning the subclassing of the parent. 20-Dec-2012 - Modified again the OLEGuids.tlb and other components. - VTable subclasses are reduced to the only necessary ones. 19-Dec-2012 - Modified the OLEGuids.tlb and other components. - The VB Classes HookIOleIPAO, HookIOleControl and HookIOlePPB are not needed anymore. 17-Dec-2012 - Included the OLEDropMode property and the OLE events for each control. - Included the Placement property to the TabStrip control. - Included the Enabled, MouseIcon and MousePointer property to the ProgressBar control. - Included the Click event to the ProgressBar and Slider control. - Added a StyleChange event to the StatusBar control. 15-Dec-2012 - Property Page is implemented to the Slider control and a bug is fixed of the TickStyle property. 14-Dec-2012 - Fixed a bug on the StatusBar that the last panel RECT (.Right value) gets calculated wrong, but only when running Windows XP, using the comctl32 v6 and activated SizeGrip. 11-Dec-2012 - Added the panels ToolTipText property for the StatusBar. 08-Dec-2012 - Improved the calculation of the X and Y params of the MouseMove, MouseDown and MouseUp events for all controls. 04-Dec-2012 - The panels Picture property of the StatusBar control can be set now at design time as well. 01-Dec-2012 - Optimized the property bags for the TabStrip and StatusBar control. 29-Nov-2012 - StatusBar control is added. 21-Nov-2012 - Subclassing conflicts fixed with the UpDown and ToolTip control. 20-Nov-2012 - Simplified the Tag and ToolTipText property for the TabStrip control. 18-Nov-2012 - Unicode support added for all controls. 15-Nov-2012 - The design time properties of the ToolTip control can now also be modified at run time. - TabMinWidth property added to the TabStrip control. 11-Nov-2012 - First release.