|
|
Draw a curve with control points |
![项目详情](images/url_homepage.gif) ![下载](images/url_tgz.gif) ![排行](images/rate.gif) |
简 介:
One friend asks me how to draw a curve with a couple of mouse clicking. I know there is way called "cubic spline" to draw the curve based on the control points. I search through the internet, try to find out a piece of existing code. Unfortunately, though there are plenty of webpage talking about it, but few sites really give out the working code.
通过控制点画曲线
一个朋友问我该如何通过几个鼠标点击画一个曲线。 我知道一个叫做“cubic spline”的基于控制点的画曲线的方法。我在网上搜寻过,试图寻找存在的代码。不幸地是,尽管有许多网页谈到它,但是很少的给出了代码。
来源: http://www.codeguru.com/gdi/Spline.html |
分 类:
|
许可证:
GNU General Public License (GPL) |
|
Manipulating Draw Mode Settings and Usin |
![项目详情](images/url_homepage.gif) ![下载](images/url_tgz.gif) ![排行](images/rate.gif) |
简 介:
Manipulating Draw Mode Settings and Using GDI+ to Save
处理绘制模式,以及使用 GDI+ 来保存
来源: http://www.codeguru.com/gdi/MiniProject.html |
分 类:
|
许可证:
GNU General Public License (GPL) |
|
Using a Simple MAPI in API that Runs as |
![项目详情](images/url_homepage.gif) ![下载](images/url_tgz.gif) ![排行](images/rate.gif) |
简 介:
As you should know, a Win NT service is an application that does not have a user interface and can run (if configured) automatically every time the workstation/server boots. This is an advantage for some applications that need to be executed without user intervention (the user is not required to log in and execute an application) .
用Windows NT Service服务的形式在API中使用简单的MAPI
正如你所知道的,一个Win NT 服务就是一个服务器,它没有用户界面,可以在工作站/服务器启动时自动运行(如果经过配置)。这对于那些不需要用户干预的应用程序来说是很有用的(用户不需要登录和执行应用程序)。
来源: http://www.codeguru.com/internet/UsingSimpleMAPI.html |
分 类:
|
许可证:
GNU General Public License (GPL) |
|
Drawing an ArrowLine |
![项目详情](images/url_homepage.gif) ![下载](images/url_tgz.gif) ![排行](images/rate.gif) |
简 介:
Recently I had to develop a Graphics Software and wanted to add support for drawing an Arrow Line / Measuring Line. This was essential for the software and I had no option but to go over my trigonometry fundas. After churning for a couple of hours , I came up with this technique for drawing arrowheads at the end of a line.
The Lines are drawn when you drag the mouse . The drawing mode used is R2_NOT .As long as the user is dragging the mouse , the Line is refreshing itself (by redrawing) . You need to include "math.h" in your View.cpp file .
绘制带箭头的线
最近我开发了一个图形软件并且想增加画带箭头的线 /测量线的支持。 这对软件是必要的,而且我除了详细察看我的 trigonometry fundas外,别无选择。 在几个小时的困惑之后,我发现了这个在线的末尾画箭头的技术。
当你拖动鼠标的时候,线就被画了。使用的绘画模式为R2_NOT。随着用户拖拉鼠标,线条不断刷新(通过重划)。在你的View.cpp文件中尼需要扩进"math.h"文件。
来源: http://www.codeguru.com/gdi/Arrow.html |
分 类:
|
许可证:
GNU General Public License (GPL) |
|
E-Mail File Attachment Using MIME (with |
![项目详情](images/url_homepage.gif) ![下载](images/url_tgz.gif) ![排行](images/rate.gif) |
简 介:
E-Mail File Attachment Using MIME (with HTML support)
使用MIME(HTML支持)机制来处理电子邮件的附件
来源: http://www.codeguru.com/internet/Temail.html |
分 类:
|
许可证:
GNU General Public License (GPL) |
|
Drawing Lines Using Line Equations |
![项目详情](images/url_homepage.gif) ![下载](images/url_tgz.gif) ![排行](images/rate.gif) |
简 介:
The application created here uses the dialog-based MFC AppWizard (EXE). The application has a TextBox in which you have to enter the line equation. The line equation must be in the 'AX+BY+C=0' format, where A, B, and C are integers. Entering =0 is not necessary. =0 is assumed by default.
这个应用程序使用基于对话框的MFC AppWizard (EXE)创建。应用程序有一个编辑框,你可以用它编辑线性等式。线性等式必须是'AX+BY+C=0' 的格式,其中A, B, 和 C是整数。Entering =0是不必要的,=0是缺省值。
来源: http://www.codeguru.com/gdi/LineEq.html |
分 类:
|
许可证:
GNU General Public License (GPL) |
|
Icon2002/2003 |
![项目详情](images/url_homepage.gif) ![下载](images/url_tgz.gif) ![排行](images/rate.gif) |
简 介:
This projects provides three main functions, each with its own window, as you can see in the image above.
Ico, Exe, Dll—you can consider this window as a icon browser/extractor.
Make Icon Group—enables you to create icons, with different versions of an icon (small/large, 16/256 colors, ...) in one file.
Simple Icon Cursor editor—here you can create new icons or edit existing ones.
Icon2002/2003
这个工程提供了三个主要功能,如同你能在上面的图像中一样,每个窗体都有。
Ico , Exe,DLL —你能把这一个窗囗视为一个图像浏览器/提取器。
Make Icon Group—使你能够在文件中通过不同图标的版本(小的/大,16/256色,...)创建图标。
Simple Icon Cursor editor—这里你可以创建新的或编辑已经存在的图标。
来源: http://www.codeguru.com/gdi/Icon2003.html |
分 类:
|
许可证:
GNU General Public License (GPL) |
|
Printing HTML Files Without Header/Foote |
![项目详情](images/url_homepage.gif) ![下载](images/url_tgz.gif) ![排行](images/rate.gif) |
简 介:
Printing HTML Files Without Header/Footer Lines Using Microsoft Internet Explorer
使用Microsoft Internet Explorer打印不带页眉和页脚的HTML 文件
来源: http://www.codeguru.com/ieprogram/print_html.html |
分 类:
|
许可证:
GNU General Public License (GPL) |
|
POP3 Client With Attachment |
![项目详情](images/url_homepage.gif) ![下载](images/url_tgz.gif) ![排行](images/rate.gif) |
简 介:
The POP3 realization was come from PJ Naughter code with some additional functions, the Base64 decoding was come from Eucalyptus. The COM server uses MFC because of CString. It is easy to avoid CString. It is easy to convert COM to class if you don't like COM. When received, the whole message is stored in memory. This may cause some problems with large messages. Unicode configuration is not supported.
支持附件的POP3客户端
这个来自 PJ Naughter 的POP3 实现提供了一些额外功能,Base64 解码来自Eucalyptus。COM服务器使用了MFC。可以容易地避免使用CString。如果你不喜欢COM,可以将它转换成类。当收到信息时,整个信息将被保存在内存中。当处理大型消息时,可能会造成一些问题。不支持Unicode 配置。
来源: http://www.codeguru.com/internet/pophandler.html |
分 类:
|
许可证:
GNU General Public License (GPL) |
|
Scaling, Rotating, and Shearing with QTr |
![项目详情](images/url_homepage.gif) ![下载](images/url_tgz.gif) ![排行](images/rate.gif) |
简 介:
We all know and love MFC's CRectTracker class, which implements rubber banding for rectangles. With CRectTracker, the user can interactively move and scale rectangular screen objects in a number of fashions. But, there is more than just horizontal and vertical, the only directions CRectTracker can work with.
So, here is QTransformTracker. Like CRectTracker, it lets you move and scale screen objects. But, it also lets you rotate an object to an arbitrary angle, or shear an object. On top of that, it has far more options and modes of operation. QTransformTracker might be the heart of a vector drawing editor, or similar application.
我们都知道和喜欢使用MFC的CRectTracker 类,它实现了矩形的像筋线。使用CRectTracker, 用户可以交互式的移动和缩放矩形屏幕对象。但只能是水平和垂直方向,这也是CRectTracker 唯一可以处理的方向。
这里提供了QTransformTracker。类似CRectTracker, 它可以上你移动和缩放屏幕对象。但它还能让用户按任意角度旋转对象,它提供了更多的选项和操作模式。QTransformTracker 可以是向量绘图编辑器或其它类似应用程序的核心。
来源: http://www.codeguru.com/gdi/qtransformtracker.html |
分 类:
|
许可证:
GNU General Public License (GPL) |
|
|
|
|