第5章 创建ActiveX控件
当你在做web应用程序时,假设你想在网页中包含很复杂的功能,使用基于web页的DHTML和Script语言就无能为力了.例如,你想访问某个客户端计算机的信息,如你想打开或是写入一个文件,或者你想限制Intenet用户访问某些站点.也许你想阻止用户访问某些游戏站点等.
为了实现这个目标,你需要创建你自己的应用程序来取得浏览器控制权(下一章介绍).使用微软的ActiveX控件,你能够钩住IE容器且几乎完全控制,处理事件和访问DHTML对象模型.(我将在第6章讨论浏览器控件和IE自动控制时介绍怎样钩住IE容器.)
本章将详细介绍使用Microsoft Visual Basic和与Microsoft Visual C++有密切关系的Active Template Library(ATL)创建一个ActiveX控件.(我们将使用ATL取代MFC,因为ATL是被设计成帮助创建Web ActiveX控件.)你不需要知道本章的COM,但是它会对你很有帮助.
如果你不了解COM,在"创建Visual Basic ActiveX控件"这章你也不会有问题.你可能在"创建ATL activeX控件"这章会遇到障碍,但是只要你跟着例子,你将能够创建IE的ActiveX控件.
在哪里找到更多资料
如果你想知道更多关于COM的信息,可以查看许多Microsoft出版的书籍,比如David Chappell写作的Understanding ActiveX And OLE,Dale Rogerson写的Inside COM,或Adam Denning写的ActiveX Controls Inside Out.
如果你想了解更多关于这章的其他信息,咨询http://msdn.microsoft.com/workshop的在线MSDN.
分享到:
相关推荐
基于对Microsoft Internet Explorer用户技术支持的丰富经验,作者将带您巧妙地通过编程,用简单的代码和较短的时间,开发出动态的、易于使用的应用程序。 光盘中的内容:书中所有示例代码,已用Visual Basic、Vials...
Learn Swift by Building Applications: Explore Swift programming through iOS app development by Emil Atanasov Packt Publishing English 2018-05-25 366 pages 5.0/5.0 1 reviews Details Title: Learn Swift...
Learn Swift by Building Applications: Explore Swift programming through iOS app development by Emil Atanasov Packt Publishing English 2018-05-25 366 pages 5.0/5.0 1 reviews Details Title: Learn Swift...
Explore the structure and behavior of a view engine Process a variety of input data using a custom model binder Automate the writing of input forms, and streamline validation Design websites for ...
Microsoft.Explore SharePoint 2013
Explore the world of parallel programming with this book, which is a go-to resource for different kinds of parallel computing tasks in Python, using examples and topics covered in great depth ...
Explore general programming concepts and R coding techniques Understand the ingredients of an efficient R workflow Learn how to efficiently read and write data in R Dive into data carpentry—the vital...
Hands-On High Performance Programming with Qt 5: Build cross-platform applications using concurrency, parallel programming, and memory management Author: Marek Krajewski Pub Date: 2019 ISBN: 978-...
Doing-Math-with-Python-Use-Programming-to-Explore-Algebra-Statistics-Calculus-and-More-.pdf
Explore a wide variety of code examples to easily get used to all the features and tools provided by RxJava Who This Book Is For If you are a Java developer that knows how to write software and would ...
Explore mainstream concurrent data structures and the key elements of their design, as well as synchronization techniques from simple locks to transactional memory systems Visit the companion site and...
You will explore the Qt Designer, discover the different types of widgets generally used in Qt 5, and then connect your application to the database to perform dynamic operations. Next, you will be ...
Learning-Object-Oriented-Programming-Explore-and-crack-the-OOP-code-in-Python-JavaScript-and-C-.pdf
Explore object-oriented programming, web programming, and Windows programming Beginning C# 6.0 Programming with Visual Studio 2015 is a fundamental resource for any programmers who are new to the C# ...
You'll master Go syntax, work with types and functions, and explore bigger ideas like state and concurrency, with plenty of exercises to lock in what you learn. What's inside Language concepts like ...
Along the way, you will explore the .NET Framework, the creation of a Windows-based user interface, a web-based user interface, and service-oriented programming, all using Microsoft's industry-...
Modern C++ Programming Cookbook ...This book follows a recipe-based approach, with examples that will empower you to implement the core programming language features and explore the newer aspects of C++.
Title: Functional Programming in JavaScript Author: Dan Mantyla Length: 152 pages Edition: 1 Language: English Publisher: Packt Publishing Publication Date: 2015-03-26 ISBN-10: 1784398225 ISBN-13: ...