-
树状导航界面
本实例通过窗口的分割技术将树型视图显示在左边,然后通过树型视图的GetTreeCtrl方法来获得CTreeCtrl对象,通过CTreeCtrl对象接受双击时间来实现导航功能。
实现过程:(1)新建名为TreeNavi的单文档应用程序。
(2)在工程中添加以CTreeView类为基类的新类TreeView;在工程中添加Icon资源。
(3)在TreeView.h文件中添加 #include "afxciew.h"
(4)修改TreeNavi.cpp文件中的InitInstance函数中的内容。
(5)在MainFrm.cpp文件中添加WM_CREATECLIENT消息的实现函数
(6)函数OnInitialUpdate实现树型视图的初始化
(7)添加NM_DBLCLK消息的实现函数OnDblclk
- 2022-02-04 03:55:39下载
- 积分:1
-
重绘复选框按钮,代码直接使用API,因为是测试,使用了MFC。...
重绘复选框按钮,代码直接使用API,因为是测试,使用了MFC。-repaint check box buttons, the use of API code directly, because it is testing the use of the MFC.
- 2022-02-01 12:14:23下载
- 积分:1
-
WINFORM保存参数至本机注册表
实现在窗体关闭时将窗体中的参数保存变量至注册表,首先创建一个新的子路径,在子路径中创建变量,
如注册表中无此变量将自动创建,若下次有此变量时将更新变量。窗体再次载入时从注册表子路径读取
此变量信息,通过赋值给控件。
方法如下:
private void Form1_Load(object sender, EventArgs e) //窗体载入时
{
SetStyle(ControlStyles.SupportsTransparentBackColor, true);
SetStyle(ControlStyles.AllPaintingInWmPaint, true);
SetStyle(ControlStyles.UserPaint, true);
SetStyle(ControlStyles.DoubleBuffer, true);
this.Refresh();
this.ShowInTaskbar = false;
this.PAN_1.Visible = false;
int Z_alpha,Z_red,Z_green,Z_blue; //声明4个Int类型颜色变量
//this.TransparencyKey = Color.Transparent;
RegistryKey myReg1, myReg2, myReg3;//声明注册表对象
myReg1 = Registry.CurrentUser;//获取当前用户注册表项
try
- 2022-03-19 08:35:30下载
- 积分:1
-
此程序用PML设置吸收边界条件实现2维TM波FDTD仿真
此程序用PML设置吸收边界条件实现2维TM波FDTD仿真-this program set up with PML absorbing boundary conditions for the attainment of two-dimensional wave TM FDTD simulation
- 2022-01-28 19:09:37下载
- 积分:1
-
测试你的真爱。也是JAVA方面的课程设计,能当一种消遣的系统工具...
测试你的真爱。也是JAVA方面的课程设计,能当一种消遣的系统工具-testing your love. Java is the curriculum design, can become a pastime of system tools
- 2022-03-12 11:31:17下载
- 积分:1
-
Here, this a source code to init VESA graphic mode! It can init graphic in 1028x...
Here, this a source code to init VESA graphic mode! It can init graphic in 1028x768 pixel resolution!-Here, this is a source code to init VESA graphic mode! It can init graphic in 1028x768 pixel resolution!
- 2022-07-24 06:19:45下载
- 积分:1
-
代码是一个使用dbgrid控件的vc源代码.非常具有参考意义.
代码是一个使用dbgrid控件的vc源代码.非常具有参考意义.-Code is to use a dbgrid control vc source code. Is a reference value.
- 2022-03-09 23:05:22下载
- 积分:1
-
good system, vc programming interface to achieve control of the use of tree
很好的系统,vc++ 界面编程,实现树型控件的使用-good system, vc programming interface to achieve control of the use of tree
- 2022-02-02 13:44:37下载
- 积分:1
-
用LPC93251操作nand flash K9F6408,能正确擦,写,读。改用其它芯片,方法类似,注意时序就行了。如换用大容量flash,请注意每块的页数,...
用LPC93251操作nand flash K9F6408,能正确擦,写,读。改用其它芯片,方法类似,注意时序就行了。如换用大容量flash,请注意每块的页数,6408每块是16页的。【-with LPC93251 operation nand flash K9F6408 can correct rub, writing and reading. Other chip switch, a similar manner, the attention on the timing of the trip. If used for large-capacity flash, to every piece of pages, 6,408 each block is the 16.
- 2022-12-01 08:05:03下载
- 积分:1
-
该控件,可以用来显示PNG格式的透明图像,使你的程序更美,更酷。...
该控件,可以用来显示PNG格式的透明图像,使你的程序更美,更酷。-the controls can be used to display PNG format images transparent, the procedure allows you more beautiful, cool.
- 2022-03-01 11:31:51下载
- 积分:1