在安装 Visual FoxPro 时,将按照默认设置安装 ActiveX 控件(.ocx 文件)。您可以将 ActiveX 控件与您的应用程序一起发布。利用 Visual FoxPro 的 OLE 容器控件可以将ActiveX 控件添加到应用程序的表单中。
注释 随同 Visual FoxPro一起发布的许多 ActiveX 控件来自于其他的 Visual Studio 产品。当把 ActiveX 控件添加到了表单中并按 F1 键以获取帮助时,所显示帮助信息将来自于生成该控件的应用程序,而不是 Visual FoxPro。
下表列出了与 Visual FoxPro 一同安装的 .ocx 文件以及每个文件所包含的 ActiveX 控件。
文件 | 控件 | 帮助文件 |
Comctl232.ocx | Animation 控件 Datetimepicker 控件 Monthview 控件 Updown 控件 |
Cmctl298.chm |
Foxhwnd.ocx | Visual FoxPro HWND 控件 | Foxhelp.chm |
Foxtlib.ocx | Visual FoxPro Foxtlib 控件 | Foxhelp.chm |
MCI32.ocx | Multimedia MCI 控件 | Mmedia.chm |
MSChrt20.ocx | MsChart 控件 | Mschrt98.chm |
MSComctl.ocx | ImageCombo 控件 ImageList 控件 ListView 控件 ProgressBar 控件 Slider 控件 StatusBar 控件 TabStrip 控件 Toolbar 控件 TreeView 控件 |
Cmctl198.chm |
MSComm32.ocx | MSComm 控件 | Comm98.chm |
MSInet.ocx | Microsoft Internet Transfer 控件 | Inet98.chm |
MSMapi32.ocx | MAPI Message 控件 MAPI Session 控件 |
Mapi98.chm |
MSMask32.ocx | Masked Edit 控件 | Masked98.chm |
MSWinsck.ocx | Winsock 控件 | Mswnsk98.chm |
MSWless.ocx | CheckBox 控件 (Lightweight) ComboBox 控件 (Lightweight) 命令button 控件 (Lightweight) Frame 控件 (Lightweight) HscrollBar, VScrollBar 控件 (Lightweight) ListBox 控件 (Lightweight) OptionButton 控件 (Lightweight) TextBox 控件 (Lightweight) |
Ltwtct98.chm |
Picclp32.ocx | PicClip 控件 | Picclp98.chm |
Richtx32.ocx | Rich Textbox 控件 | Rtfbox98.chm |
Sysinfo.ocx | SysInfo 控件 | Sysinf98.chm |
有关在应用程序中添加 ActiveX 控件的详细内容,请参阅《程序员指南》的第十六章“添加 OLE”。