...
首页> 外文期刊>Dr. Dobb's Journal >Implementing Screen Savers in .NET
【24h】

Implementing Screen Savers in .NET

机译:在.NET中实现屏幕保护程序

获取原文
获取原文并翻译 | 示例
           

摘要

The first Windows program I ever wrote was a screen saver because I wanted to write some code that would let me do some graphical manipulation, and a screen saver seemed the ideal project. Since then, I have written many other screen savers to exercise new facilities as they are released for Windows. With this in mind, when .NET was first released, I took that as an opportunity to write yet another screen saver. .NET has a library called "Windows Forms" that provides basic windowing features. In terms of windowing, there really isn't much new in Windows Forms. Sure, there are some new controls, and it makes existing controls easier to use, but it has the same look and feel as Visual Basic Forms and is based on Win32 Windows messages, handles, and device contexts. If you are comfortable with Visual Basic, you'll be comfortable with Windows Forms. However, I came to .NET as a C++ Win32 programmer, so Windows Forms was alien to me, especially since it was not obvious how to do many of the things that came as second nature to me as a C++ programmer. In this article, I describe the screen-saver library I developed to do most of the work of a screen saver―all you have to provide is the graphics code.
机译:我曾经编写的第一个Windows程序是一个屏幕保护程序,因为我想编写一些可以让我进行图形操作的代码,而屏幕保护程序似乎是理想的项目。从那时起,我编写了许多其他的屏幕保护程序来使用Windows发行的新功能。考虑到这一点,当.NET首次发布时,我以此为契机编写了另一个屏幕保护程序。 .NET有一个称为“ Windows窗体”的库,它提供基本的窗口功能。在窗口方面,Windows窗体中确实没有多少新功能。当然,有一些新控件,它使现有控件更易于使用,但外观和感觉与Visual Basic Forms相同,并且基于Win32 Windows消息,句柄和设备上下文。如果您熟悉Visual Basic,则可以使用Windows窗体。但是,我是以C ++ Win32程序员的身份来到.NET的,所以Windows Forms对我来说是陌生的,尤其是因为如何做很多事对于作为C ++程序员来说是我的第二本领并不明显。在本文中,我将介绍为开发屏幕保护程序的大部分工作而开发的屏幕保护程序库,您所要做的就是提供图形代码。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号