⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 csplitbarctrl.gb.txt

📁 自由在窗口中建立分隔栏 .zip
💻 TXT
字号:
				声明

本译文仅供VB爱好者参考,并非用于商业目的。因此本人亦不对使用本译文
引起的任何后果负责。

				VB资源酷http://vbcool.myrice.com

转载本译文时必须附带本声明并不准对译文及声明做任何形式的改动。

CSplitBarCtrl.GB.txt - CSplitBarCtrl.OCX 的中文文本文件
Copyright (c) 1998 Luis Reis, lreis@comnet.ca

The accompanying files may be distributed on the condition that they
are distributed in full and unchanged, and that no fee is charged for
such distribution with the exception of reasonable shipping and media
charges. In addition, the CSplitBarCtrl.OCX control may be
incorporated into your own programs and the resulting programs may be
distributed without payment of royalties, also the author is not 
responsible in any way for ANY damages that may arise out of the use,
inability to use, or any data that this control may generate.

==========================================================================

CSplitBarCtrl.OCX使你可以在两个控件之间创建可移动的分隔栏(象Windows Explorer),
只要在你想要用的控件左右hWnd分配CSplitBarCtrl控件就可以了。

方法:
'**注意**你想要用分隔栏的控件必须位于CSplitBarCtrl之上,
'以允许在子控件上drawing。

'必需项
CSplitCtrl.SetLeftChild '左控件的hWnd
CSplitCtrl.SetRightChild '右控件的hWnd
CSplitCtrl.ResizeControls '调整控件的大小(必须在设置两个hWnd之后)
CSplitCtrl.ResizeControls ' Resize the controls (MUST be called 
			     ' after setting both hWnd's)
'可选项
CSplitBarCtrl.SetMaxMove '设置分隔栏可被左右移动的最大值(点)
CSplitBarCtrl.SetSplitBarEnabled '允许或禁止栏的移动

示例:
为使用这个示例,把这些代码粘贴到一个含有CSplitBarCtrl控件的窗体的声明部分,
CSplitBarCtrl控件的名称为CSplitBarCtrl1,再把一个ListBox控件,名称为List1,
IntegralHeight属性设为False,及一个Textbox控件,名称为Text1放进CSplitBarCtrl1
控件,然后按F5。

Private Sub Form_Load ()
 CSplitCtrl1.SetLeftChild Text1.hWnd
 CSplitCtrl1.SetRightChild List1.hWnd
 CSplitCtrl1.ResizeControls
End Sub

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -