Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1079 lines
28 KiB

  1. ;------------------------
  2. ; General window messages
  3. ;
  4. ; MSDWP.C and others
  5. ;
  6. ; MP_CTRLID assumes hWnd
  7. ;
  8. MESSAGE_CLASS COMMON
  9. MESSAGE WM_CREATE, <SYSTEM>
  10. MP_WMBZ wParam ;unused
  11. MP_LONG lpCS ;ObjectVision breaks if we validate
  12. MESSAGE WM_DESTROY, <SYSTEM>
  13. MP_WMBZ wParam ;unused
  14. MP_LMBZ lParam ;unused
  15. MESSAGE WM_MOVE, <SYSTEM>
  16. MP_WMBZ wParam ;unused
  17. MP_int X ;new X location of upper left of client area
  18. MP_int Y ;new Y location of upper left of client area
  19. MESSAGE WM_SIZE, <SYSTEM>
  20. MP_VALUE wSizeType, SIZE_MAX ;** range 0-4
  21. MP_int CX ;new width of window
  22. MP_int CY ;new height of window
  23. MESSAGE WM_ACTIVATE, <SYSTEM>
  24. MP_BOOL bActivating ;** wParam == 0 => lParamLo is handle to
  25. MP_HWNDW0 hwndActDeact ;activated window otherwise lParamLo is handle
  26. ;to inactive window (can be NULL)
  27. ;Made this a warning because WinProject 1.0
  28. ;passes in a 1 here when using for its own
  29. ;use
  30. MP_BOOL bMaximized ;BOOL value
  31. MESSAGE WM_SETFOCUS, <SYSTEM>
  32. MP_HWND0 hWndFocus ;handle to window losing focus.
  33. MP_LMBZ lParam ;unused
  34. MESSAGE WM_KILLFOCUS, <SYSTEM>
  35. MP_HWND0 hWndFocus ;handle to window receiving focus.
  36. MP_LMBZ lParam ;unused
  37. MESSAGE WM_ENABLE, <SYSTEM>
  38. MP_BOOL bEnabled ;BOOL value
  39. MP_LMBZ lParam ;unused
  40. MESSAGE WM_SETREDRAW
  41. MP_BOOL bRedraw ;BOOL value
  42. MP_LMBZ lParam ;unused
  43. MESSAGE WM_SETTEXT
  44. MP_WMBZ wParam ;unused
  45. MP_CLPSTR0 lpString
  46. MESSAGE WM_GETTEXT
  47. MP_LPBUFFERX nCount, lpBuffer
  48. MESSAGE WM_GETTEXTLENGTH
  49. MP_WMBZ wParam ;unused
  50. MP_LMBZ lParam ;unused
  51. MESSAGE WM_PAINT, <SYSTEM>
  52. MP_HDC0 hdc ;unused
  53. MP_LMBZ lParam ;unused
  54. MESSAGE WM_CLOSE, <SYSTEM>
  55. MP_WMBZ wParam ;unused
  56. MP_LMBZ lParam ;unused
  57. MESSAGE WM_QUERYENDSESSION, <SYSTEM>
  58. MP_WMBZ wParam ;unused
  59. MP_LMBZ lParam ;unused
  60. MESSAGE WM_QUIT, <POSTED, SYSTEM>
  61. MP_WORD nExitCode
  62. MP_LMBZ lParam ;unused
  63. MESSAGE WM_QUERYOPEN, <SYSTEM>
  64. MP_WMBZ wParam ;unused
  65. MP_LMBZ lParam ;unused
  66. MESSAGE WM_ERASEBKGND, <SYSTEM>
  67. MP_HDC hDC
  68. MP_LMBZ lParam ;unused
  69. MESSAGE WM_SYSCOLORCHANGE, <POSTED, SYSTEM>
  70. MP_WMBZ wParam ;unused
  71. MP_LMBZ lParam ;unused
  72. MESSAGE WM_ENDSESSION, <SYSTEM>
  73. MP_BOOL bSessionEnding ;BOOL value
  74. MP_LMBZ lParam ;unused
  75. MESSAGE WM_SHOWWINDOW, <SYSTEM>
  76. MP_BOOL bStatus ;BOOL value
  77. MP_SHOWVALUE wShow ;** 0, SW_PARENTCLOSING or SW_PARENTOPENING
  78. MP_WMBZ lParamHi ;unused
  79. MESSAGE WM_CTLCOLOR
  80. MP_HDC hDC ; child window DC
  81. MP_HWND hWndChild ; LOWORD is handle to child window
  82. MP_VALUE wType, CTLCOLOR_MAX
  83. MESSAGE WM_WININICHANGE, <SYSTEM, POSTED>
  84. MP_WMBZ wParam ;unused
  85. MP_CLPSTR0 lpSectionName ;NULL used by some apps
  86. MESSAGE WM_DEVMODECHANGE, <SYSTEM, POSTED>
  87. MP_WMBZ wParam ;unused
  88. MP_CLPSTR0 lpDeviceName ;NULL used by some apps
  89. MESSAGE WM_ACTIVATEAPP, <SYSTEM>
  90. MP_BOOL bActivate ;BOOL value
  91. MP_HTASK0 hTask ;task handle of app. owning window
  92. MP_WMBZ lParamHi ;unused
  93. MESSAGE WM_FONTCHANGE, <SYSTEM, POSTED>
  94. MP_WMBZ wParam ;unused
  95. MP_LMBZ lParam ;unused
  96. MESSAGE WM_TIMECHANGE, <SYSTEM, POSTED>
  97. MP_WMBZ wParam ;unused
  98. MP_LMBZ lParam ;unused
  99. MESSAGE WM_CANCELMODE
  100. MP_WMBZ wParam ;unused
  101. MP_LMBZ lParam ;unused
  102. MESSAGE WM_SETCURSOR, <SYSTEM>
  103. MP_HWND hWndCur ;handle to window containing cursor
  104. MP_VALUE wHTCode, HT_MAX ;** hit test area codes. Range 0-17
  105. MP_RVALUE wMsg, WM_MOUSEFIRST, WM_MOUSELAST ;mouse message number
  106. MESSAGE WM_MOUSEACTIVATE, <SYSTEM>
  107. MP_HWND hWndParent ;topmost parent of activated window
  108. MP_VALUE wHTCode, HT_MAX ;** hit test area codes. Range 0-17
  109. MP_RVALUE wMsg, WM_MOUSEFIRST, WM_MOUSELAST ;mouse message number
  110. MESSAGE WM_CHILDACTIVATE, <SYSTEM>
  111. MP_WMBZ wParam ;unused
  112. MP_LMBZ lParam ;unused
  113. MESSAGE WM_GETMINMAXINFO, <SYSTEM>
  114. MP_WMBZ wParam ;unused
  115. MP_CLP5POINTBUFFER lpPoints ;points to an array of 5 points
  116. MESSAGE WM_PAINTICON, <SYSTEM>
  117. MP_WORD wParam ;unused, but 3.0 passed 1 for some reason
  118. MP_LMBZ lParam ;unused
  119. MESSAGE WM_ICONERASEBKGND, <SYSTEM>
  120. MP_HDC hDC ;DC of icon
  121. MP_LMBZ lParam ;unused
  122. MESSAGE WM_NEXTDLGCTL, <SYSTEM>
  123. MP_WMNEXTDLGCTL wCtlFlg, bFlag ;** if lParam is 0 wParam is a flag
  124. ;otherwise it is the control handle
  125. MESSAGE WM_SPOOLERSTATUS
  126. MP_CONST wStatus,SMP_JOBSTATUS ;** set to SMP_JOBSTATUS
  127. MP_WORD wJobs ;no. of jobs left in queue
  128. MP_WMBZ wParamHi ;unused
  129. MESSAGE WM_DRAWITEM
  130. MP_WORD idHwnd ;hwnd id of item to be drawn
  131. MP_CLPDRAWITEMSTRUCT lpDrawItem ;**
  132. MESSAGE WM_MEASUREITEM
  133. MP_WORD idHwnd ;hwnd id of item to be measured
  134. MP_LPMEASUREITEMSTRUCT lpMeasureItem ;**
  135. MESSAGE WM_DELETEITEM
  136. MP_WORD idHwnd ;hwnd id of item to be deleted
  137. MP_CLPDELETEITEMSTRUCT lpDeleteItem ;**
  138. MESSAGE WM_VKEYTOITEM
  139. MP_VKEY wVKey ;** virt. key code
  140. MP_HWND hWndList ;handle to listbox window
  141. MP_WORD wCaretPos ;caret position
  142. MESSAGE WM_CHARTOITEM
  143. MP_CHARVALUE wChar ;**
  144. MP_HWND hWndList ;handle to listbox window
  145. MP_WORD wCaretPos ;caret position
  146. MESSAGE WM_SETFONT
  147. MP_HFONT0 hFont ;handle to font or NULL
  148. MP_BOOL bRedraw ;BOOL value
  149. MP_WMBZ lParamHi ;unused
  150. MESSAGE WM_GETFONT
  151. MP_WMBZ wParam ;unused
  152. MP_LMBZ lParam ;unused
  153. MESSAGE WM_QUERYDRAGICON
  154. MP_WMBZ wParam ;unused
  155. MP_LMBZ lParam ;unused
  156. MESSAGE WM_COMPAREITEM
  157. MP_WORD idHwnd ;hwnd id of item to be compared
  158. MP_CLPCOMPAREITEMSTRUCT lpCompareItem ;**
  159. MESSAGE WM_COMPACTING
  160. MP_WORD wCPUTimeRatio ;time currently spent compacting
  161. MP_LMBZ lParam ;unused
  162. MESSAGE WM_COMMNOTIFY ;?? not implemented yet.
  163. MP_CID wCommID ;**
  164. MP_LONG lParam
  165. MESSAGE WM_NCCREATE, <SYSTEM>
  166. MP_WMBZ wParam
  167. MP_LPCREATESTRUCT lpCS
  168. MESSAGE WM_NCDESTROY, <SYSTEM>
  169. MP_WMBZ wParam ;unused
  170. MP_LMBZ lParam ;unused
  171. MESSAGE WM_NCCALCSIZE, <SYSTEM>
  172. MP_BOOL fCalcClientOnly
  173. MP_CLPRECT lpRect ;window rectangle coordinates
  174. MESSAGE WM_NCHITTEST, <SYSTEM>
  175. MP_WMBZ wParam ;unused
  176. MP_int X
  177. MP_int Y
  178. MESSAGE WM_NCPAINT, <SYSTEM>
  179. MP_HRGN01 hrgn
  180. MP_LMBZ lParam ;unused
  181. MESSAGE WM_NCACTIVATE, <SYSTEM>
  182. MP_BOOL bActive ;BOOL value
  183. MP_HWND0 hwndActDeact
  184. MP_BOOL fIconic
  185. MESSAGE WM_GETDLGCODE
  186. MP_WORD msg
  187. MP_CLPMSG0 lpMsg
  188. MESSAGE WM_NCMOUSEMOVE
  189. MP_VALUE wHTCode, HT_MAX ;hit test area codes. Range 0-17
  190. MP_POINT pt
  191. MESSAGE WM_NCLBUTTONDOWN
  192. MP_VALUE wHTCode, HT_MAX ;hit test area codes. Range 0-17
  193. MP_POINT pt
  194. MESSAGE WM_NCLBUTTONUP
  195. MP_VALUE wHTCode, HT_MAX ;hit test area codes. Range 0-17
  196. MP_POINT pt
  197. MESSAGE WM_NCLBUTTONDBLCLK
  198. MP_VALUE wHTCode, HT_MAX ;hit test area codes. Range 0-17
  199. MP_POINT pt
  200. MESSAGE WM_NCRBUTTONDOWN
  201. MP_VALUE wHTCode, HT_MAX ;hit test area codes. Range 0-17
  202. MP_POINT pt
  203. MESSAGE WM_NCRBUTTONUP
  204. MP_VALUE wHTCode, HT_MAX ;hit test area codes. Range 0-17
  205. MP_POINT pt
  206. MESSAGE WM_NCRBUTTONDBLCLK
  207. MP_VALUE wHTCode, HT_MAX ;hit test area codes. Range 0-17
  208. MP_POINT pt
  209. MESSAGE WM_NCMBUTTONDOWN
  210. MP_VALUE wHTCode, HT_MAX ;hit test area codes. Range 0-17
  211. MP_POINT pt
  212. MESSAGE WM_NCMBUTTONUP
  213. MP_VALUE wHTCode, HT_MAX ;hit test area codes. Range 0-17
  214. MP_POINT pt
  215. MESSAGE WM_NCMBUTTONDBLCLK
  216. MP_VALUE wHTCode, HT_MAX ;hit test area codes. Range 0-17
  217. MP_POINT pt
  218. MESSAGE WM_KEYDOWN
  219. MP_VKEY wVKey ; virt. key code
  220. MP_LONG lKeyData ; repeat count and flags
  221. MESSAGE WM_KEYUP
  222. MP_VKEY wVKey ; virt. key code
  223. MP_LONG lKeyData ; repeat count and flags
  224. MESSAGE WM_CHAR
  225. MP_CHARVALUE wChar
  226. MP_LONG lKeyData ; repeat count and flags
  227. MESSAGE WM_DEADCHAR
  228. MP_CHARVALUE wChar
  229. MP_LONG lKeyData ; repeat count and flags
  230. MESSAGE WM_SYSKEYDOWN
  231. MP_VKEY wVKey ; virt. key code
  232. MP_LONG lKeyData ; repeat count and flags
  233. MESSAGE WM_SYSKEYUP
  234. MP_VKEY wVKey ; virt. key code
  235. MP_LONG lKeyData ; repeat count and flags
  236. MESSAGE WM_SYSCHAR
  237. MP_CHARVALUE wChar
  238. MP_LONG lKeyData ; repeat count and flags
  239. MESSAGE WM_SYSDEADCHAR
  240. MP_CHARVALUE wChar
  241. MP_LONG lKeyData ; repeat count and flags
  242. MESSAGE WM_INITDIALOG
  243. MP_HWND0 hCtrl ; handle of first child
  244. MP_LONG lInitValue ; initialization value
  245. ; No validation of wParam & lParam because so many people do screwy
  246. ; things with the parameter. Also, since it's sent by the system
  247. ; almost all the time, validation will be of little help.
  248. ;
  249. MESSAGE WM_COMMAND ;lParamLo is 0 => wParam is menu item.
  250. MP_WORD wParam ;lParamHi is 1 => wParam is accelerator ID.
  251. MP_LONG lParam ;Otherwise lParamLo is control handle, lParamHi
  252. ;is notification code and wParam is control ID.
  253. MESSAGE WM_SYSCOMMAND
  254. MP_SYSCOMMAND wSysCommand ;** SC_ code
  255. MP_int X
  256. MP_int Y
  257. MESSAGE WM_TIMER
  258. MP_WORD idTimer ;** timer ID
  259. MP_LPFNTIMER0 lpTimerProc ;timer function or NULL
  260. MESSAGE WM_HSCROLL
  261. MP_VALUE wParam, SB_MAX ;** range 0-7
  262. MP_WORD pos ;position
  263. MP_HWND0 hwndCtl ;control handle if message is due
  264. ;to scrollbar control, otherwise
  265. ;unused
  266. MESSAGE WM_VSCROLL
  267. MP_VALUE wParam, SB_MAX ;** range 0-7
  268. MP_WORD pos ;position
  269. MP_HWNDW0 hwndCtl ;control handle if message is due
  270. ;to scrollbar control, otherwise
  271. ;unused. Make it a warning because
  272. ;Norton Utilities passes "random"
  273. ;numbers here.
  274. MESSAGE WM_INITMENU
  275. MP_HMENU hMenu ;handle of menu being init.
  276. MP_LMBZ lParam ;unused
  277. MESSAGE WM_INITMENUPOPUP
  278. MP_HMENU hMenu ;handle of popup being init.
  279. MP_WORD wIndex ;popup menu index
  280. MP_BOOL bSysMenu ;BOOL value
  281. MESSAGE WM_MENUSELECT
  282. MP_WMMENUSELECT wHandle, wFlags ; **lParamLo has a combination of: MF_BITMAP
  283. ; MF_CHECKED, MF_DISABLED, MF_GRAYED,
  284. ; MF_MOUSESELECT, MF_OWNERDRAW, MF_POPUP
  285. ; and MF_SYSMENU or can be -1
  286. ; If MF_POPUP, wParam has popup handle
  287. MESSAGE WM_MENUCHAR
  288. MP_CHARVALUE wChar
  289. MP_BIVALUE wMenuType, MF_POPUP, MF_SYSMENU ; ** either MF_POPUP or MF_SYSMENU
  290. MP_HMENU hMenu ; handle to menu
  291. MESSAGE WM_ENTERIDLE
  292. MP_BIVALUE wType, MSGF_DIALOGBOX, MSGF_MENU
  293. MP_HWND0 hwndIdle
  294. MP_WMBZ lParamHi ; unused
  295. MESSAGE WM_MOUSEMOVE
  296. MP_FLAGS wFlags, MK_VALID ;** one or more of the MK_ flags
  297. MP_int X
  298. MP_int Y
  299. MESSAGE WM_LBUTTONDOWN
  300. MP_FLAGS wFlags, MK_VALID ;one or more of the MK_ flags
  301. MP_int X
  302. MP_int Y
  303. MESSAGE WM_LBUTTONUP
  304. MP_FLAGS wFlags, MK_VALID ;one or more of the MK_ flags
  305. MP_int X
  306. MP_int Y
  307. MESSAGE WM_LBUTTONDBLCLK
  308. MP_FLAGS wFlags, MK_VALID ;one or more of the MK_ flags
  309. MP_int X
  310. MP_int Y
  311. MESSAGE WM_RBUTTONDOWN
  312. MP_FLAGS wFlags, MK_VALID ;one or more of the MK_ flags
  313. MP_int X
  314. MP_int Y
  315. MESSAGE WM_RBUTTONUP
  316. MP_FLAGS wFlags, MK_VALID ;one or more of the MK_ flags
  317. MP_int X
  318. MP_int Y
  319. MESSAGE WM_RBUTTONDBLCLK
  320. MP_FLAGS wFlags, MK_VALID ;one or more of the MK_ flags
  321. MP_int X
  322. MP_int Y
  323. MESSAGE WM_MBUTTONDOWN
  324. MP_FLAGS wFlags, MK_VALID ;one or more of the MK_ flags
  325. MP_int X
  326. MP_int Y
  327. MESSAGE WM_MBUTTONUP
  328. MP_FLAGS wFlags, MK_VALID ;one or more of the MK_ flags
  329. MP_int X
  330. MP_int Y
  331. MESSAGE WM_MBUTTONDBLCLK
  332. MP_FLAGS wFlags, MK_VALID ;one or more of the MK_ flags
  333. MP_int X
  334. MP_int Y
  335. MESSAGE WM_PARENTNOTIFY
  336. MP_WORD wValue ;** WM_CREATE, WM_DESTROY or WM_?BUTTONDOWN
  337. MP_WORD hwndChildOrX ; hwnd or X, depending on message
  338. MP_WORD idOrY ; id or Y
  339. MESSAGE WM_MDICREATE
  340. MP_WMBZ wParam ; unused
  341. MP_CLPMDICREATESTRUCT lpMCS ; **
  342. MESSAGE WM_MDIDESTROY
  343. MP_HWND hWndChild ; MDI child window
  344. MP_LMBZ lParam ; unused
  345. MESSAGE WM_MDIACTIVATE
  346. MP_HWND01 hwnd ; ** can be 0, 1 or window handle
  347. MP_HWND0 hWndChild1
  348. MP_HWND0 hWndChild2
  349. MESSAGE WM_MDIRESTORE
  350. MP_CTRLID wID
  351. MP_LMBZ lParam ; unused
  352. MESSAGE WM_MDINEXT
  353. MP_HWND0 hWndStart ; Goto next guy from this hwnd; NULL if active
  354. MP_BOOL fPrev ; if TRUE, goto PREVIOUS instead of NEXT
  355. MP_WMBZ lParamHi ; unused
  356. MESSAGE WM_MDIMAXIMIZE
  357. MP_CTRLID wID
  358. MP_LMBZ lParam ; unused
  359. MESSAGE WM_MDITILE
  360. MP_FLAGS wFlags, MDITILE_VALID ; **MDITILE_HORIZONTAL|MDITILESKIPDISABLED
  361. MP_LMBZ lParam ; unused
  362. MESSAGE WM_MDICASCADE
  363. MP_FLAGS wFlags, MDITILE_VALID ; MDITILESKIPDISABLED
  364. MP_LMBZ lParam ; unused
  365. MESSAGE WM_MDIICONARRANGE
  366. MP_WMBZ wParam ; unused
  367. MP_LMBZ lParam ; unused
  368. MESSAGE WM_MDIGETACTIVE
  369. MP_WMBZ wParam ; unused
  370. MP_LMBZ lParam ; unused
  371. MESSAGE WM_MDISETMENU
  372. MP_BOOL bRefresh
  373. MP_HMENU0 hMenuFrame
  374. MP_HMENU0 hMenuPopup
  375. MESSAGE WM_DROPFILES ; ?? not implemented yet.
  376. MP_WORD wParam
  377. MP_LMBZ lParam ; unused
  378. MESSAGE WM_CUT
  379. MP_WMBZ wParam ; unused
  380. MP_LMBZ lParam ; unused
  381. MESSAGE WM_COPY
  382. MP_WMBZ wParam ; unused
  383. MP_LMBZ lParam ; unused
  384. MESSAGE WM_PASTE
  385. MP_WMBZ wParam ; unused
  386. MP_LMBZ lParam ; unused
  387. MESSAGE WM_CLEAR
  388. MP_WMBZ wParam ; unused
  389. MP_LMBZ lParam ; unused
  390. MESSAGE WM_UNDO
  391. MP_WMBZ wParam ; unused
  392. MP_LMBZ lParam ; unused
  393. MESSAGE WM_RENDERFORMAT
  394. MP_ATOM wClipFmt
  395. MP_LMBZ lParam ; unused
  396. MESSAGE WM_RENDERALLFORMATS
  397. MP_WMBZ wParam ; unused
  398. MP_LMBZ lParam ; unused
  399. MESSAGE WM_DESTROYCLIPBOARD
  400. MP_WMBZ wParam ; unused
  401. MP_LMBZ lParam ; unused
  402. MESSAGE WM_DRAWCLIPBOARD
  403. MP_HWND0 hWndClipboardOwner ; handle to current clipboard owner
  404. MP_LMBZ lParam ; unused
  405. MESSAGE WM_PAINTCLIPBOARD
  406. MP_HWNDCLIP hWnd ;**handle to clipboard app. window
  407. MP_GHANDLE hPS ;handle of PAINTSTRUCT struct.
  408. MP_WMBZ lParamHi
  409. MESSAGE WM_VSCROLLCLIPBOARD
  410. MP_HWNDCLIP hWndClip ;handle to clipboard app. window
  411. MP_VALUE wSBCode, SB_MAX ;** range 0-7
  412. MP_WMBZ lParamHi ;unused
  413. MESSAGE WM_SIZECLIPBOARD
  414. MP_HWNDCLIP hWndClip ;handle to clipboard app. window
  415. MP_GHANDLE hRect ;handle of RECT
  416. MP_WMBZ lParamHi ;unused
  417. MESSAGE WM_ASKCBFORMATNAME
  418. MP_LPBUFFERX nCount, lpBuffer
  419. MESSAGE WM_CHANGECBCHAIN
  420. MP_HWND hWndRemove ; window being removed
  421. MP_HWND0 hWndNext ; next window in chain
  422. MP_WMBZ lParamHi ;unused
  423. MESSAGE WM_HSCROLLCLIPBOARD
  424. MP_HWNDCLIP hWndClip ;handle to clipboard app. window
  425. MP_VALUE wSBCode, SB_MAX ;range 0-7
  426. MP_WMBZ lParamHi ;unused
  427. MESSAGE WM_QUERYNEWPALETTE
  428. MP_WMBZ wParam ;unused
  429. MP_LMBZ lParam ;unused
  430. MESSAGE WM_PALETTECHANGED
  431. MP_HWND hWnd ;Window that caused palette change
  432. MP_LMBZ lParam ;unused
  433. MESSAGE WM_POWER
  434. MP_VALUE wPower, PWR_MAX ;power management code
  435. MP_LMBZ lParam ;unused
  436. ;-----------------------
  437. ; Windows DDE messages
  438. MESSAGE WM_DDE_INITIATE
  439. MP_HWND hWndSend ;sender window
  440. MP_ATOM0 aApplication ;** app. with whom conversation is required
  441. MP_ATOM0 aTopic ;conversation topic
  442. MESSAGE WM_DDE_TERMINATE, <POSTED>
  443. ;MP_HWNDW0 hWndSend ;sender window (warn if bogus)
  444. MP_WORD hwndSend ;NOTE: can be an invalid window handle
  445. ; app exit time, so no validation.
  446. MP_LMBZ lReserved ;reserved
  447. MESSAGE WM_DDE_ADVISE, <POSTED>
  448. MP_HWND hWndSend ;sender window
  449. MP_GHANDLEDDE hOptions ;** object allicated with GMEM_DDE_SHARE opt.
  450. MP_ATOM aItem ;** global atom
  451. MESSAGE WM_DDE_UNADVISE, <POSTED>
  452. MP_HWND hWndSend ;sender window
  453. MP_ATOM0 aItem ;data for which req. is being retracted
  454. MP_ATOM0 cfFormat ;
  455. MESSAGE WM_DDE_ACK, <POSTED>
  456. MP_HWND hWndSend ;sender window
  457. MP_LONG lParam ;lParam depends on the type of msg. being
  458. ;ack. Typically it is app-specific status flags.
  459. MESSAGE WM_DDE_DATA, <POSTED>
  460. MP_HWND hWndSend ;sender window
  461. MP_GHANDLEDDE0 hData ;** can be null
  462. MP_ATOM aItem ;global atom identifying data
  463. MESSAGE WM_DDE_REQUEST, <POSTED>
  464. MP_HWND hWndSend ;sender window
  465. MP_ATOM cfFormat ;std. or registered clipboard format.
  466. MP_ATOM aItem ;atom identifying item being requested.
  467. MESSAGE WM_DDE_POKE, <POSTED>
  468. MP_HWNDW hWndSend ;sender window, warn NULL/bad
  469. MP_GHANDLEDDE0 hData ;global data and other inf. allow NULL
  470. MP_ATOM aItem ;global atom identifying data
  471. ; Removed the "<POSTED>" to fix Bug #14828
  472. ;MESSAGE WM_DDE_EXECUTE, <POSTED>
  473. MESSAGE WM_DDE_EXECUTE
  474. MP_HWNDW hWndSend ;sender window. Must warn for VirtualMonitor app
  475. MP_WMBZ wReserved
  476. ;MP_GHANDLEDDE hCommands ;global obj. with commands to be executed.
  477. MP_GHANDLEDDEW hCommands ; Legacy Tutorial uses an atom. So, we warn
  478. ;------------------------
  479. ; dialog manager messages
  480. ; in DLGMGR.C
  481. MESSAGE DM_GETDEFID
  482. MP_WMBZ wParam ;unused
  483. MP_LMBZ lParam ;unused
  484. MESSAGE DM_SETDEFID
  485. MP_WORD wIdItem ;new ID of item
  486. MP_LMBZ lParam ;unused
  487. MESSAGE_CLASS_END
  488. ;----------------
  489. ; Button messages
  490. ; in BTNCTL.C
  491. MESSAGE_CLASS BUTTON
  492. MESSAGE BM_GETCHECK
  493. MP_WMBZ wParam ;unused
  494. MP_LMBZ lParam ;unused
  495. MESSAGE BM_SETCHECK
  496. MP_BOOL bCheck ;BOOL value
  497. MP_LMBZ lParam ;unused
  498. MESSAGE BM_GETSTATE
  499. MP_WMBZ wParam ;unused
  500. MP_LMBZ lParam ;unused
  501. MESSAGE BM_SETSTATE
  502. MP_BOOL bHilite ;BOOL value
  503. MP_LMBZ lParam ;unused
  504. MESSAGE BM_SETSTYLE
  505. MP_FLAGS wFlags, BS_VALID ;** button control style
  506. MP_BOOL bRedraw ;BOOL value
  507. MP_WMBZ lParamHi ;unused
  508. MESSAGE_CLASS_END
  509. ;-------------------------------------------
  510. ; combobox messages
  511. ; in COMBO.C
  512. ;
  513. ; MP_CBINDEX*, MP_CBITEMHEIGHT*
  514. ; MP_CLPSTRCB and MP_EDITPOS assume hWnd.
  515. MESSAGE_CLASS COMBOBOX
  516. MESSAGE CB_GETEDITSEL
  517. MP_WMBZ wParam ;unused
  518. MP_LMBZ lParam ;unused
  519. MESSAGE CB_LIMITTEXT
  520. MP_WORD wBytes ;max. number of bytes
  521. MP_LMBZ lParam ;unused
  522. MESSAGE CB_SETEDITSEL
  523. MP_WMBZ wParam ;unused
  524. MP_EDITPOS wStart ;** start of edit selection
  525. MP_EDITPOS wEnd ;end of edit selection
  526. MESSAGE CB_ADDSTRING
  527. MP_WMBZ wParam ;unused
  528. MP_CLPSTRCB lpString ;** if combobox is ownerdraw, then CLPSTR
  529. ;only if style includes CB_HASSTRINGS
  530. MESSAGE CB_DELETESTRING
  531. MP_CBINDEX wIndex ;** index of item to be deleted
  532. MP_LMBZ lParam ;unused
  533. MESSAGE CB_DIR
  534. MP_FLAGS wFlags,DOSATTR_VALID ;** DOS file attributes (0 valid)
  535. MP_CLPSTR lpFileName ;filename
  536. MESSAGE CB_GETCOUNT
  537. MP_WMBZ wParam ;unused
  538. MP_LMBZ lParam ;unused
  539. MESSAGE CB_GETCURSEL
  540. MP_WMBZ wParam ;unused
  541. MP_LMBZ lParam ;unused
  542. MESSAGE CB_GETLBTEXT
  543. MP_CBINDEX wIndex
  544. MP_LPSTRCB lpString ; pointer to DWORD if !CB_HASSTRINGS
  545. MESSAGE CB_GETLBTEXTLEN
  546. MP_CBINDEX wIndex ;index of item
  547. MP_LMBZ lParam ;unused
  548. MESSAGE CB_INSERTSTRING
  549. MP_CBINDEX wIndex ;index of item
  550. MP_CLPSTRCB lpString ;** if combobox is ownerdraw, then CLPSTR
  551. ;only if style includes CB_HASSTRINGS
  552. MESSAGE CB_RESETCONTENT
  553. MP_WMBZ wParam ;unused
  554. MP_LMBZ lParam ;unused
  555. MESSAGE CB_FINDSTRING
  556. MP_CBINDEXFFFF wIndex ;** index of item. Can be -1
  557. MP_CLPSTRCB lpString ;combobox is ownerdraw, then CLPSTR
  558. ;only if style includes CB_HASSTRING
  559. MESSAGE CB_SELECTSTRING
  560. MP_CBINDEXFFFF wIndex ;index of item. Can be -1
  561. MP_CLPSTRCB lpString ;combobox is ownerdraw, then CLPSTR
  562. ;only if style includes CB_HASSTRINGS
  563. MESSAGE CB_SETCURSEL
  564. MP_CBINDEXFFFF wIndex ;index of item. Can be -1
  565. MP_LMBZ lParam ;unused
  566. MESSAGE CB_SHOWDROPDOWN
  567. MP_BOOL bDisplay ;BOOL value
  568. MP_LMBZ lParam ;unused
  569. MESSAGE CB_GETITEMDATA
  570. MP_CBINDEX wIndex ;index of item.
  571. MP_LMBZ lParam ;unused
  572. MESSAGE CB_SETITEMDATA
  573. MP_CBINDEX wIndex ;index of item.
  574. MP_LONG lParam ;new value of item (can be anything)
  575. MESSAGE CB_GETDROPPEDCONTROLRECT
  576. MP_WMBZ wParam ;unused
  577. MP_LPRECT lpRect
  578. MESSAGE CB_SETITEMHEIGHT
  579. MP_CBITEMHEIGHTFFFF wIndex ;** index or -1 if style is CBS_OWNERDRAWVARIABLE
  580. ;must be 0 otherwise
  581. MP_WORD wHeight
  582. MP_WMBZ lParamHi ;unused
  583. MESSAGE CB_GETITEMHEIGHT
  584. MP_CBITEMHEIGHTFFFF wIndex ;** index or -1 if style is CBS_OWNERDRAWVARIABLE
  585. ;must be 0 otherwise
  586. MP_LMBZ lParam ;unused
  587. MESSAGE CB_SETEXTENDEDUI
  588. MP_BOOL bSet ;BOOL value
  589. MP_LMBZ lParam ;unused
  590. MESSAGE CB_GETEXTENDEDUI
  591. MP_WMBZ wParam ;unused
  592. MP_LMBZ lParam ;unused
  593. MESSAGE CB_GETDROPPEDSTATE
  594. MP_WMBZ wParam ;unused
  595. MP_LMBZ lParam ;unused
  596. MESSAGE CB_FINDSTRINGEXACT
  597. MP_CBINDEXFFFF wIndex ;** index of item. Can be -1
  598. MP_CLPSTRCB lpString ;combobox is ownerdraw, then CLPSTR
  599. ;only if style includes CB_HASSTRING
  600. MESSAGE_CLASS_END
  601. ;---------------------------------------------
  602. ; edit control messages
  603. ; in EDITEC.CML.C and EDITSL.C
  604. ;
  605. ; MP_EDITPOS, MP_EMLINES, MP_EMLINE*, MP_EMCHARPOS
  606. ; MP_CLPSTRLB and MP_CHARINDEX* assume hWnd.
  607. ;----- in EDITEC.C (processed by commom edit control handler)---------
  608. MESSAGE_CLASS EDIT
  609. MESSAGE EM_GETSEL
  610. MP_WMBZ wParam ;unused
  611. MP_LMBZ lParam ;unused
  612. MESSAGE EM_GETRECT
  613. MP_WMBZ wParam ;unused
  614. MP_LPRECT lpRect ;ptr. to RECT
  615. MESSAGE EM_GETMODIFY
  616. MP_WMBZ wParam ;unused
  617. MP_LMBZ lParam ;unused
  618. MESSAGE EM_SETMODIFY
  619. MP_WORD wValue ;new value for modify flag
  620. MP_LMBZ lParam ;unused
  621. MESSAGE EM_GETLINECOUNT
  622. MP_WMBZ wParam ;unused
  623. MP_LMBZ lParam ;unused
  624. MESSAGE EM_LIMITTEXT
  625. MP_WORD wBytes ;max. bytes that can be entered (can be 0)
  626. MP_LMBZ lParam ;unused
  627. MESSAGE EM_CANUNDO
  628. MP_WMBZ wParam ;unused
  629. MP_LMBZ lParam ;unused
  630. MESSAGE EM_EMPTYUNDOBUFFER
  631. MP_WMBZ wParam ;unused
  632. MP_LMBZ lParam ;unused
  633. MESSAGE EM_SETPASSWORDCHAR
  634. MP_WORD wChar ;char to be displayed
  635. MP_LMBZ lParam ;unused
  636. MESSAGE EM_GETFIRSTVISIBLELINE
  637. MP_WMBZ wParam ;unused
  638. MP_LMBZ lParam ;unused
  639. MESSAGE EM_SETREADONLY
  640. MP_BOOL bSet ;BOOL value
  641. MP_LMBZ lParam ;unused
  642. MESSAGE EM_GETPASSWORDCHAR
  643. MP_WMBZ wParam ;unused
  644. MP_LMBZ lParam ;unused
  645. MESSAGE EM_GETWORDBREAKPROC
  646. MP_WMBZ wParam ;unused
  647. MP_LMBZ lParam ;unused
  648. ;---- in EDITML.C (processed by multiline control handler) ------------
  649. MESSAGE EM_SETRECT, <MLCONLY> ;only applicable to multiline controls
  650. MP_WMBZ wParam ;unused
  651. MP_CLPRECT lpRect ;ptr. to new RECT dimensions
  652. MESSAGE EM_SETRECTNP, <MLCONLY>;only applicable to multiline controls
  653. MP_WMBZ wParam ;unused
  654. MP_CLPRECT lpRect ;ptr. to new RECT dimensions
  655. MESSAGE EM_SCROLL, <MLCONLY>
  656. MP_VALUE wScroll, SB_LPMAX ;** range 0-4 (only SB_LINEUP, SB_LINEDOWN,
  657. ;SB_PAGEUP and SB_PAGEDOWN)
  658. MP_LMBZ lParam ;unused
  659. MESSAGE EM_LINESCROLL, <MLCONLY>
  660. MP_WMBZ wParam ;unused
  661. MP_EMCLINE nLines ;** number of lines to scroll vertically
  662. MP_EMCHARPOS nPos ;** char positions to scroll horizontally
  663. MESSAGE EM_LINEINDEX, <MLCONLY>
  664. MP_EMLINEFFFF wLineNumber ;** Required line number. Can be -1
  665. MP_LMBZ lParam ;unused
  666. MESSAGE EM_SETHANDLE, <MLCONLY>
  667. MP_LHANDLE wHandle ;handle in app's DS
  668. MP_LMBZ lParam ;unused
  669. MESSAGE EM_GETHANDLE, <MLCONLY>
  670. MP_WMBZ wParam ;unused
  671. MP_LMBZ lParam ;unused
  672. MESSAGE EM_FMTLINES, <MLCONLY>
  673. MP_BOOL bRemoveEOL ;BOOL value
  674. MP_LMBZ lParam ;unused
  675. MESSAGE EM_LINEFROMCHAR, <MLCONLY>
  676. MP_CHARINDEXFFFF wIndex ;**index of char from beginning of text (or -1)
  677. MP_LMBZ lParam ;unused
  678. MESSAGE EM_SETWORDBREAK, <MLCONLY> ;?? not implemented
  679. MP_WMBZ wParam ;unused
  680. MP_LPFNWORDBREAK0 lpfnWordBreak ;WordBreak callback function
  681. MESSAGE EM_SETTABSTOPS, <MLCONLY>
  682. MP_LPTSBUFFER0 wTabs, lpTabs ;** wParam: number of tab stops
  683. ;lParam: ptr. to array of int. values.
  684. ;lParam is a ptr. only if wParam is not
  685. ;0 or 1. If wParam is 0, lParam can be NULL.
  686. ;in EDITML.C and EDITSL.C (processed by single line and
  687. ;multiline control handlers) --------------------------------
  688. MESSAGE EM_SETSEL
  689. MP_BOOL bDontScrollToView ;for 3.1 apps, don't scroll caret into view if set
  690. MP_int wStartPos ;start of edit selection
  691. MP_int wEndPos ;end of edit selection
  692. MESSAGE EM_LINELENGTH
  693. MP_EMLINEFFFF wLine ;Required line number. Can be -1
  694. MP_LMBZ lParam ;unused
  695. MESSAGE EM_GETLINE
  696. MP_EMLINE wLine ;Required line number.
  697. MP_LPBUFFERCNT lpBuffer ;** first WORD of buffer contains count
  698. MESSAGE EM_REPLACESEL
  699. MP_WMBZ wParam ;unused
  700. MP_CLPSTR lpString ;replacement string
  701. MESSAGE EM_UNDO
  702. MP_WMBZ wParam ;unused
  703. MP_LMBZ lParam ;unused
  704. MESSAGE EM_SETWORDBREAKPROC ; New for Win3.1
  705. MP_WMBZ wParam ;unused
  706. MP_LPFNWORDBREAK0 lpfnWordBreak ;WordBreak callback function
  707. MESSAGE_CLASS_END
  708. ;----------------------------------------------------
  709. ; Listbox messages
  710. ; processed in LB1.ASM. Helper routines in LBOXCTL?.C
  711. ;
  712. ; MP_LBINDEX* and MP_LBLPBUFFERINDEX assume hWnd
  713. MESSAGE_CLASS LISTBOX
  714. MESSAGE LB_ADDSTRING
  715. MP_WMBZ wParam ;unused
  716. MP_CLPSTRLB lpString ;** if listbox is ownerdraw, then CLPSTR
  717. ;only if style includes LB_HASSTRINGS
  718. MESSAGE LB_INSERTSTRING
  719. MP_LBINDEXFFFF wIndex ;** position index (can be -1)
  720. MP_CLPSTRLB lpString ;if listbox is ownerdraw, then CLPSTR
  721. ;only if style includes LB_HASSTRINGS
  722. MESSAGE LB_DELETESTRING
  723. MP_LBINDEX wIndex ;position index
  724. MP_LMBZ lParam ;unused
  725. MESSAGE LB_RESETCONTENT
  726. MP_WMBZ wParam ;unused
  727. MP_LMBZ lParam ;unused
  728. MESSAGE LB_SETSEL
  729. MP_BOOL bHilite ;BOOL value
  730. MP_LBINDEXFFFF wIndex ;position index (can be -1)
  731. MP_WORD lParamHi ;unused (but may be -1 due to sign extension)
  732. MESSAGE LB_SETCURSEL
  733. MP_LBINDEXFFFF wIndex ;position index (can be -1)
  734. MP_LMBZ lParam ;unused
  735. MESSAGE LB_GETSEL
  736. MP_LBINDEX wIndex ;position index
  737. MP_LMBZ lParam ;unused
  738. MESSAGE LB_GETCURSEL
  739. MP_WMBZ wParam ;unused
  740. MP_LMBZ lParam ;unused
  741. MESSAGE LB_GETTEXT
  742. MP_LBLPBUFFERINDEX wIndex, lpBuf ;** wParam:position index
  743. ;lParam:ptr. to buffer to recieve string.
  744. MESSAGE LB_GETTEXTLEN
  745. MP_LBINDEX wIndex ;position index
  746. MP_LMBZ lParam ;unused
  747. MESSAGE LB_GETCOUNT
  748. MP_WMBZ wParam ;unused
  749. MP_LMBZ lParam ;unused
  750. MESSAGE LB_SELECTSTRING
  751. MP_LBINDEXFFFF wIndex ;index of item. Can be -1
  752. MP_CLPSTRLB lpString ;if listbox is ownerdraw, then CLPSTR
  753. ;only if style includes LB_HASSTRINGS
  754. MESSAGE LB_DIR
  755. MP_FLAGS wFlags,DOSATTR_VALID ;** DOS file attributes (0 valid)
  756. MP_CLPSTR lpString ;filename
  757. MESSAGE LB_GETTOPINDEX
  758. MP_WMBZ wParam ;unused
  759. MP_LMBZ lParam ;unused
  760. MESSAGE LB_FINDSTRING
  761. MP_LBINDEXFFFF wIndex ;index of item. Can be -1
  762. MP_CLPSTRLB lpString ;if listbox is ownerdraw, then CLPSTR
  763. ;only if style includes LB_HASSTRINGS
  764. MESSAGE LB_GETSELCOUNT, <MULTISELONLY>
  765. ;applicable only to LBS_MULTIPLESEL listboxes
  766. MP_WMBZ wParam ;unused
  767. MP_LMBZ lParam ;unused
  768. MESSAGE LB_GETSELITEMS, <MULTISELONLY>
  769. MP_LPWBUFFERX wCount, lpBuf ;** lpBuf is int. buffer
  770. MESSAGE LB_SETTABSTOPS
  771. MP_LPTSBUFFER0 wTabs, lpTabs ;wParam: number of tab stops
  772. ;lParam: ptr. to array of int. values.
  773. ;lParam is a ptr. only if wParam is not
  774. ;0 or 1. If wParam is 0, lParam can be NULL.
  775. MESSAGE LB_GETHORIZONTALEXTENT
  776. MP_WMBZ wParam ;unused
  777. MP_LMBZ lParam ;unused
  778. MESSAGE LB_SETHORIZONTALEXTENT
  779. MP_WORD wPixels ;no. pixels by which lbox can be scrolled.
  780. MP_LMBZ lParam ;unused
  781. MESSAGE LB_SETCOLUMNWIDTH, <MULTICOLONLY>
  782. ;only sent to LBS_MULTICOLUMN listboxes
  783. MP_WORD wWidth ;width in pixels of all columns
  784. MP_LMBZ lParam ;unused
  785. MESSAGE LB_SETTOPINDEX
  786. MP_LBINDEX wIndex ;position index
  787. MP_LMBZ lParam ;unused
  788. MESSAGE LB_GETITEMRECT
  789. MP_LBINDEX wIndex ;position index
  790. MP_LPRECT lpRect ;client coords. of item
  791. MESSAGE LB_GETITEMDATA
  792. MP_LBINDEX wIndex ;position index
  793. MP_LMBZ lParam ;unused
  794. MESSAGE LB_SETITEMDATA
  795. MP_LBINDEX wIndex ;position index
  796. MP_LONG lParam ;new value for item
  797. MESSAGE LB_SELITEMRANGE, <MULTISELONLY> ;
  798. MP_BOOL bSelect ;BOOL value
  799. MP_LBINDEX wFirstIndex ;start index of selection
  800. MP_LBINDEX wLastIndex ;end index of selection
  801. MESSAGE LB_SETCARETINDEX
  802. MP_LBINDEX wIndex
  803. MP_BOOL fNoScrollIntoView
  804. MP_WMBZ lParamHi ;unused
  805. MESSAGE LB_GETCARETINDEX
  806. MP_WMBZ wParam ;unused
  807. MP_LMBZ lParam ;unused
  808. MESSAGE LB_SETITEMHEIGHT, <OWNERDRAWVARONLY> ;only processed by
  809. ;listboxes with LB_OWNERDRAWVARIABLE style
  810. MP_LBINDEX wIndex
  811. MP_WORD wHeight
  812. MP_WMBZ lParamHi ;unused
  813. MESSAGE LB_GETITEMHEIGHT, <OWNERDRAWVARONLY>
  814. MP_LBINDEX wIndex
  815. MP_LMBZ lParam ;unused
  816. MESSAGE LB_FINDSTRINGEXACT
  817. MP_LBINDEXFFFF wIndex ;index of item. Can be -1
  818. MP_CLPSTRLB lpString ;if listbox is ownerdraw, then CLPSTR
  819. ;only if style includes LBS_HASSTRINGS
  820. MESSAGE_CLASS_END
  821. ;
  822. ; Static control messages
  823. ;
  824. MESSAGE_CLASS STATIC
  825. MESSAGE STM_SETICON
  826. MP_HICON0 hIcon
  827. MP_LMBZ lParam
  828. MESSAGE STM_GETICON
  829. MP_WMBZ wParam
  830. MP_LMBZ lParam
  831. MESSAGE_CLASS_END