文件名称:vbnowindows
-
所属分类:
- 标签属性:
- 上传时间:2014-05-08
-
文件大小:2.4kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
VB不允许退出Windows的程序源代码,设置了允许退出和不允许退出两种功能。记录Window Procedure的地址,开始截取消息,并将消息交给wndproc过程处理.取消消息截取,结束子分类过程.
本函数就是用来接收子分类时截取的消息的
Public Function wndproc(ByVal hwnd As Long, ByVal Msg As Long, _
ByVal wParam As Long, ByVal lParam As Long) As Long
截取下来的消息存放在msg参数中.
If (Msg = WM_QUERYENDSESSION) And (m_AllowExit = False) Then
检测到消息,这里就可以加入处理代码
需要注意,如果这儿不加入任何代码,则相当于吃掉了这条消息.
Else
如果不是需要处理的消息,则将之送回原来的程序.
wndproc = CallWindowProc(preWinProc, hwnd, Msg, wParam, lParam)
End If
End Function-VB is not allowed to exit the Windows source code, set up to allow exit and allowed to exit the two functions. Record Window Procedure of the address to begin the interception of messages and message handling process to wndproc Cancel message interception, ending the sub classification process. This function is receiving sub-categories intercepted message to the Public Function wndproc (ByVal hwnd As Long, ByVal Msg As Long, _ ByVal wParam As Long, ByVal lParam As Long) As Long ' interception down the message stored in the msg parameter. If (Msg = WM_QUERYENDSESSION) And (m_AllowExit = False) Then' message is detected, where you can adding processing code ' need attention, if not join any code here, then ate the equivalent of this message. Else' message if it is not to be processed, then sent back to the original program. wndproc = CallWindowProc (preWinProc, hwnd, Msg, wParam, lParam) End If End Function
本函数就是用来接收子分类时截取的消息的
Public Function wndproc(ByVal hwnd As Long, ByVal Msg As Long, _
ByVal wParam As Long, ByVal lParam As Long) As Long
截取下来的消息存放在msg参数中.
If (Msg = WM_QUERYENDSESSION) And (m_AllowExit = False) Then
检测到消息,这里就可以加入处理代码
需要注意,如果这儿不加入任何代码,则相当于吃掉了这条消息.
Else
如果不是需要处理的消息,则将之送回原来的程序.
wndproc = CallWindowProc(preWinProc, hwnd, Msg, wParam, lParam)
End If
End Function-VB is not allowed to exit the Windows source code, set up to allow exit and allowed to exit the two functions. Record Window Procedure of the address to begin the interception of messages and message handling process to wndproc Cancel message interception, ending the sub classification process. This function is receiving sub-categories intercepted message to the Public Function wndproc (ByVal hwnd As Long, ByVal Msg As Long, _ ByVal wParam As Long, ByVal lParam As Long) As Long ' interception down the message stored in the msg parameter. If (Msg = WM_QUERYENDSESSION) And (m_AllowExit = False) Then' message is detected, where you can adding processing code ' need attention, if not join any code here, then ate the equivalent of this message. Else' message if it is not to be processed, then sent back to the original program. wndproc = CallWindowProc (preWinProc, hwnd, Msg, wParam, lParam) End If End Function
(系统自动生成,下载前可以参看下载内容)
下载文件列表
VB不允许退出Windows/Form1.frm
VB不允许退出Windows/Module1.bas
VB不允许退出Windows/工程1.vbp
VB不允许退出Windows/工程1.vbw
VB不允许退出Windows
VB不允许退出Windows/Module1.bas
VB不允许退出Windows/工程1.vbp
VB不允许退出Windows/工程1.vbw
VB不允许退出Windows
1999-2046 搜珍网 All Rights Reserved.
本站作为网络服务提供者,仅为网络服务对象提供信息存储空间,仅对用户上载内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。
