高手啊!把vb程序流程图图翻译成vb语言

北京千橡网景科技发展有限公司:
文网文[号··京公网安备号·甲测资字·文化部监督电子邮箱:wlwh@·
文明办网文明上网举报电话: 举报邮箱:admin1@&&&&&&&&&&&&&&&&VB6开发(11)
5 March,2009
  用API函数 SetWindowLong 指定处理消息的窗口过程为自定义的函数 WindowProc,捕获消息ID为 WM_USER+1 的自定义消息或系统消息。并且,为了保证窗口能正确的响应消息,需要保存原来默认的窗口过程并在自定义函数WindowProc中调用。如下例,在按钮事件中发送自定义消息,WindowProc 捕获了窗口大小变化的系统定义消息和用户自定义的消息并显示用户自定义的消息参数 wParam。Form 部分代码
Private Sub Command1_Click()Dim wParam As LongDim lParam As LongDim lResult As Long wParam = 12345 lResult = SendMessage(Me.hwnd, WM_USER + 1, wParam, lParam)End SubPrivate Sub Form_Load() Me.Tag = Hook(Me.hwnd)End SubPrivate Sub Form_Unload(Cancel As Integer) Unhook Me.hwnd, Me.TagEnd Sub
Mod 部分代码
Option ExplicitPrivate Declare Function CallWindowProc Lib "user32" Alias _"CallWindowProcA" (ByVal lpPrevWndFunc As Long, _ByVal hwnd As Long, ByVal Msg As Long, _ByVal wParam As Long, ByVal lParam As Long) As LongPublic Declare Function GetWindowLong Lib "user32" Alias "GetWindowLongA" _(ByVal hwnd As Long, ByVal nIndex As Long) As LongPrivate Declare Function SetWindowLong Lib "user32" Alias _"SetWindowLongA" (ByVal hwnd As Long, _ByVal nIndex As Long, ByVal dwNewLong As Long) As LongPublic Declare Function SendMessage Lib "user32" Alias _"SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, _ByVal wParam As Long, lParam As Any) As LongPrivate Const GWL_WNDPROC = -4Public Const GWL_USERDATA = (-21)Public Const WM_SIZE = &H5Public Const WM_USER = &H400Public Function Hook(ByVal hwnd As Long) As Long Dim pOld As Long'指定自定义的窗口过程 pOld = SetWindowLong(hwnd, GWL_WNDPROC, AddressOf WindowProc) '保存原来默认的窗口过程指针 SetWindowLong hwnd, GWL_USERDATA, pOld Hook = pOldEnd FunctionPublic Sub Unhook(ByVal hwnd As Long, ByVal lpWndProc As Long) Dim temp As Long '注释:Cease subclassing. temp = SetWindowLong(hwnd, GWL_WNDPROC, lpWndProc)End SubFunction WindowProc(ByVal hw As Long, ByVal uMsg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long If uMsg = WM_SIZE Then '处理WM_SIZE消息MsgBox "收到消息 WM_SIZE" End If If uMsg = WM_USER + 1 ThenMsgBox wParam End If Dim lpPrevWndProc As Long'查询原来默认的窗口过程指针 lpPrevWndProc = GetWindowLong(hw, GWL_USERDATA)'调用原来的窗口过程 WindowProc = CallWindowProc(lpPrevWndProc, hw, uMsg,wParam, lParam)End Function
在VB中用自定义过程捕获并处理消息的详细信息和例子请参考:Q170570 HOWTO: Build a Windows Message Handler with AddressOf in VisualQ168795 HOWTO: Hook Into a Windows Messages Using AddressOf
参考知识库
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
访问:593540次
积分:8342
积分:8342
排名:第1865名
原创:196篇
转载:325篇
评论:65条
(17)(6)(1)(2)(8)(6)(2)(2)(7)(1)(20)(1)(2)(1)(7)(1)(1)(1)(2)(40)(3)(1)(9)(9)(6)(29)(2)(5)(10)(2)(4)(11)(11)(8)(6)(13)(2)(2)(2)(1)(4)(1)(8)(17)(17)(38)(4)(2)(2)(4)(6)(6)(7)(25)(1)(9)(7)(22)(4)(7)(13)(4)(7)(2)(22)(3)(8)(7)(22)(16)(1)(1)(1)当前位置: &
系统流程图的英文
英文翻译system chartsystem flow chartsystem flowchart&&&&system&&&& flow-proce ...&&&&cooling water system flow diagram&&&&flow chart of fire fighting system&&&&system flow&&&&flow sheet flowsheet of grinding circuit&&&&flowchart system&&&&[工业] flow- flow diagram◇流程图程序 flo ...&&&& flowsheet&&&&process flow diagram for packing and&&&&typical flow chart of dry chemical&&&&process flow diagram for boiler house&&&&process flow diagram for extrusion&&&&process flow diagram for crushing&&&&typical flow chart of gas extinguishing&&&&process flow diagram for thermal and&&&&process flow d process flow diagram for oilfiredd&&&&process flow diagram for storage and&&&&system flow&&&&plate flow sheet&&&&multi-colour flow diagram&&&&o operations flowchart&&&&test flow chart&&&&product flow diagram&&&&program functionkcy
例句与用法Grid locating for system flowchart activation网格定位法在系统流程图活化中的应用Refrigerating systems and heat pumps - system flow diagrams and piping instrument diagrams layout and symbols制冷系统和热泵-系统流程图和管路仪表图-绘图与符号Refrigerating systems and heat pumps . system flow diagrams and piping and instrument diagrams . layout and symbols冷冻系统和热力泵.系统流程图和管道及仪表图.结构图和符号Refrigerating systems and heat pumps - system flow diagrams and piping and instrument diagrams - german version en 1861 : 1998制冷设备和热泵.系统流程图和管道流程及仪器流程图Information processing - documentation symbols and conventions for data , program and systems flowcharts , program network charts , and system resources charts信息处理.数据程序和系统流程图程序网络图和系统资源图的文件编制符号和约定Information processing - documentation symbols and conventions for data , program and system flowcharts , program network charts and system resources charts信息处理数据流程图程序流程图系统流程图程序网络图和系统资源图的文件编制符号及约定Resigning sub - dispatching system from its physical aspect , logical aspect , the abstraction of class , basic data and the requirement of its safty reliability , and illustrating the whole framework and flow chart of the system从系统物理层、逻辑层、类的抽象、基础数据库及系统安全可靠性需求几个方面对行调子系统进行设计,并给出系统总体框架及系统流程图。 This paper describes the concepts concerning the transformation of science and technology fruits , and introduces briefly the status of the transformation of science and technology fruits at home and abroad and in domestic nonferrous enterprises firstly , and then discusses the theories on the transformation of science and technology fruits , and analyzes the main factors to affect the transformation of science and technology fruits of enterprise , and puts forward general process and methods on the transformation of science and technology fruits in domestic nonferrous enterprises本文界定了科技成果转化的有关概念,概述了国内外以及我国有色企业科技成果转化的情况,对科技成果转化的有关理论进行了探讨,提出了有色企业科技成果转化的系统流程图和各阶段子系统结构图。其次,分析了影响企业科技成果转化的主要因素,并以长期从事科技成果转化实际工作为基础,总结提炼出了有色企业实施科技成果转化的一般程序与方法。 This thesis adopts vfp database manage system ( dbms ) , oo ( object oriented ) programming and sas statistic analysis software . starting with the impacting factors on cocoon - cooking technique of filature production , the system analyzes diversified data information , along with the relativity of various parameters used in technical designing . based on those , we scheme out the structure composing and system flow chart of cocoon - cooking problem - consulting , also develop maintainable and practical technological designing subsystem with friendly interface , simple operation and fine security本课题采用vfp数据库管理系统开发技术和面向对象的编程技术及sasrelease6 . 12统计分析软件,采用关系数据模型,从缫丝生产中煮茧工艺过程的相关影响因素入手,充分分析影响煮茧的各种数据信息,以及在工艺设计中用到的各类参数的相关性,在此基础上设计出煮茧问题咨询子系统的结构组成和系统流程图,进而研制具有良好界面,操作简便,安全性好,实用且可维护的工艺设计子系统,以建立一个完善的煮茧工艺设计专家系统( cctdes ) 。 &&
相邻词汇热门词汇
系统流程图的英文翻译,系统流程图英文怎么说,怎么用英语翻译系统流程图,系统流程图的英文意思,发音,例句,用法和解释由查查在线词典提供,版权所有违者必究。
&&&&&&&&&&&&&&&&
Copyright &
(京ICP备号)
All rights reserved}

我要回帖

更多关于 vb高手 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信