VBCCR Development Manual
VBCCR (VB Common Controls Replacement) is a comprehensive replacement library for the Microsoft Common Controls (MSComCtl) in Visual Basic 6, developed and maintained by Kr00l. While maintaining compatibility with the original controls, it provides enhanced functionality, improved visual appearance, and full Unicode support.
Key advantage: Resolves the garbled text issue when displaying Unicode characters on native VB6 form controls.
This documentation is based on the VBCCR 1.8 source code. All interface information is derived from the actual code to ensure accuracy.
Quick Start
- Download the VBCCR library from the GitHub repository
- Register the OCX file on your system:
regsvr32 VBCCR18.OCX - Add a reference to the VBCCR controls in your VB6 project
- Use the enhanced controls on your forms
Included Controls
Buttons
| Control | Class Name | Description |
|---|---|---|
| CheckBoxW | CheckBoxW | Unicode CheckBox control |
| CommandButtonW | CommandButtonW | Unicode CommandButton control |
| CommandLink | CommandLink | CommandLink control |
| OptionButtonW | OptionButtonW | Unicode OptionButton control |
Text
| Control | Class Name | Description |
|---|---|---|
| TextBoxW | TextBoxW | Unicode TextBox control |
| RichTextBox | RichTextBox | RichTextBox control |
| SpinBox | SpinBox | SpinBox control |
| LabelW | LabelW | Unicode Label control |
| WindowedLabel | WindowedLabel | Windowed Label control |
| LinkLabel | LinkLabel | LinkLabel control |
| HotKey | HotKey | HotKey control |
Lists
| Control | Class Name | Description |
|---|---|---|
| ComboBoxW | ComboBoxW | Unicode ComboBox control |
| ListBoxW | ListBoxW | Unicode ListBox control |
| FontCombo | FontCombo | Font selection ComboBox control |
| ImageCombo | ImageCombo | Image ComboBox control |
| IPAddress | IPAddress | IP Address control |
| VirtualCombo | VirtualCombo | Virtual ComboBox control |
| VListBox | VListBox | Virtual ListBox control |
Views
| Control | Class Name | Description |
|---|---|---|
| ListView | ListView | ListView control |
| TreeView | TreeView | TreeView control |
| TabStrip | TabStrip | TabStrip control |
Bars
| Control | Class Name | Description |
|---|---|---|
| ToolBar | ToolBar | ToolBar control |
| StatusBar | StatusBar | StatusBar control |
| CoolBar | CoolBar | Dockable toolbar control |
| Pager | Pager | Pager control |
Ranges
| Control | Class Name | Description |
|---|---|---|
| Slider | Slider | Slider control |
| ProgressBar | ProgressBar | ProgressBar control |
| UpDown | UpDown | UpDown control |
| Animation | Animation | Animation control |
Date/Time
| Control | Class Name | Description |
|---|---|---|
| DTPicker | DTPicker | DateTimePicker control |
| MonthView | MonthView | MonthView control |
System
| Control | Class Name | Description |
|---|---|---|
| CommonDialog | CommonDialog | Common Dialog class |
| SysInfo | SysInfo | System Information control |
| ImageList | ImageList | ImageList control |
| FrameW | FrameW | Unicode Frame control |
| MCIWnd | MCIWnd | Multimedia control |
Common Helper Modules
VBCCR also provides the following public helper modules shared by all controls:
| Module | File | Description |
|---|---|---|
| Common | Common.bas | General utility functions (MsgBox, SendKeys Unicode versions, clipboard operations, DPI helpers, image processing, etc.) |
| VisualStyles | VisualStyles.bas | Visual style management (ActivateVisualStyles, RemoveVisualStyles, GetComCtlVersion) |
| ISubclass | ISubclass.cls | Subclassing interface |
| ComCtlsBase | ComCtlsBase.bas | Control base module |
| VTableHandle | VTableHandle.bas | VTable handling module |
Common Enumerations
The following enumerations are shared across multiple controls:
CCAppearanceConstants
| Constant | Value | Description |
|---|---|---|
| cc2D | 0 | Flat appearance |
| cc3D | 1 | 3D appearance |
CCLeftRightAlignmentConstants
| Constant | Value | Description |
|---|---|---|
| ccLeft | 0 | Left alignment |
| ccRight | 1 | Right alignment |
CCVerticalAlignmentConstants
| Constant | Value | Description |
|---|---|---|
| ccTop | 0 | Top alignment |
| ccBottom | 1 | Bottom alignment |
| ccVCenter | 2 | Vertical center |
CCMousePointerConstants
| Constant | Value |
|---|---|
| ccDefault | 0 |
| ccArrow | 1 |
| ccCrosshair | 2 |
| ccIBeam | 3 |
| ccIcon | 4 |
| ccSize | 5 |
| ccSizeNESW | 6 |
| ccSizeNS | 7 |
| ccSizeNWSE | 8 |
| ccSizeWE | 9 |
| ccUpArrow | 10 |
| ccHourglass | 11 |
| ccNoDrop | 12 |
| ccArrowHourglass | 13 |
| ccArrowQuestion | 14 |
| ccSizeAll | 15 |
| ccCustom | 99 |
CCRightToLeftModeConstants
| Constant | Value | Description |
|---|---|---|
| ccRtlModeNo | 0 | No RTL |
| ccRtlModeStandard | 1 | Standard RTL |
| ccRtlModeV2 | 2 | V2 mode RTL |
CCIMEModeConstants
| Constant | Value |
|---|---|
| ccIMENoControl | 0 |
| ccIMEOn | 1 |
| ccIMEOff | 2 |
| ccIMEDisable | 3 |
| ccIMEHiragana | 4 |
| ccIMEKatakanaDbl | 5 |
| ccIMEKatakanaSng | 6 |
| ccIMEAlphaDbl | 7 |
| ccIMEAlphaSng | 8 |
| ccIMEHangulDbl | 9 |
| ccIMEHangulSng | 10 |
OLEDropModeConstants
| Constant | Value |
|---|---|
| ccOLEDropNone | 0 |
| ccOLEDropManual | 1 |
Author Documentation
The official documentation written by VBCCR author Kr00l (Chinese translation), covering StdEXE/OCX version usage guides, OCX2StdEXE tool instructions, compilation options, and version history: