登录
首页 » Windows开发 » 假设你想给用户修改大小和位置的能力…

假设你想给用户修改大小和位置的能力…

于 2022-10-29 发布 文件大小:10.32 kB
0 223
下载积分: 2 下载次数: 1

代码说明:

Suppose you wanted to give the user the ability to modify the size and position on a certain control? This example shows how to implement resizing controls on a dialog box as it is done when drawing controls on a dialog template or visual basic at design time. In order to accomplish this we can use the class CRectTracker to manage all the drawing and resizing of a rectangular frame which also has (optional) 6 resize handlers (as shown in the image above). The first thing, you ll need to do is to invoke a CRectTracker and specify given coordinates: -Suppose you wanted to give the user the ability to modify the size and position on a certain control This example shows how to implement resizing controls on a dialog box as it is done when drawing controls on a dialog template or visual basic at design time. In order to accomplish this we can use the class CRectTracker to manage all the drawing and resizing of a rectangular frame which also has (optional) 6 resize handlers (as shown in the

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 使用子
    使用子像素的方法来减轻图像系统的负荷已经是目前主流3D程序中的必用方法。比如知道Sin函数的特性,就只需要计算0~pi/2的点就可以了,剩下的pi/2~pi可以通过子像素来画出,在图形量大的情况下可以减轻至少一半的系统压力。 这个程序不光可以加速Sin函数的显示,还可以加速所有函数的显示。 -The use of sub-pixel image of the ways to reduce the load on the system is already the existing procedures of the mainstream 3D methods will be used. For example, to know the characteristics of Sin function, we only need to calculate 0 ~ pi/2 could be the point, and the rest of pi/2 ~ pi can be sub-pixels to draw, in the graphic case of a large quantity can be reduced at least half of the system pressure. This process not only speed up the Sin function can be shown that all functions can also speed up the display.
    2022-05-25 18:34:59下载
    积分:1
  • 粘贴数据比复制更加复杂,因为你需要选择粘贴的格式。
    粘贴数据比复制更加复杂,因为你需要选择粘贴的格式。 ---- 1. 在你的视中,实现OnEditPaste来处理用户从编辑菜单选择粘贴命令的操作。 ---- 2. 在OnEditPaste函数中,建立一个COleDataObject对象并且访问它的AttachClipboard成员函数来将这个对象绑定到剪贴板。 ---- 3. 访问COleDataObject::IsDataAvailable函数来检查是否可以使用特殊的格式。当然,你也可以通过循环使用COleDataObject::BeginEnumFormats来寻找其它格式直到你找到了最适合的格式。 ---- 4. 粘贴数据。 -paste data replication more complicated than that because you need to choose paste format.---- 1. Depending on your, and realize OnEditPaste to users from the edit menu select paste ordered the operation.---- 2. In OnEditPaste function, the establishment of a visit COleDataObject object and its function AttachClipboard members will be bundled with the object to the clipboard.---- 3. Visit COleDataObject : : IsDataAvailable function can be used to check whether a special format. Of course, you can also cycle through the use of COleDataObject : : BeginEnumFormats to find other formats until you find the most suitable format.---- 4. Pasting data.
    2023-04-03 21:55:03下载
    积分:1
  • CRC编码算法,用VC实现
    CRC编码算法,用VC实现-CRC coding algorithm, with VC
    2023-07-13 05:00:03下载
    积分:1
  • DELPHI如何支持多国语言
    DELPHI如何支持多国语言-DELPHI how to support multiple languages
    2022-03-14 11:43:39下载
    积分:1
  • 这个小程序可以帮你统计你输入的总的字符数和英文(中文)字符数!...
    这个小程序可以帮你统计你输入的总的字符数和英文(中文)字符数!-This little program can help you statistics you enter the total number of characters and English (Chinese) characters!
    2022-04-26 23:24:36下载
    积分:1
  • 该程序,实现了MemRepair类,可以对.exe文件的内存进行修改,也可以用于游戏修改内存。...
    该程序,实现了MemRepair类,可以对.exe文件的内存进行修改,也可以用于游戏修改内存。-the program, achieving MemRepair category, right. Exe files in memory changes can also be used to amend the memory game.
    2023-09-08 10:10:03下载
    积分:1
  • widestudio 编程程序员手册,内容详细,容易上手
    widestudio 编程程序员手册,内容详细,容易上手-Programming widestudio programmers manual, detailed and easy to use
    2023-01-17 23:10:03下载
    积分:1
  • 用VB实现在仿真器上的winCE,实现车载系统的页面设计和链接,尽量的减少占用的空间和内存。...
    用VB实现在仿真器上的winCE,实现车载系统的页面设计和链接,尽量的减少占用的空间和内存。-Achieve the emulator using VB on the winCE, to achieve vehicle system, page design and links, as much as possible to reduce the space and memory.
    2022-01-25 19:55:56下载
    积分:1
  • windows sever 2008 激活
    windows sever 2008 激活-windows sever 2008 ??活
    2023-03-15 02:15:04下载
    积分:1
  • 编程的串行端口和多端口器件wxWindows和CTB
    Programming Serial Ports and Multi Port Devices with wxWindows and CTB
    2022-03-24 05:24:10下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载