|
|
|
|
Full-Screen Dialog |
   |
简 介:
Recently I have taken part in a project. I developed a dialog based full-screen program. When the application is activated it sets the work area of the primary display monitor to the full screen, saves current screen settings and then switches to 800x600x(Maximal available number of colors) mode, hides Windows Taskbar and opens its dialog in full screen. Being deactivated it restores the previous display settings.
最近在我参加的一个项目中,我开发了一个全屏对话框。当应用程序运行时,它设置主显示监视区的工作区为整个屏幕,保存当前屏幕设置,再切换到 800x600x(最大可能的颜色数)模式,隐藏Windows任务条,在全屏模式下运行它的对话框。退出时它恢复以前的显示设置。
来源: https://www.codeguru.com/dialog/FullScreenDlgDemo.shtml |
分 类:
|
许可证:
GNU General Public License (GPL) |
|
Multi Language Resource Strings in a Sin |
   |
简 介:
Before displaying the messages you must define them. The snap shot of a simple ".mc" file is given below. You must use a Unicode compatible editor since Visual Studio does not support Unicode. On Windows NT (Service Pack 6) you can use Notepad since it supports Unicode.
在显示消息之前,你需要先定义它。这个项目给出一个简单的 ".mc"文件,你必须使用一个兼容Unicode 的编辑器,因为 Visual Studio 不支持Unicode。在 Windows NT (Service Pack 6)中,你可以使用 Notepad ,它支持Unicode.
来源: https://www.codeguru.com/string/Multilingual.html |
分 类:
|
许可证:
GNU General Public License (GPL) |
|
Stack Window |
   |
简 介:
The stack window gives alternative way to manage multiple dialog boxes inside single window (see picture). Unlike standard property sheet control layout of stack window is vertical. Pages are separated with captions. Page captions displays user-defined name and can be clicked to expand/contract the page. If size of stack window exceeds size of parent's client area user can pan window contents by clicking and dragging on the whitespace area or static/disabled control of child dialog box.
堆栈窗口可以让你用另一种方法来管理单个窗口中的多个对话框。不像标准的属性页控件,堆栈窗口的布局是垂直的。页面用标题分割。页面标题显示了用户定义的名字,可以通过点击来扩展或收缩页面。如果堆栈窗口的页面大小超过了父窗口的客户区域,用户可以通过点击和拖放空白区域或子对话框的静态/禁用控件来扩展窗口内容。
来源: https://www.codeguru.com/dialog/stackwnd.shtml |
分 类:
|
许可证:
GNU General Public License (GPL) |
|
AutoPtr<> Class |
   |
简 介:
The AutoPtr<> class is an extension of std::auto_ptr<> template class from the Standard Template Library. The main purpose of it is to destroy automatically some dynamically allocated resource (e.g. a memory, but it may be some other custom resource) after an AutoPtr<> object is destroyed.
AutoPtr<> 是标准模板库中的 std::auto_ptr<> 模板类的扩展。其主要目的是在 AutoPtr<> 对象销毁后自动释放一些动态分配的资源(如内存,但也可以是其它定制的资源)。
来源: https://www.codeguru.com/cpp_mfc/AutoPtr.html |
分 类:
|
许可证:
GNU General Public License (GPL) |
|
Scrolling Image |
   |
简 介:
Using this script you can scroll an image.
使用这个脚本你可以滚动一幅图像。
来源: https://java.ittoolbox.com/code/d.asp?d=1923&a=s |
分 类:
|
许可证:
GNU General Public License (GPL) |
|
A Simple C# Class to Play .WAV Files in |
   |
简 介:
Play .wav files using C#. The example uses the simple Win32 command PlaySound
使用C#来播放.wav文件。这个例子使用了简单的 Win32 命令 PlaySound
来源: https://www.codeguru.com/cs_graphics/WavPlay.html |
分 类:
|
许可证:
GNU General Public License (GPL) |
|
DOS Text Screen in Dialog |
   |
简 介:
The CMonitor control is a lightweight class suitable for displaying dos text screen in Dialog
Include Cmonitor1.h in your dialog class' header file.
Add member variables of type CMonitor control you want to subclass.
Subclass the static controls in your dialog's OnInitDialog() method and use.
CMonitor 控件是一个轻型的类,用于在对话框中显示DOS文本屏幕。
在你的对话框的头文件中包含 Cmonitor1.h ,增加 CMonitor 控件类型的成员变量到子类中上。
在对话框的 OnInitDialog() 方法中子类化静态控件,就可以使用它了。
来源: https://www.codeguru.com/dialog/CMonitor.html |
分 类:
|
许可证:
GNU General Public License (GPL) |
|
Smart Pointer Class |
   |
简 介:
This smart pointer package provides 2 main classes for use
1. CountedPtr - Is a reference counted smart pointer that can be used with any type - Allows direct assignment to base class smart pointer by a derived class - Supports static and dynamic casts where they are supported by the underlying types - Uses the copy constructor to clone the pointed to object - Calls the right delete when done with object
2. BackPtr - Is a class for backward references, when the pointer is not owned - Can be assigned a CountedPtr - Can check if the underlying object is still valid - Can get a CountedPtr from a BackPtr if the underlying object is valid, otherwise an exception will be thrown. This prevents the problem of dangling pointers
这个智能指针类提供了两个主要的类:
1. CountedPtr -是一个引用计数的智能指针,可以用于任何类型;可以将直接分配到基类的指针用于派生类;支持静态和动态类型转换;可以使用拷贝构造函数来复制指向的对象;当处理完对象后会调用正确的delete 方法。
2. BackPtr - 当没有指针时,是一个向后引用的类;可以分配一个 CountedPtr;可以检查潜在的对象是否有效;如果潜在的对象有效,可以从BackPtr 中得到一个CountedPtr ,否则将返回一个异常。这样可以防止指针错误。
来源: https://www.codeguru.com/cpp_mfc/SmartPointerLove.shtml |
分 类:
|
许可证:
GNU General Public License (GPL) |
|
zoOom |
   |
简 介:
Using zoOom, you can zoom in and zoom out any image that is specified in the code. zoOom is very easy to customise. You can change the image, it\'s position. You can also set the maximum and minimum allowable widths. You can change the zoom speed. For customising, make changes in the \'configure\' section of the script.
使用zoOom ,你可以缩放一个用代码说明的图片。 zoOom 非常容易定制。你可以改变图片,以及它的位置。也可以设置最犬和最小可见的宽度。可以缩放的速度。要进行定制,在脚本的 \'configure\' 部分作相应的修改。
来源: https://java.ittoolbox.com/code/d.asp?d=1926&a=s |
分 类:
|
许可证:
GNU General Public License (GPL) |
|
Capturing the Screen Image Using C# |
   |
简 介:
Capturing the Screen Image Using C#
使用C#来捕获屏幕图像
来源: https://www.codeguru.com/cs_graphics/CaptureScreen.html |
分 类:
|
许可证:
GNU General Public License (GPL) |
|
|
|
|
|