您的位置:逆风者 VB 正文
原作者:www.upwinder.com 添加时间:2007-09-02 原文发表:2007-08-31 人气:26 来源:未知

'make a new project; two forms
'on form1 a command button
'put the code in the right places
'press F5

Sub Form2_load()
'in the form2_load event
'be sure to make the form2 smaller then form1!
逆风者
lngOrigParenthWnd = SetWindowWord(Me.hwnd, -8, mdiMain.hwnd)

End Sub

Private Sub Form_Unload(Cancel As Integer)
'in the form2_unload event
Dim lngResult&

lngResult = SetWindowWord(Me.hwnd, -8, lngOrigParenthWnd)

End Sub

'in the form2_general section
Private Declare Function SetWindowWord Lib "user32" (ByVal hwnd&, ByVal nIndex&, ByVal wNewWord&) As Long
Private lngOrigParenthWnd&

Sub Command1_click
form2.Show

End Sub

相关文章

用VB编写记事本
用VB实现开机自动更换墙纸
利用VB6.0设计屏幕保护程序
怎样接收电子邮件(POP3协议简介)
在VB环境中操作三维模型的实现方法
用VB制作TopMost类型窗口
VB 从零开始编外挂(十一)
利用Winsock控件实现局域网通信
在VB中实现文件上传
用VB实现象Windows记事本的一些功能
在VB中使用UDP协议
封面的设计
把Outlook信箱中的附件另存为
VB 从零开始编外挂(四)
在VB中如何创建闪烁(标语)屏
利用VB产生屏幕变暗的效果
怎样用VB得知系统当前是否处于internet链结
用VB6.0编写手机短信发送
用MediaPlayer控件做一个MP3播放器
VB 从零开始编外挂(十)

相关评论


本文章所属分类:首页 VB

  热门关键字: