// Window Messages
// 详细帮助： http://social.msdn.microsoft.com/Search/zh-CN?query=WM_LBUTTONDOWN&ac=4
//            http://baike.baidu.com/view/1514116.htm 

//任务栏更新消息：WM_TaskbarRestart  //系统启动是生成，  %&WM_TaskbarRestart% 获取
// Exploer.exe 启动(或重运行)时,应用收到此消息。
SET  ::WM_REFLECT_BASE=0xBC00
SET  ::WM_NULL=0x0000
SET  ::WM_CREATE=0x0001
SET  ::WM_DESTROY=0x0002
SET  ::WM_MOVE=0x0003
SET  ::WM_SIZE=0x0005

SET  ::WM_ACTIVATE=0x0006

SET  ::WM_SETFOCUS=0x0007
SET  ::WM_KILLFOCUS=0x0008
SET  ::WM_ENABLE=0x000A
SET  ::WM_SETREDRAW=0x000B
SET  ::WM_SETTEXT=0x000C
SET  ::WM_GETTEXT=0x000D
SET  ::WM_GETTEXTLENGTH=0x000E
SET  ::WM_PAINT=0x000F
SET  ::WM_CLOSE=0x0010
SET  ::WM_QUERYENDSESSION=0x0011
SET  ::WM_QUERYOPEN=0x0013
SET  ::WM_ENDSESSION=0x0016
SET  ::WM_QUIT=0x0012
SET  ::WM_ERASEBKGND=0x0014
SET  ::WM_SYSCOLORCHANGE=0x0015
SET  ::WM_SHOWWINDOW=0x0018
SET  ::WM_WININICHANGE=0x001A
SET  ::WM_SETTINGCHANGE=0x001A  //=WM_WININICHANGE


SET  ::WM_DEVMODECHANGE=0x001B
SET  ::WM_ACTIVATEAPP=0x001C
SET  ::WM_FONTCHANGE=0x001D
SET  ::WM_TIMECHANGE=0x001E
SET  ::WM_CANCELMODE=0x001F
SET  ::WM_SETCURSOR=0x0020
SET  ::WM_MOUSEACTIVATE=0x0021
SET  ::WM_CHILDACTIVATE=0x0022
SET  ::WM_QUEUESYNC=0x0023

SET  ::WM_GETMINMAXINFO=0x0024

SET  ::WM_PAINTICON=0x0026
SET  ::WM_ICONERASEBKGND=0x0027
SET  ::WM_NEXTDLGCTL=0x0028
SET  ::WM_SPOOLERSTATUS=0x002A
SET  ::WM_DRAWITEM=0x002B
SET  ::WM_MEASUREITEM=0x002C
SET  ::WM_DELETEITEM=0x002D
SET  ::WM_VKEYTOITEM=0x002E
SET  ::WM_CHARTOITEM=0x002F
SET  ::WM_SETFONT=0x0030
SET  ::WM_GETFONT=0x0031
SET  ::WM_SETHOTKEY=0x0032
SET  ::WM_GETHOTKEY=0x0033
SET  ::WM_QUERYDRAGICON=0x0037
SET  ::WM_COMPAREITEM=0x0039
SET  ::WM_GETOBJECT=0x003D
SET  ::WM_COMPACTING=0x0041
SET  ::WM_COMMNOTIFY=0x0044  // no longer suported 
SET  ::WM_WINDOWPOSCHANGING=0x0046
SET  ::WM_WINDOWPOSCHANGED=0x0047

SET  ::WM_POWER=0x0048
SET  ::PWR_OK=1
SET  ::PWR_FAIL=-1
SET  ::PWR_SUSPENDREQUEST=1
SET  ::PWR_SUSPENDRESUME=2
SET  ::PWR_CRITICALRESUME=3

SET  ::WM_COPYDATA=0x004A
SET  ::WM_CANCELJOURNAL=0x004B



SET  ::WM_NOTIFY=0x004E
SET  ::WM_INPUTLANGCHANGEREQUEST=0x0050
SET  ::WM_INPUTLANGCHANGE=0x0051
SET  ::WM_TCARD=0x0052
SET  ::WM_HELP=0x0053
SET  ::WM_USERCHANGED=0x0054
SET  ::WM_NOTIFYFORMAT=0x0055

SET  ::NFR_ANSI=1
SET  ::NFR_UNICODE=2
SET  ::NF_QUERY=3
SET  ::NF_REQUERY=4

SET  ::WM_CONTEXTMENU=0x007B
SET  ::WM_STYLECHANGING=0x007C
SET  ::WM_STYLECHANGED=0x007D
SET  ::WM_DISPLAYCHANGE=0x007E
SET  ::WM_GETICON=0x007F
SET  ::WM_SETICON=0x0080

SET  ::WM_NCCREATE=0x0081
SET  ::WM_NCDESTROY=0x0082
SET  ::WM_NCCALCSIZE=0x0083
SET  ::WM_NCHITTEST=0x0084
SET  ::WM_NCPAINT=0x0085
SET  ::WM_NCACTIVATE=0x0086
SET  ::WM_GETDLGCODE=0x0087
SET  ::WM_SYNCPAINT=0x0088
SET  ::WM_NCMOUSEMOVE=0x00A0
SET  ::WM_NCLBUTTONDOWN=0x00A1
SET  ::WM_NCLBUTTONUP=0x00A2
SET  ::WM_NCLBUTTONDBLCLK=0x00A3
SET  ::WM_NCRBUTTONDOWN=0x00A4
SET  ::WM_NCRBUTTONUP=0x00A5
SET  ::WM_NCRBUTTONDBLCLK=0x00A6
SET  ::WM_NCMBUTTONDOWN=0x00A7
SET  ::WM_NCMBUTTONUP=0x00A8
SET  ::WM_NCMBUTTONDBLCLK=0x00A9



SET  ::WM_NCXBUTTONDOWN=0x00AB
SET  ::WM_NCXBUTTONUP=0x00AC
SET  ::WM_NCXBUTTONDBLCLK=0x00AD
 
SET  ::WM_INPUT=0x00FF

SET  ::WM_KEYFIRST=0x0100
SET  ::WM_KEYDOWN=0x0100
SET  ::WM_KEYUP=0x0101
SET  ::WM_CHAR=0x0102
SET  ::WM_DEADCHAR=0x0103
SET  ::WM_SYSKEYDOWN=0x0104
SET  ::WM_SYSKEYUP=0x0105
SET  ::WM_SYSCHAR=0x0106
SET  ::WM_SYSDEADCHAR=0x0107
SET  ::WM_UNICHAR=0x0109
SET  ::WM_KEYLAST=0x0109
SET  ::WM_KEYLAST=0x0108

SET  ::WM_IME_STARTCOMPOSITION=0x010D
SET  ::WM_IME_ENDCOMPOSITION=0x010E
SET  ::WM_IME_COMPOSITION=0x010F
SET  ::WM_IME_KEYLAST=0x010F

SET  ::WM_INITDIALOG=0x0110
SET  ::WM_COMMAND=0x0111
SET  ::WM_SYSCOMMAND=0x0112
SET  ::WM_TIMER=0x0113
SET  ::WM_HSCROLL=0x0114
SET  ::WM_VSCROLL=0x0115
CALC -base=16 &::WM_HSCROLL_REFLECT=0x0114 + %&WM_REFLECT_BASE%
CALC -base=16 &::WM_VSCROLL_REFLECT=0x0115 + %&WM_REFLECT_BASE%
SET  ::WM_INITMENU=0x0116
SET  ::WM_INITMENUPOPUP=0x0117
SET  ::WM_MENUSELECT=0x011F
SET  ::WM_MENUCHAR=0x0120
SET  ::WM_ENTERIDLE=0x0121

SET  ::WM_MENURBUTTONUP=0x0122
SET  ::WM_MENUDRAG=0x0123
SET  ::WM_MENUGETOBJECT=0x0124
SET  ::WM_UNINITMENUPOPUP=0x0125
SET  ::WM_MENUCOMMAND=0x0126

SET  ::WM_CHANGEUISTATE=0x0127
SET  ::WM_UPDATEUISTATE=0x0128
SET  ::WM_QUERYUISTATE=0x0129

SET  ::WM_CTLCOLORMSGBOX=0x0132
SET  ::WM_CTLCOLOREDIT=0x0133
SET  ::WM_CTLCOLORLISTBOX=0x0134
SET  ::WM_CTLCOLORBTN=0x0135
SET  ::WM_CTLCOLORDLG=0x0136
SET  ::WM_CTLCOLORSCROLLBAR=0x0137
SET  ::WM_CTLCOLORSTATIC=0x0138
SET  ::MN_GETHMENU=0x01E1

SET  ::WM_MOUSEFIRST=0x0200
SET  ::WM_MOUSEMOVE=0x0200
SET  ::WM_LBUTTONDOWN=0x0201
SET  ::WM_LBUTTONUP=0x0202
SET  ::WM_LBUTTONDBLCLK=0x0203
SET  ::WM_RBUTTONDOWN=0x0204
SET  ::WM_RBUTTONUP=0x0205
SET  ::WM_RBUTTONDBLCLK=0x0206
SET  ::WM_MBUTTONDOWN=0x0207
SET  ::WM_MBUTTONUP=0x0208
SET  ::WM_MBUTTONDBLCLK=0x0209
SET  ::WM_MOUSEWHEEL=0x020A
SET  ::WM_XBUTTONDOWN=0x020B
SET  ::WM_XBUTTONUP=0x020C
SET  ::WM_XBUTTONDBLCLK=0x020D
SET  ::WM_MOUSELAST=0x020D
SET  ::WM_MOUSELAST=0x020A
SET  ::WM_MOUSELAST=0x0209


SET  ::WM_PARENTNOTIFY=0x0210
SET  ::WM_ENTERMENULOOP=0x0211
SET  ::WM_EXITMENULOOP=0x0212

SET  ::WM_NEXTMENU=0x0213
SET  ::WM_SIZING=0x0214
SET  ::WM_CAPTURECHANGED=0x0215
SET  ::WM_MOVING=0x0216


SET  ::WM_POWERBROADCAST=0x0218

SET  ::WM_DEVICECHANGE=0x0219

SET  ::WM_MDICREATE=0x0220
SET  ::WM_MDIDESTROY=0x0221
SET  ::WM_MDIACTIVATE=0x0222
SET  ::WM_MDIRESTORE=0x0223
SET  ::WM_MDINEXT=0x0224
SET  ::WM_MDIMAXIMIZE=0x0225
SET  ::WM_MDITILE=0x0226
SET  ::WM_MDICASCADE=0x0227
SET  ::WM_MDIICONARRANGE=0x0228
SET  ::WM_MDIGETACTIVE=0x0229


SET  ::WM_MDISETMENU=0x0230
SET  ::WM_ENTERSIZEMOVE=0x0231
SET  ::WM_EXITSIZEMOVE=0x0232
SET  ::WM_DROPFILES=0x0233
SET  ::WM_MDIREFRESHMENU=0x0234


SET  ::WM_IME_SETCONTEXT=0x0281
SET  ::WM_IME_NOTIFY=0x0282
SET  ::WM_IME_CONTROL=0x0283
SET  ::WM_IME_COMPOSITIONFULL=0x0284
SET  ::WM_IME_SELECT=0x0285
SET  ::WM_IME_CHAR=0x0286
SET  ::WM_IME_REQUEST=0x0288
SET  ::WM_IME_KEYDOWN=0x0290
SET  ::WM_IME_KEYUP=0x0291

SET  ::WM_MOUSEHOVER=0x02A1
SET  ::WM_MOUSELEAVE=0x02A3
SET  ::WM_NCMOUSEHOVER=0x02A0
SET  ::WM_NCMOUSELEAVE=0x02A2

SET  ::WM_WTSSESSION_CHANGE=0x02B1

SET  ::WM_TABLET_FIRST=0x02c0
SET  ::WM_TABLET_LAST=0x02df

SET  ::WM_CUT=0x0300
SET  ::WM_COPY=0x0301
SET  ::WM_PASTE=0x0302
SET  ::WM_CLEAR=0x0303
SET  ::WM_UNDO=0x0304
SET  ::WM_RENDERFORMAT=0x0305
SET  ::WM_RENDERALLFORMATS=0x0306
SET  ::WM_DESTROYCLIPBOARD=0x0307
SET  ::WM_DRAWCLIPBOARD=0x0308
SET  ::WM_PAINTCLIPBOARD=0x0309
SET  ::WM_VSCROLLCLIPBOARD=0x030A
SET  ::WM_SIZECLIPBOARD=0x030B
SET  ::WM_ASKCBFORMATNAME=0x030C
SET  ::WM_CHANGECBCHAIN=0x030D
SET  ::WM_HSCROLLCLIPBOARD=0x030E
SET  ::WM_QUERYNEWPALETTE=0x030F
SET  ::WM_PALETTEISCHANGING=0x0310
SET  ::WM_PALETTECHANGED=0x0311
SET  ::WM_HOTKEY=0x0312

SET  ::WM_PRINT=0x0317
SET  ::WM_PRINTCLIENT=0x0318

SET  ::WM_APPCOMMAND=0x0319

SET  ::WM_THEMECHANGED=0x031A



SET  ::WM_HANDHELDFIRST=0x0358
SET  ::WM_HANDHELDLAST=0x035F

SET  ::WM_AFXFIRST=0x0360
SET  ::WM_AFXLAST=0x037F

SET  ::WM_PENWINFIRST=0x0380
SET  ::WM_PENWINLAST=0x038F


SET  ::WM_APP=0x8000


SET  ::WM_USER=0x0400

SET  ::WM_MOUSEENTER=0x1000
SET  ::WM_TOUCH=0x0240    //多点触摸 
SET  ::CBN_HOVER=0x7001  //LIST 鼠标移动WM_COMMAND

//SET  ::WM_PE_BASE=0x5000  // PECMD 已定义， %&::WM_PE_BASE% 获取 
