WM_常量部分说明

Public Const WM_NULL                    As Long = &H0 '(无)

Public Const WM_CREATE                  As Long = &H1 '应用程序创建一个窗口

Public Const WM_DESTROY                 As Long = &H2 '一个窗口被销毁

Public Const WM_MOVE                    As Long = &H3 '移动一个窗口

Public Const WM_SIZE                    As Long = &H5 '改变一个窗口的大小

Public Const WM_ACTIVATE                As Long = &H6 '一个窗口被激活或失去激活状态

Public Const WM_SETFOCUS                As Long = &H7 '获得焦点后

Public Const WM_KILLFOCUS               As Long = &H8 '失去焦点

Public Const WM_ENABLE                  As Long = &HA '改变enable状态

Public Const WM_SETREDRAW               As Long = &HB '设置窗口是否能重画

Public Const WM_SETTEXT                 As Long = &HC '应用程序发送此消息来设置一个窗口的文本

Public Const WM_GETTEXT                 As Long = &HD '应用程序发送此消息来复制对应窗口的文本到缓冲区

Public Const WM_GETTEXTLENGTH           As Long = &HE '得到与一个窗口有关的文本的长度(不包含空字符)

Public Const WM_PAINT                   As Long = &HF '要求一个窗口重画自己

Public Const WM_CLOSE                  As Long = &H10 '当一个窗口或应用程序要关闭时发送一个信号

Public Const WM_QUERYENDSESSION        As Long = &H11 '当用户选择结束对话框或程序自己调用ExitWindows函数

Public Const WM_QUIT                   As Long = &H12 '用来结束程序运行或当程序调用postquitmessage函数

Public Const WM_QUERYOPEN              As Long = &H13 '当用户窗口恢复以前的大小位置时,把此消息发送给某个图标

Public Const WM_ERASEBKGND             As Long = &H14 '当窗口背景必须被擦除时(例在窗口改变大小时)

Public Const WM_SYSCOLORCHANGE         As Long = &H15 '当系统颜色改变时,发送此消息给所有顶级窗口

Public Const WM_ENDSESSION             As Long = &H16 '当系统进程发出WM_QUERYENDSESSION消息后,此消息发送给应用程序,通知它对话是否结束

Public Const WM_SYSTEMERROR            As Long = &H17 '

Public Const WM_SHOWWINDOW             As Long = &H18 '当隐藏或显示窗口是发送此消息给这个窗口

Public Const WM_CTLCOLOR               As Long = &H19 '

Public Const WM_WININICHANGE           As Long = &H1A '

Public Const WM_DEVMODECHANGE          As Long = &H1B '

Public Const WM_ACTIVATEAPP            As Long = &H1C '发此消息给应用程序哪个窗口是激活的,哪个是非激活的

Public Const WM_FONTCHANGE             As Long = &H1D '当系统的字体资源库变化时发送此消息给所有顶级窗口

Public Const WM_TIMECHANGE             As Long = &H1E '当系统的时间变化时发送此消息给所有顶级窗口

Public Const WM_CANCELMODE             As Long = &H1F '发送此消息来取消某种正在进行的摸态(操作)

Public Const WM_SETCURSOR              As Long = &H20 '如果鼠标引起光标在某个窗口中移动且鼠标输入没有被捕获时,就发消息给某个窗口

Public Const WM_MOUSEACTIVATE          As Long = &H21 '当光标在某个非激活的窗口中而用户正按着鼠标的某个键发送此消息给当前窗口

Public Const WM_CHILDACTIVATE          As Long = &H22 '发送此消息给MDI子窗口当用户点击此窗口的标题栏,或当窗口被激活,移动,改变大小

Public Const WM_QUEUESYNC              As Long = &H23 '此消息由基于计算机的训练程序发送,通过WH_JOURNALPALYBACK的hook程序分离出用户输入消息

Public Const WM_GETMINMAXINFO          As Long = &H24 '此消息发送给窗口当它将要改变大小或位置

Public Const WM_PAINTICON              As Long = &H26 '发送给最小化窗口当它图标将要被重画

Public Const WM_ICONERASEBKGND         As Long = &H27 '此消息发送给某个最小化窗口,仅当它在画图标前它的背景必须被重画

Public Const WM_NEXTDLGCTL             As Long = &H28 '发送此消息给一个对话框程序去更改焦点位置

Public Const WM_SPOOLERSTATUS          As Long = &H2A '每当打印管理列队增加或减少一条作业时发出此消息

Public Const WM_DRAWITEM               As Long = &H2B '当button,combobox,listbox,menu的可视外观改变时发送此消息给这些空件的所有者

Public Const WM_MEASUREITEM            As Long = &H2C '当button, combo box, list box, list view control, or menu item 被创建时发送此消息给控件的所有者

Public Const WM_DELETEITEM             As Long = &H2D '当the list box 或 combo box 被销毁 或 当 某些项被删除通过LB_DELETESTRING, LB_RESETCONTENT, CB_DELETESTRING, or CB_RESETCONTENT 消息

Public Const WM_VKEYTOITEM             As Long = &H2E '此消息有一个LBS_WANTKEYBOARDINPUT风格的发出给它的所有者来响应WM_KEYDOWN消息

Public Const WM_CHARTOITEM             As Long = &H2F '此消息由一个LBS_WANTKEYBOARDINPUT风格的列表框发送给他的所有者来响应WM_CHAR消息

Public Const WM_SETFONT                As Long = &H30 '当绘制文本时程序发送此消息得到控件要用的颜色

Public Const WM_GETFONT                As Long = &H31 '应用程序发送此消息得到当前控件绘制文本的字体

Public Const WM_SETHOTKEY              As Long = &H32 '应用程序发送此消息让一个窗口与一个热键相关连

Public Const WM_GETHOTKEY              As Long = &H33 '应用程序发送此消息来判断热键与某个窗口是否有关联

Public Const WM_QUERYDRAGICON          As Long = &H37 '此消息发送给最小化窗口,当此窗口将要被拖放而它的类中没有定义图标,应用程序能返回一个图标或光标的句柄,当用户拖放图标时系统显示这个图标或光标

Public Const WM_COMPAREITEM            As Long = &H39 '发送此消息来判定combobox或listbox新增加的项的相对位置

Public Const WM_GETOBJECT              As Long = &H3D '

Public Const WM_COMPACTING             As Long = &H41 '显示内存已经很少了

Public Const WM_OTHERWINDOWCREATED     As Long = &H42 '

Public Const WM_OTHERWINDOWDESTROYED   As Long = &H43 '

Public Const WM_COMMNOTIFY             As Long = &H44 '

Public Const WM_WINDOWPOSCHANGING      As Long = &H46 '发送此消息给那个窗口的大小和位置将要被改变时,来调用setwindowpos函数或其它窗口管理函数

Public Const WM_WINDOWPOSCHANGED       As Long = &H47 '发送此消息给那个窗口的大小和位置已经被改变时,来调用setwindowpos函数或其它窗口管理函数

Public Const WM_POWER                  As Long = &H48 '(适用于16位的windows)当系统将要进入暂停状态时发送此消息

Public Const WM_COPYDATA               As Long = &H4A '当一个应用程序传递数据给另一个应用程序时发送此消息

Public Const WM_CANCELJOURNAL          As Long = &H4B '当某个用户取消程序日志激活状态,提交此消息给程序

Public Const WM_NOTIFY                 As Long = &H4E '当某个控件的某个事件已经发生或这个控件需要得到一些信息时,发送此消息给它的父窗口

Public Const WM_INPUTLANGCHANGEREQUEST As Long = &H50 '当用户选择某种输入语言,或输入语言的热键改变

Public Const WM_INPUTLANGCHANGE        As Long = &H51 '当平台现场已经被改变后发送此消息给受影响的最顶级窗口

Public Const WM_TCARD                  As Long = &H52 '当程序已经初始化windows帮助例程时发送此消息给应用程序

Public Const WM_HELP                   As Long = &H53 '此消息显示用户按下了F1,如果某个菜单是激活的,就发送此消息个此窗口关联的菜单,否则就发送给有焦点的窗口,如果当前都没有焦点,就把此消息发送给当前激活的窗口

Public Const WM_USERCHANGED            As Long = &H54 '当用户已经登入或退出后发送此消息给所有的窗口,当用户登入或退出时系统更新用户的具体设置信息,在用户更新设置时系统马上发送此消息

Public Const WM_NOTIFYFORMAT           As Long = &H55 '公用控件,自定义控件和他们的父窗口通过此消息来判断控件是使用ANSI还是UNICODE结构在WM_NOTIFY消息,使用此控件能使某个控件与它的父控件之间进行相互通信

Public Const WM_CONTEXTMENU            As Long = &H7B '当用户某个窗口中点击了一下右键就发送此消息给这个窗口

Public Const WM_STYLECHANGING          As Long = &H7C '当调用SETWINDOWLONG函数将要改变一个或多个 窗口的风格时发送此消息给那个窗口

Public Const WM_STYLECHANGED           As Long = &H7D '当调用SETWINDOWLONG函数一个或多个 窗口的风格后发送此消息给那个窗口

Public Const WM_DISPLAYCHANGE          As Long = &H7E '当显示器的分辨率改变后发送此消息给所有的窗口

Public Const WM_GETICON                As Long = &H7F '此消息发送给某个窗口来返回与某个窗口有关连的大图标或小图标的句柄

Public Const WM_SETICON                As Long = &H80 '程序发送此消息让一个新的大图标或小图标与某个窗口关联

Public Const WM_NCCREATE               As Long = &H81 '当某个窗口第一次被创建时,此消息在WM_CREATE消息发送前发送

Public Const WM_NCDESTROY              As Long = &H82 '此消息通知某个窗口,非客户区正在销毁

Public Const WM_NCCALCSIZE             As Long = &H83
 
Public Const WM_KEYFIRST              As Long = &H100 '

Public Const WM_KEYDOWN               As Long = &H100 '按下一个键

Public Const WM_KEYUP                 As Long = &H101 '释放一个键

Public Const WM_CHAR                  As Long = &H102 '按下某键,并已发出WM_KEYDOWN, WM_KEYUP消息

Public Const WM_DEADCHAR              As Long = &H103 '当用translatemessage函数翻译WM_KEYUP消息时发送此消息给拥有焦点的窗口

Public Const WM_SYSKEYDOWN            As Long = &H104 '当用户按住ALT键同时按下其它键时提交此消息给拥有焦点的窗口

Public Const WM_SYSKEYUP              As Long = &H105 '当用户释放一个键同时ALT 键还按着时提交此消息给拥有焦点的窗口

Public Const WM_SYSCHAR               As Long = &H106 '当WM_SYSKEYDOWN消息被TRANSLATEMESSAGE函数翻译后提交此消息给拥有焦点的窗口

Public Const WM_SYSDEADCHAR           As Long = &H107 '当WM_SYSKEYDOWN消息被TRANSLATEMESSAGE函数翻译后发送此消息给拥有焦点的窗口

Public Const WM_KEYLAST               As Long = &H108 '

Public Const WM_CONVERTREQUESTEX      As Long = &H108 '

Public Const WM_WNT_CONVERTREQUESTEX  As Long = &H109 '

Public Const WM_CONVERTREQUEST        As Long = &H10A '

Public Const WM_CONVERTRESULT         As Long = &H10B '

Public Const WM_INTERIM               As Long = &H10C '

Public Const WM_IME_STARTCOMPOSITION  As Long = &H10D '

Public Const WM_IME_ENDCOMPOSITION    As Long = &H10E '

Public Const WM_IME_COMPOSITION       As Long = &H10F '

Public Const WM_IME_KEYLAST           As Long = &H10F '

Public Const WM_INITDIALOG            As Long = &H110 '在一个对话框程序被显示前发送此消息给它,通常用此消息初始化控件和执行其它任务

Public Const WM_COMMAND               As Long = &H111 '当用户选择一条菜单命令项或当某个控件发送一条消息给它的父窗口,一个快捷键被翻译

Public Const WM_SYSCOMMAND            As Long = &H112 '当用户选择窗口菜单的一条命令或当用户选择最大化或最小化时那个窗口会收到此消息

Public Const WM_TIMER                 As Long = &H113 '发生了定时器事件

Public Const WM_HSCROLL               As Long = &H114 '当一个窗口标准水平滚动条产生一个滚动事件时发送此消息给那个窗口,也发送给拥有它的控件

Public Const WM_VSCROLL               As Long = &H115 '当一个窗口标准垂直滚动条产生一个滚动事件时发送此消息给那个窗口,也发送给拥有它的控件

Public Const WM_INITMENU              As Long = &H116 '当一个菜单将要被激活时发送此消息,它发生在用户菜单条中的某项或按下某个菜单键,它允许程序在显示前更改菜单

Public Const WM_INITMENUPOPUP         As Long = &H117 '当一个下拉菜单或子菜单将要被激活时发送此消息,它允许程序在它显示前更改菜单,而不要改变全部

Public Const WM_MENUSELECT            As Long = &H11F '当用户选择一条菜单项时发送此消息给菜单的所有者(一般是窗口)

Public Const WM_MENUCHAR              As Long = &H120 '当菜单已被激活用户按下了某个键(不同于加速键),发送此消息给菜单的所有者

Public Const WM_ENTERIDLE             As Long = &H121 '当一个模态对话框或菜单进入空载状态时发送此消息给它的所有者,一个模态对话框或菜单进入空载状态就是在处理完一条或几条先前的消息后没有消息它的列队中等待

Public Const WM_MENURBUTTONUP         As Long = &H122 '

Public Const WM_MENUDRAG              As Long = &H123 '

Public Const WM_MENUGETOBJECT         As Long = &H124 '

Public Const WM_UNINITMENUPOPUP       As Long = &H125 '

Public Const WM_MENUCOMMAND           As Long = &H126 '

Public Const WM_CHANGEUISTATE         As Long = &H127 '

Public Const WM_UPDATEUISTATE         As Long = &H128 '

Public Const WM_QUERYUISTATE          As Long = &H129 '

Public Const WM_CTLCOLORMSGBOX        As Long = &H132 '在windows绘制消息框前发送此消息给消息框的所有者窗口,通过响应这条消息,所有者窗口可以通过使用给定的相关显示设备的句柄来设置消息框的文本和背景颜色

Public Const WM_CTLCOLOREDIT          As Long = &H133 '当一个编辑型控件将要被绘制时发送此消息给它的父窗口;通过响应这条消息,所有者窗口可以通过使用给定的相关显示设备的句柄来设置编辑框的文本和背景颜色

Public Const WM_CTLCOLORLISTBOX       As Long = &H134 '当一个列表框控件将要被绘制前发送此消息给它的父窗口;通过响应这条消息,所有者窗口可以通过使用给定的相关显示设备的句柄来设置列表框的文本和背景颜色

Public Const WM_CTLCOLORBTN           As Long = &H135 '当一个按钮控件将要被绘制时发送此消息给它的父窗口;通过响应这条消息,所有者窗口可以通过使用给定的相关显示设备的句柄来设置按纽的文本和背景颜色

Public Const WM_CTLCOLORDLG           As Long = &H136 '当一个对话框控件将要被绘制前发送此消息给它的父窗口;通过响应这条消息,所有者窗口可以通过使用给定的相关显示设备的句柄来设置对话框的文本背景颜色

Public Const WM_CTLCOLORSCROLLBAR     As Long = &H137 '当一个滚动条控件将要被绘制时发送此消息给它的父窗口;通过响应这条消息,所有者窗口可以通过使用给定的相关显示设备的句柄来设置滚动条的背景颜色

Public Const WM_CTLCOLORSTATIC        As Long = &H138 '当一个静态控件将要被绘制时发送此消息给它的父窗口;通过响应这条消息,所有者窗口可以通过使用给定的相关显示设备的句柄来设置静态控件的文本和背景颜色

Public Const WM_MOUSEFIRST            As Long = &H200 '

Public Const WM_MOUSEMOVE             As Long = &H200 '移动鼠标

Public Const WM_LBUTTONDOWN           As Long = &H201 '按下鼠标左键

Public Const WM_LBUTTONUP             As Long = &H202 '释放鼠标左键

Public Const WM_LBUTTONDBLCLK         As Long = &H203 '双击鼠标左键

Public Const WM_RBUTTONDOWN           As Long = &H204 '按下鼠标右键

Public Const WM_RBUTTONUP             As Long = &H205 '释放鼠标右键

Public Const WM_RBUTTONDBLCLK         As Long = &H206 '双击鼠标右键

Public Const WM_MBUTTONDOWN           As Long = &H207 '按下鼠标中键

Public Const WM_MBUTTONUP             As Long = &H208 '释放鼠标中键

Public Const WM_MBUTTONDBLCLK         As Long = &H209 '双击鼠标中键

Public Const WM_MOUSELAST             As Long = &H209 '

Public Const WM_MOUSEWHEEL            As Long = &H20A '当鼠标轮子转动时发送此消息个当前有焦点的控件

Public Const WM_XBUTTONDOWN           As Long = &H20B '

Public Const WM_XBUTTONUP             As Long = &H20C '

Public Const WM_XBUTTONDBLCLK         As Long = &H20D '

Public Const WM_PARENTNOTIFY          As Long = &H210 '当MDI子窗口被创建或被销毁,或用户按了一下鼠标键而光标在子窗口上时发送此消息给它的父窗口

Public Const WM_ENTERMENULOOP         As Long = &H211 '发送此消息通知应用程序的主窗口that已经进入了菜单循环模式

Public Const WM_EXITMENULOOP          As Long = &H212 '发送此消息通知应用程序的主窗口that已退出了菜单循环模式

Public Const WM_NEXTMENU              As Long = &H213 '

Public Const WM_SIZING                As Long = &H214 '当用户正在调整窗口大小时发送此消息给窗口;通过此消息应用程序可以监视窗口大小和位置也可以修改他们

Public Const WM_CAPTURECHANGED        As Long = &H215 '发送此消息 给窗口当它失去捕获的鼠标时

Public Const WM_MOVING                As Long = &H216 '当用户在移动窗口时发送此消息,通过此消息应用程序可以监视窗口大小和位置也可以修改他们

Public Const WM_POWERBROADCAST        As Long = &H218 '此消息发送给应用程序来通知它有关电源管理事件

Public Const WM_DEVICECHANGE          As Long = &H219 '当设备的硬件配置改变时发送此消息给应用程序或设备驱动程序

Public Const WM_MDICREATE             As Long = &H220 '应用程序发送此消息给多文档的客户窗口来创建一个MDI 子窗口

Public Const WM_MDIDESTROY            As Long = &H221 '应用程序发送此消息给多文档的客户窗口来关闭一个MDI 子窗口

Public Const WM_MDIACTIVATE           As Long = &H222 '应用程序发送此消息给多文档的客户窗口通知客户窗口激活另一个MDI子窗口,当客户窗口收到此消息后,它发出WM_MDIACTIVE消息给MDI子窗口(未激活)激活它

Public Const WM_MDIRESTORE            As Long = &H223 '程序 发送此消息给MDI客户窗口让子窗口从最大最小化恢复到原来大小

Public Const WM_MDINEXT               As Long = &H224 '程序 发送此消息给MDI客户窗口激活下一个或前一个窗口

Public Const WM_MDIMAXIMIZE           As Long = &H225 '程序发送此消息给MDI客户窗口来最大化一个MDI子窗口

Public Const WM_MDITILE               As Long = &H226 '程序 发送此消息给MDI客户窗口以平铺方式重新排列所有MDI子窗口

Public Const WM_MDICASCADE            As Long = &H227 '程序 发送此消息给MDI客户窗口以层叠方式重新排列所有MDI子窗口

Public Const WM_MDIICONARRANGE        As Long = &H228 '程序 发送此消

Public Const WM_IME_REPORT            As Long = &H280 '

Public Const WM_IME_SETCONTEXT        As Long = &H281 '

Public Const WM_IME_NOTIFY            As Long = &H282 '

Public Const WM_IME_CONTROL           As Long = &H283 '

Public Const WM_IME_COMPOSITIONFULL   As Long = &H284 '

Public Const WM_IME_SELECT            As Long = &H285 '

Public Const WM_IME_CHAR              As Long = &H286 '

Public Const WM_IME_REQUEST           As Long = &H288 '

Public Const WM_IME_KEYDOWN           As Long = &H290 '

Public Const WM_IME_KEYUP             As Long = &H291 '

Public Const WM_NCMOUSEHOVER          As Long = &H2A0 '

Public Const WM_MOUSEHOVER            As Long = &H2A1 '

Public Const WM_NCMOUSELEAVE          As Long = &H2A2 '

Public Const WM_MOUSELEAVE            As Long = &H2A3 '

Public Const WM_CUT                   As Long = &H300 '程序发送此消息给一个编辑框或combobox来删除当前选择的文本

Public Const WM_COPY                  As Long = &H301 '程序发送此消息给一个编辑框或combobox来复制当前选择的文本到剪贴板

Public Const WM_PASTE                 As Long = &H302 '程序发送此消息给editcontrol或combobox从剪贴板中得到数据

Public Const WM_CLEAR                 As Long = &H303 '程序发送此消息给editcontrol或combobox清除当前选择的内容

Public Const WM_UNDO                  As Long = &H304 '程序发送此消息给editcontrol或combobox撤消最后一次操作

Public Const WM_RENDERFORMAT          As Long = &H305 '

Public Const WM_RENDERALLFORMATS      As Long = &H306 '

Public Const WM_DESTROYCLIPBOARD      As Long = &H307 '当调用ENPTYCLIPBOARD函数时 发送此消息给剪贴板的所有者

Public Const WM_DRAWCLIPBOARD         As Long = &H308 '当剪贴板的内容变化时发送此消息给剪贴板观察链的第一个窗口;它允许用剪贴板观察窗口来显示剪贴板的新内容

Public Const WM_PAINTCLIPBOARD        As Long = &H309 '当剪贴板包含CF_OWNERDIPLAY格式的数据并且剪贴板观察窗口的客户区需要重画

Public Const WM_VSCROLLCLIPBOARD      As Long = &H30A '

Public Const WM_SIZECLIPBOARD         As Long = &H30B '当剪贴板包含CF_OWNERDIPLAY格式的数据并且剪贴板观察窗口的客户区域的大小已经改变是此消息通过剪贴板观察窗口发送给剪贴板的所有者

Public Const WM_ASKCBFORMATNAME       As Long = &H30C '通过剪贴板观察窗口发送此消息给剪贴板的所有者来请求一个CF_OWNERDISPLAY格式的剪贴板的名字

Public Const WM_CHANGECBCHAIN         As Long = &H30D '当一个窗口从剪贴板观察链中移去时发送此消息给剪贴板观察链的第一个窗口

Public Const WM_HSCROLLCLIPBOARD      As Long = &H30E '此消息通过一个剪贴板观察窗口发送给剪贴板的所有者 ;它发生在当剪贴板包含CFOWNERDISPALY格式的数据并且有个事件在剪贴板观察窗的水平滚动条上;所有者应滚动剪贴板图象并更新滚动条的值

Public Const WM_QUERYNEWPALETTE       As Long = &H30F '此消息发送给将要收到焦点的窗口,此消息能使窗口在收到焦点时同时有机会实现他的逻辑调色板

Public Const WM_PALETTEISCHANGING     As Long = &H310 '当一个应用程序正要实现它的逻辑调色板时发此消息通知所有的应用程序

Public Const WM_PALETTECHANGED        As Long = &H311 '此消息在一个拥有焦点的窗口实现它的逻辑调色板后发送此消息给所有顶级并重叠的窗口,以此来改变系统调色板

Public Const WM_HOTKEY                As Long = &H312 '当用户按下由REGISTERHOTKEY函数注册的热键时提交此消息

Public Const WM_PRINT                 As Long = &H317 '应用程序发送此消息仅当WINDOWS或其它应用程序发出一个请求要求绘制一个应用程序的一部分

Public Const WM_PRINTCLIENT           As Long = &H318 '

Public Const WM_APPCOMMAND            As Long = &H319 '

Public Const WM_HANDHELDFIRST         As Long = &H358 '

Public Const WM_HANDHELDLAST          As Long = &H35F '

Public Const WM_AFXFIRST              As Long = &H360 '

Public Const WM_FORWARDMSG            As Long = &H37F '

Public Const WM_AFXLAST               As Long = &H37F '

Public Const WM_PENWINFIRST           As Long = &H380 '

Public Const WM_PENWINLAST            As Long = &H38F '

Public Const WM_DDE_FIRST             As Long = &H3E0 '

Public Const WM_DDE_INITIATE = (WM_DDE_FIRST + 0)     '一个DDE客户程序提交此消息开始一个与服务器程序的会话来响应那个指定的程序和主题名

Public Const WM_DDE_TERMINATE = (WM_DDE_FIRST + 1)    '一个DDE应用程序(无论是客户还是服务器)提交此消息来终止一个会话

Public Const WM_DDE_ADVISE = (WM_DDE_FIRST + 2)       '一个DDE客户程序提交此消息给一个DDE服务程序来请求服务器每当数据项改变时更新它

Public Const WM_DDE_UNADVISE = (WM_DDE_FIRST + 3)     '一个DDE客户程序通过此消息通知一个DDE服务程序不更新指定的项或一个特殊的剪贴板格式的项

Public Const WM_DDE_ACK = (WM_DDE_FIRST + 4)          '此消息通知一个DDE(动态数据交换)程序已收到并正在处理WM_DDE_POKE, WM_DDE_EXECUTE, WM_DDE_DATA, WM_DDE_ADVISE, WM_DDE_UNADVISE, or WM_DDE_INITIAT消息

Public Const WM_DDE_DATA = (WM_DDE_FIRST + 5)         '一个DDE服务程序提交此消息给DDE客户程序来传递个一数据项给客户或通知客户的一条可用数据项

Public Const WM_DDE_REQUEST = (WM_DDE_FIRST + 6)      '一个DDE客户程序提交此消息给一个DDE服务程序来请求一个数据项的值

Public Const WM_DDE_POKE = (WM_DDE_FIRST + 7)         '一个DDE客户程序提交此消息给一个DDE服务程序,客户使用此消息来请求服务器接收一个未经同意的数据项;服务器通过答复WM_DDE_ACK消息提示是否它接收这个数据项

Public Const WM_DDE_EXECUTE = (WM_DDE_FIRST + 8)      '一个DDE客户程序提交此消息给一个DDE服务程序来发送一个字符串给服务器让它象串行命令一样被处理,服务器通过提交WM_DDE_ACK消息来作回应

Public Const WM_DDE_LAST = (WM_DDE_FIRST + 8)         '

Public Const WM_USER                  As Long = &H400 '此消息能帮助应用程序自定义私有消息

Public Const WM_APP                  As Long = &H8000 '

Public Const WM_RASDIALEVENT         As Long = &HCCCD '

Public Const WM_SETTINGCHANGE As Long = WM_WININICHANGE

你可能感兴趣的:(WM_常量部分说明)