WIN32.ASI
上传用户:ys_happy
上传日期:2007-01-09
资源大小:20k
文件大小:19k
源码类别:

汇编语言

开发平台:

Asm

  1. ;*************************************************************************
  2. ;
  3. ;       WIN32.INC - Win32 assembly language structures & constants
  4. ;
  5. ;
  6. ;*************************************************************************
  7. ;
  8. ; NOTE: this file only implements the structures and constants that
  9. ;       wap32.asm uses.  You may extend it for your own applications.
  10. ;
  11. ;*************************************************************************
  12. ;
  13. ;
  14. ;       C/C++ Run Time Library - Version 6.0
  15. ;
  16. ;       Copyright (c) 1985, 1993 by Borland International
  17. ;       All Rights Reserved.
  18. ;
  19. UCHAR   EQU <db>
  20. USHORT  EQU <dw>  ; used only if we really need 16 bits
  21. UINT    EQU <dd>  ; 32 bits for WIN32
  22. ULONG   EQU <dd>
  23. ;*******************************************************************
  24. ;
  25. ;       Rectangle
  26. ;
  27. ;*******************************************************************
  28. RECT    struc
  29.         rcLeft          UINT ?
  30.         rcTop           UINT ?
  31.         rcRight         UINT ?
  32.         rcBottom        UINT ?
  33. RECT    ends
  34. ;*******************************************************************
  35. ;
  36. ;  Window Class structure
  37. ;
  38. ;*******************************************************************
  39. WNDCLASS struc
  40.         clsStyle          UINT     ?   ; class style
  41.         clsLpfnWndProc    ULONG    ?
  42.         clsCbClsExtra     UINT     ?
  43.         clsCbWndExtra     UINT     ?
  44.         clsHInstance      UINT     ?   ; instance handle
  45.         clsHIcon          UINT     ?   ; class icon handle
  46.         clsHCursor        UINT     ?   ; class cursor handle
  47.         clsHbrBackground  UINT     ?   ; class background brush
  48.         clsLpszMenuName   ULONG    ?   ; menu name
  49.         clsLpszClassName  ULONG    ?   ; far ptr to class name
  50. WNDCLASS ends
  51. PAINTSTRUCT STRUC
  52.     PShdc         UINT             ?
  53.     PSfErase      UINT             ?
  54.     PSrcPaint     UCHAR            size RECT dup(?)
  55.     PSfRestore    UINT             ?
  56.     PSfIncUpdate  UINT             ?
  57.     PSrgbReserved UCHAR            16 dup(?)
  58. PAINTSTRUCT ENDS
  59. MSGSTRUCT struc
  60.     msHWND          UINT    ?
  61.     msMESSAGE       UINT    ?
  62.     msWPARAM        UINT    ?
  63.     msLPARAM        ULONG   ?
  64.     msTIME          ULONG   ?
  65.     msPT            ULONG   ?
  66. MSGSTRUCT ends
  67. MINMAXINFO struc
  68.   res_x               dd ?
  69.   res_y               dd ?
  70.   maxsize_x           dd ?
  71.   maxsize_y           dd ?
  72.   maxposition_x       dd ?
  73.   maxposition_y       dd ?
  74.   mintrackposition_x  dd ?
  75.   mintrackposition_y  dd ?
  76.   maxtrackposition_x  dd ?
  77.   maxtrackposition_y  dd ?
  78. MINMAXINFO ends
  79. ;
  80. ;  Stock Logical Objects
  81. ;
  82. WHITE_PEN           =  6
  83. BLACK_PEN           =  7
  84. NULL_PEN            =  8
  85. DOT_MARKER          =  9
  86. OEM_FIXED_FONT      = 10
  87. ANSI_FIXED_FONT     = 11
  88. ANSI_VAR_FONT       = 12
  89. SYSTEM_FONT         = 13
  90. DEVICE_DEFAULT_FONT = 14
  91. DEFAULT_PALETTE     = 15
  92. SYSTEM_FIXED_FONT   = 16
  93. ;
  94. ; Hatch Styles
  95. ;
  96. HS_HORIZONTAL   =   0       ; -----
  97. HS_VERTICAL     =   1       ; |||||
  98. HS_FDIAGONAL    =   2       ; \\
  99. HS_BDIAGONAL    =   3       ; /////
  100. HS_CROSS        =   4       ; +++++
  101. HS_DIAGCROSS    =   5       ; xxxxx
  102. ;
  103. ; Pen Styles
  104. ;
  105. PS_SOLID        =   0
  106. PS_DASH         =   1       ; -------
  107. PS_DOT          =   2       ; .......
  108. PS_DASHDOT      =   3       ; _._._._
  109. PS_DASHDOTDOT   =   4       ; _.._.._
  110. PS_NULL         =   5
  111. PS_INSIDEFRAME  =   6
  112. ;
  113. ;  Window State Messages
  114. ;
  115. IFNDEF  NOWM
  116. WM_STATE            = 0000H
  117. WM_NULL             = 0000h
  118. WM_CREATE           = 0001h
  119. WM_DESTROY          = 0002h
  120. WM_MOVE             = 0003h
  121. WM_SIZE             = 0005h
  122. WM_ACTIVATE         = 0006h
  123. WM_SETFOCUS         = 0007h
  124. WM_KILLFOCUS        = 0008h
  125. WM_ENABLE           = 000Ah
  126. WM_SETREDRAW        = 000Bh
  127. WM_SETTEXT          = 000Ch
  128. WM_GETTEXT          = 000Dh
  129. WM_GETTEXTLENGTH    = 000Eh
  130. WM_PAINT            = 000Fh
  131. WM_CLOSE            = 0010h
  132. WM_QUERYENDSESSION  = 0011h
  133. WM_QUIT             = 0012h
  134. WM_QUERYOPEN        = 0013h
  135. WM_ERASEBKGND       = 0014h
  136. WM_SYSCOLORCHANGE   = 0015h
  137. WM_ENDSESSION       = 0016h
  138. WM_SYSTEMERROR      = 0017h
  139. WM_SHOWWINDOW       = 0018h
  140. WM_CTLCOLOR         = 0019h
  141. WM_WININICHANGE     = 001Ah
  142. WM_DEVMODECHANGE    = 001Bh
  143. WM_ACTIVATEAPP      = 001Ch
  144. WM_FONTCHANGE       = 001Dh
  145. WM_TIMECHANGE       = 001Eh
  146. WM_CANCELMODE       = 001Fh
  147. WM_SETCURSOR        = 0020h
  148. WM_MOUSEACTIVATE    = 0021h
  149. WM_CHILDACTIVATE    = 0022h
  150. WM_QUEUESYNC        = 0023h
  151. WM_GETMINMAXINFO    = 0024h
  152. WM_PAINTICON        = 0026h
  153. WM_ICONERASEBKGND   = 0027h
  154. WM_NEXTDLGCTL       = 0028h
  155. WM_SPOOLERSTATUS    = 002Ah
  156. WM_DRAWITEM         = 002Bh
  157. WM_MEASUREITEM      = 002Ch
  158. WM_DELETEITEM       = 002Dh
  159. WM_VKEYTOITEM       = 002Eh
  160. WM_CHARTOITEM       = 002Fh
  161. WM_SETFONT          = 0030h
  162. WM_GETFONT          = 0031h
  163. WM_QUERYDRAGICON    = 0037h
  164. WM_COMPAREITEM      = 0039h
  165. WM_COMPACTING       = 0041h
  166. WM_COMMNOTIFY       = 0044h
  167. WM_WINDOWPOSCHANGING= 0046h
  168. WM_WINDOWPOSCHANGED = 0047h
  169. WM_POWER            = 0048h
  170. WM_NCCREATE         = 0081h
  171. WM_NCDESTROY        = 0082h
  172. WM_NCCALCSIZE       = 0083h
  173. WM_NCHITTEST        = 0084h
  174. WM_NCPAINT          = 0085h
  175. WM_NCACTIVATE       = 0086h
  176. WM_GETDLGCODE       = 0087h
  177. WM_NCMOUSEMOVE      = 00A0h
  178. WM_NCLBUTTONDOWN    = 00A1h
  179. WM_NCLBUTTONUP      = 00A2h
  180. WM_NCLBUTTONDBLCLK  = 00A3h
  181. WM_NCRBUTTONDOWN    = 00A4h
  182. WM_NCRBUTTONUP      = 00A5h
  183. WM_NCRBUTTONDBLCLK  = 00A6h
  184. WM_NCMBUTTONDOWN    = 00A7h
  185. WM_NCMBUTTONUP      = 00A8h
  186. WM_NCMBUTTONDBLCLK  = 00A9h
  187. WM_KEYFIRST         = 0100h
  188. WM_KEYDOWN          = 0100h
  189. WM_KEYUP            = 0101h
  190. WM_CHAR             = 0102h
  191. WM_DEADCHAR         = 0103h
  192. WM_SYSKEYDOWN       = 0104h
  193. WM_SYSKEYUP         = 0105h
  194. WM_SYSCHAR          = 0106h
  195. WM_SYSDEADCHAR      = 0107h
  196. WM_KEYLAST          = 0108h
  197. WM_INITDIALOG       = 0110h
  198. WM_COMMAND          = 0111h
  199. WM_SYSCOMMAND       = 0112h
  200. WM_TIMER            = 0113h
  201. WM_HSCROLL          = 0114h
  202. WM_VSCROLL          = 0115h
  203. WM_INITMENU         = 0116h
  204. WM_INITMENUPOPUP    = 0117h
  205. WM_MENUSELECT       = 011Fh
  206. WM_MENUCHAR         = 0120h
  207. WM_ENTERIDLE        = 0121h
  208. WM_MOUSEFIRST       = 0200h
  209. WM_MOUSEMOVE        = 0200h
  210. WM_LBUTTONDOWN      = 0201h
  211. WM_LBUTTONUP        = 0202h
  212. WM_LBUTTONDBLCLK    = 0203h
  213. WM_RBUTTONDOWN      = 0204h
  214. WM_RBUTTONUP        = 0205h
  215. WM_RBUTTONDBLCLK    = 0206h
  216. WM_MBUTTONDOWN      = 0207h
  217. WM_MBUTTONUP        = 0208h
  218. WM_MBUTTONDBLCLK    = 0209h
  219. WM_MOUSELAST        = 0209h
  220. WM_PARENTNOTIFY     = 0210h
  221. WM_MDICREATE        = 0220h
  222. WM_MDIDESTROY       = 0221h
  223. WM_MDIACTIVATE      = 0222h
  224. WM_MDIRESTORE       = 0223h
  225. WM_MDINEXT          = 0224h
  226. WM_MDIMAXIMIZE      = 0225h
  227. WM_MDITILE          = 0226h
  228. WM_MDICASCADE       = 0227h
  229. WM_MDIICONARRANGE   = 0228h
  230. WM_MDIGETACTIVE     = 0229h
  231. WM_MDISETMENU       = 0230h
  232. WM_DROPFILES        = 0233h
  233. WM_CUT              = 0300h
  234. WM_COPY             = 0301h
  235. WM_PASTE            = 0302h
  236. WM_CLEAR            = 0303h
  237. WM_UNDO             = 0304h
  238. WM_RENDERFORMAT     = 0305h
  239. WM_RENDERALLFORMATS = 0306h
  240. WM_DESTROYCLIPBOARD = 0307h
  241. WM_DRAWCLIPBOARD    = 0308h
  242. WM_PAINTCLIPBOARD   = 0309h
  243. WM_VSCROLLCLIPBOARD = 030Ah
  244. WM_SIZECLIPBOARD    = 030Bh
  245. WM_ASKCBFORMATNAME  = 030Ch
  246. WM_CHANGECBCHAIN    = 030Dh
  247. WM_HSCROLLCLIPBOARD = 030Eh
  248. WM_QUERYNEWPALETTE  = 030Fh
  249. WM_PALETTEISCHANGING = 0310h
  250. WM_PALETTECHANGED   = 0311h
  251. WM_PENWINFIRST      equ 0380h
  252. WM_PENWINLAST       equ 038Fh
  253. WM_COALESCE_FIRST  equ 0390h
  254. WM_COALESCE_LAST   equ 039Fh
  255. ;  private window messages start here
  256. WM_USER             = 0400H
  257. ENDIF           ; NOWM
  258. ; WM_MOUSEACTIVATE Return Codes
  259. MA_ACTIVATE       =  1
  260. MA_ACTIVATEANDEAT =  2
  261. MA_NOACTIVATE     =  3
  262. ; Size message commands
  263. SIZENORMAL       = 0
  264. SIZEICONIC       = 1
  265. SIZEFULLSCREEN   = 2
  266. SIZEZOOMSHOW     = 3
  267. SIZEZOOMHIDE     = 4
  268. ; ShowWindow() Commands
  269. SW_HIDE            = 0
  270. SW_SHOWNORMAL      = 1
  271. SW_NORMAL          = 1
  272. SW_SHOWMINIMIZED   = 2
  273. SW_SHOWMAXIMIZED   = 3
  274. SW_MAXIMIZE        = 3
  275. SW_SHOWNOACTIVATE  = 4
  276. SW_SHOW            = 5
  277. SW_MINIMIZE        = 6
  278. SW_SHOWMINNOACTIVE = 7
  279. SW_SHOWNA          = 8
  280. SW_RESTORE         = 9
  281. ; Old ShowWindow() Commands
  282. HIDE_WINDOW        = 0
  283. SHOW_OPENWINDOW    = 1
  284. SHOW_ICONWINDOW    = 2
  285. SHOW_FULLSCREEN    = 3
  286. SHOW_OPENNOACTIVATE= 4
  287. ;  identifiers for the WM_SHOWWINDOW message
  288. SW_PARENTCLOSING =  1
  289. SW_OTHERZOOM     =  2
  290. SW_PARENTOPENING =  3
  291. SW_OTHERUNZOOM   =  4
  292. ;
  293. ; Key state masks for mouse messages
  294. ;
  295. MK_LBUTTON       = 0001h
  296. MK_RBUTTON       = 0002h
  297. MK_SHIFT         = 0004h
  298. MK_CONTROL       = 0008h
  299. MK_MBUTTON       = 0010h
  300. ;
  301. ; Class styles
  302. ;
  303. CS_VREDRAW         = 0001h
  304. CS_HREDRAW         = 0002h
  305. CS_KEYCVTWINDOW    = 0004H
  306. CS_DBLCLKS         = 0008h
  307. ;                    0010h reserved
  308. CS_OWNDC           = 0020h
  309. CS_CLASSDC         = 0040h
  310. CS_PARENTDC        = 0080h
  311. CS_NOKEYCVT        = 0100h
  312. CS_SAVEBITS        = 0800h
  313. CS_NOCLOSE         = 0200h
  314. CS_BYTEALIGNCLIENT = 1000h
  315. CS_BYTEALIGNWINDOW = 2000h
  316. CS_GLOBALCLASS     = 4000h    ; Global window class
  317. ;
  318. ; Special CreateWindow position value
  319. ;
  320. CW_USEDEFAULT   EQU    8000h
  321. ;
  322. ; Windows styles
  323. ;
  324. WS_OVERLAPPED   = 000000000h
  325. WS_ICONICPOPUP  = 0C0000000h
  326. WS_POPUP        = 080000000h
  327. WS_CHILD        = 040000000h
  328. WS_MINIMIZE     = 020000000h
  329. WS_VISIBLE      = 010000000h
  330. WS_DISABLED     = 008000000h
  331. WS_CLIPSIBLINGS = 004000000h
  332. WS_CLIPCHILDREN = 002000000h
  333. WS_MAXIMIZE     = 001000000h
  334. WS_CAPTION      = 000C00000h     ; WS_BORDER | WS_DLGFRAME
  335. WS_BORDER       = 000800000h
  336. WS_DLGFRAME     = 000400000h
  337. WS_VSCROLL      = 000200000h
  338. WS_HSCROLL      = 000100000h
  339. WS_SYSMENU      = 000080000h
  340. WS_THICKFRAME   = 000040000h
  341. WS_HREDRAW      = 000020000h
  342. WS_VREDRAW      = 000010000h
  343. WS_GROUP        = 000020000h
  344. WS_TABSTOP      = 000010000h
  345. WS_MINIMIZEBOX  = 000020000h
  346. WS_MAXIMIZEBOX  = 000010000h
  347. ; Common Window Styles
  348. WS_OVERLAPPEDWINDOW = WS_OVERLAPPED OR WS_CAPTION OR WS_SYSMENU OR WS_THICKFRAME OR WS_MINIMIZEBOX OR WS_MAXIMIZEBOX
  349. WS_POPUPWINDOW  = WS_POPUP OR WS_BORDER OR WS_SYSMENU
  350. WS_CHILDWINDOW  = WS_CHILD
  351. WS_TILEDWINDOW  = WS_OVERLAPPEDWINDOW
  352. WS_TILED        = WS_OVERLAPPED
  353. WS_ICONIC       = WS_MINIMIZE
  354. WS_SIZEBOX      = WS_THICKFRAME
  355. ; Extended Window Styles (low words)
  356. WS_EX_DLGMODALFRAME  = 0001
  357. WS_EX_DRAGOBJECT     = 0002
  358. WS_EX_NOPARENTNOTIFY = 0004
  359. WS_EX_TOPMOST        = 0008
  360. ; PeekMessage() Options
  361. PM_NOREMOVE    = 0000h
  362. PM_REMOVE      = 0001h
  363. PM_NOYIELD     = 0002h
  364. ; SetWindowPos Flags
  365. SWP_NOSIZE       =  0001h
  366. SWP_NOMOVE       =  0002h
  367. SWP_NOZORDER     =  0004h
  368. SWP_NOREDRAW     =  0008h
  369. SWP_NOACTIVATE   =  0010h
  370. SWP_DRAWFRAME    =  0020h
  371. SWP_SHOWWINDOW   =  0040h
  372. SWP_HIDEWINDOW   =  0080h
  373. SWP_NOCOPYBITS   =  0100h
  374. SWP_NOREPOSITION =  0200h
  375. ;
  376. ;  Predefined cursor & icon IDs
  377. ;
  378. IDC_ARROW       = 32512
  379. IDC_IBEAM       = 32513
  380. IDC_WAIT        = 32514
  381. IDC_CROSS       = 32515
  382. IDC_UPARROW     = 32516
  383. IDC_SIZE        = 32640
  384. IDC_ICON        = 32641
  385. IDC_SIZENWSE    = 32642
  386. IDC_SIZENESW    = 32643
  387. IDC_SIZEWE      = 32644
  388. IDC_SIZENS      = 32645
  389. IDI_APPLICATION = 32512
  390. IDI_HAND        = 32513
  391. IDI_QUESTION    = 32514
  392. IDI_EXCLAMATION = 32515
  393. IDI_ASTERISK    = 32516
  394. COLOR_SCROLLBAR           = 0
  395. COLOR_BACKGROUND          = 1
  396. COLOR_ACTIVECAPTION       = 2
  397. COLOR_INACTIVECAPTION     = 3
  398. COLOR_MENU                = 4
  399. COLOR_WINDOW              = 5
  400. COLOR_WINDOWFRAME         = 6
  401. COLOR_MENUTEXT            = 7
  402. COLOR_WINDOWTEXT          = 8
  403. COLOR_CAPTIONTEXT         = 9
  404. COLOR_ACTIVEBORDER        = 10
  405. COLOR_INACTIVEBORDER      = 11
  406. COLOR_APPWORKSPACE        = 12
  407. COLOR_HIGHLIGHT           = 13
  408. COLOR_HIGHLIGHTTEXT       = 14
  409. COLOR_BTNFACE             = 15
  410. COLOR_BTNSHADOW           = 16
  411. COLOR_GRAYTEXT            = 17
  412. COLOR_BTNTEXT             = 18
  413. ;
  414. ;   Scroll bar constants
  415. ;
  416. SB_HORZ = 0
  417. SB_VERT = 1
  418. SB_CTL  = 2
  419. SB_BOTH = 3
  420. ;
  421. ;   Scroll Commands
  422. ;
  423. SB_LINEUP        = 0
  424. SB_LINEDOWN      = 1
  425. SB_PAGEUP        = 2
  426. SB_PAGEDOWN      = 3
  427. SB_THUMBPOSITION = 4
  428. SB_THUMBTRACK    = 5
  429. SB_TOP           = 6
  430. SB_BOTTOM        = 7
  431. SB_ENDSCROLL     = 8
  432. ;
  433. ;  MessageBox type flags
  434. ;
  435. MB_OK                   = 0000H
  436. MB_OKCANCEL             = 0001H
  437. MB_ABORTRETRYIGNORE     = 0002H
  438. MB_YESNOCANCEL          = 0003H
  439. MB_YESNO                = 0004H
  440. MB_RETRYCANCEL          = 0005H
  441. MB_ICONHAND             = 0010H
  442. MB_ICONQUESTION         = 0020H
  443. MB_ICONEXCLAMATION      = 0030H
  444. MB_ICONASTERISK         = 0040H
  445. MB_DEFBUTTON1           = 0000H
  446. MB_DEFBUTTON2           = 0100H
  447. MB_DEFBUTTON3           = 0200H
  448. MB_APPLMODAL            = 0000H
  449. MB_SYSTEMMODAL          = 1000H
  450. MB_TASKMODAL            = 2000H
  451. MB_NOFOCUS              = 8000H
  452. ;
  453. ;***************  DIALOG BOX Command IDs *******************************
  454. ;
  455. IDOK     =   1
  456. IDCANCEL =   2
  457. IDABORT  =   3
  458. IDRETRY  =   4
  459. IDIGNORE =   5
  460. IDYES    =   6
  461. IDNO     =   7
  462. ;*************************** virtual keys *******************************
  463. ;  Virtual Keys, Standard Set
  464. VK_LBUTTON      = 01H
  465. VK_RBUTTON      = 02H
  466. VK_CANCEL       = 03H
  467. VK_BACK         = 08H
  468. VK_TAB          = 09H
  469. VK_CLEAR        = 0cH
  470. VK_RETURN       = 0dH
  471. VK_SHIFT        = 10H
  472. VK_CONTROL      = 11H
  473. VK_MENU         = 12H
  474. VK_PAUSE        = 13H
  475. VK_CAPITAL      = 14H
  476. VK_ESCAPE       = 1bH
  477. VK_SPACE        = 20H
  478. VK_PRIOR        = 21H
  479. VK_NEXT         = 22H
  480. VK_END          = 23H
  481. VK_HOME         = 24H
  482. VK_LEFT         = 25H
  483. VK_UP           = 26H
  484. VK_RIGHT        = 27H
  485. VK_DOWN         = 28H
  486. ;  VK_A thru VK_Z are the same as their ASCII equivalents: 'A' thru 'Z'
  487. ;  VK_0 thru VK_9 are the same as their ASCII equivalents: '0' thru '0'
  488. VK_PRINT        = 2aH
  489. VK_EXECUTE      = 2bH
  490. VK_SNAPSHOT     = 2ch   ; Printscreen key..
  491. VK_INSERT       = 2dH
  492. VK_DELETE       = 2eH
  493. VK_HELP         = 2fH
  494. VK_NUMPAD0      = 60H
  495. VK_NUMPAD1      = 61H
  496. VK_NUMPAD2      = 62H
  497. VK_NUMPAD3      = 63H
  498. VK_NUMPAD4      = 64H
  499. VK_NUMPAD5      = 65H
  500. VK_NUMPAD6      = 66H
  501. VK_NUMPAD7      = 67H
  502. VK_NUMPAD8      = 68H
  503. VK_NUMPAD9      = 69H
  504. VK_MULTIPLY     = 6AH
  505. VK_ADD          = 6BH
  506. VK_SEPARATER    = 6CH
  507. VK_SUBTRACT     = 6DH
  508. VK_DECIMAL      = 6EH
  509. VK_DIVIDE       = 6FH
  510. VK_F1           = 70H
  511. VK_F2           = 71H
  512. VK_F3           = 72H
  513. VK_F4           = 73H
  514. VK_F5           = 74H
  515. VK_F6           = 75H
  516. VK_F7           = 76H
  517. VK_F8           = 77H
  518. VK_F9           = 78H
  519. VK_F10          = 79H
  520. VK_F11          = 7aH
  521. VK_F12          = 7bH
  522. VK_F13          = 7cH
  523. VK_F14          = 7dH
  524. VK_F15          = 7eH
  525. VK_F16          = 7fH
  526. VK_F17          = 80H
  527. VK_F18          = 81H
  528. VK_F19          = 82H
  529. VK_F20          = 83H
  530. VK_F21          = 84H
  531. VK_F22          = 85H
  532. VK_F23          = 86H
  533. VK_F24          = 87H
  534. VK_NUMLOCK      = 90H
  535. VK_SCROLL       = 91H
  536. ;********************* MDI *******************************
  537. MDICREATESTRUCT     struc
  538.     szClass         dd ?
  539.     szTitle         dd ?
  540.     hOwner          dd ?
  541.     x               dd ?
  542.     y               dd ?
  543.     cxc             dd ?
  544.     cyc             dd ?
  545.     style           dd ?
  546.     lParam     dd ?
  547. MDICREATESTRUCT ends
  548. CLIENTCREATESTRUCT  struc
  549.     hWindowMenu     dd ?
  550.     idFirstChild    dd ?
  551. CLIENTCREATESTRUCT ends
  552. ;********************* menu stuff *************************
  553. ;
  554. ; Menu flags for Change/Check/Enable MenuItem
  555. ;
  556. MF_INSERT       =   0000h
  557. MF_CHANGE       =   0080h
  558. MF_APPEND       =   0100h
  559. MF_DELETE       =   0200h
  560. MF_REMOVE       =   1000h
  561. MF_BYCOMMAND    =   0000h
  562. MF_BYPOSITION   =   0400h
  563. MF_SEPARATOR    =   0800h
  564. MF_ENABLED      =   0000h
  565. MF_GRAYED       =   0001h
  566. MF_DISABLED     =   0002h
  567. MF_UNCHECKED    =   0000h
  568. MF_CHECKED      =   0008h
  569. MF_USECHECKBITMAPS= 0200h
  570. MF_STRING       =   0000h
  571. MF_BITMAP       =   0004h
  572. MF_OWNERDRAW    =   0100h
  573. MF_POPUP        =   0010h
  574. MF_MENUBARBREAK =   0020h
  575. MF_MENUBREAK    =   0040h
  576. MF_UNHILITE     =   0000h
  577. MF_HILITE       =   0080h
  578. MF_SYSMENU      =   2000h
  579. MF_HELP         =   4000h
  580. MF_MOUSESELECT  =   8000h
  581. ; ************************ brushes ***************************
  582. LOGBRUSH struc
  583.     lbStyle         dd ?
  584.     lbColor         dd ?
  585.     lbHatch         dd ?
  586. LOGBRUSH ends
  587. ;
  588. ; stock brushes
  589. ;
  590. WHITE_BRUSH         =  0
  591. LTGRAY_BRUSH        =  1
  592. GRAY_BRUSH          =  2
  593. DKGRAY_BRUSH        =  3
  594. BLACK_BRUSH         =  4
  595. NULL_BRUSH          =  5
  596. HOLLOW_BRUSH        =  5
  597. ;
  598. ; Brush Styles
  599. ;
  600. BS_SOLID        =   0
  601. BS_NULL         =   1
  602. BS_HOLLOW       =   BS_NULL
  603. BS_HATCHED      =   2
  604. BS_PATTERN      =   3
  605. BS_INDEXED      =   4
  606. BS_DIBPATTERN   =   5
  607. ;************************** system menu ****************************
  608. ;
  609. ;  System Menu Command Values
  610. ;
  611. SC_SIZE        = 0F000h
  612. SC_MOVE        = 0F010h
  613. SC_MINIMIZE    = 0F020h
  614. SC_MAXIMIZE    = 0F030h
  615. SC_NEXTWINDOW  = 0F040h
  616. SC_PREVWINDOW  = 0F050h
  617. SC_CLOSE       = 0F060h
  618. SC_VSCROLL     = 0F070h
  619. SC_HSCROLL     = 0F080h
  620. SC_MOUSEMENU   = 0F090h
  621. SC_KEYMENU     = 0F100h
  622. SC_ARRANGE     = 0F110h
  623. SC_RESTORE     = 0F120h
  624. SC_TASKLIST    = 0F130h
  625. SC_SCREENSAVE  = 0F140h
  626. SC_HOTKEY      = 0F150h
  627. SC_ICON        = SC_MINIMIZE
  628. SC_ZOOM        = SC_MAXIMIZE
  629. ;
  630. ; HEAP constants, WINNT style
  631. ;
  632. HEAP_NO_SERIALIZE               =00000001h
  633. HEAP_GROWABLE                   =00000002h
  634. HEAP_GENERATE_EXCEPTIONS        =00000004h
  635. HEAP_ZERO_MEMORY                =00000008h
  636. HEAP_REALLOC_IN_PLACE_ONLY      =00000010h
  637. HEAP_TAIL_CHECKING_ENABLED      =00000020h
  638. HEAP_FREE_CHECKING_ENABLED      =00000040h
  639. HEAP_DISABLE_COALESCE_ON_FREE   =00000080h
  640. HEAP_CREATE_ALIGN_16            =00010000h
  641. HEAP_CREATE_ENABLE_TRACING      =00020000h
  642. HEAP_MAXIMUM_TAG                =0FFFh
  643. HEAP_PSEUDO_TAG_FLAG            =8000h
  644. HEAP_TAG_SHIFT                  =16
  645. ;
  646. ;************************* System Metrics ******************************
  647. ;
  648. ; GetSystemMetrics() codes
  649. SM_CXSCREEN           =  0
  650. SM_CYSCREEN           =  1
  651. SM_CXVSCROLL          =  2
  652. SM_CYHSCROLL          =  3
  653. SM_CYCAPTION          =  4
  654. SM_CXBORDER           =  5
  655. SM_CYBORDER           =  6
  656. SM_CXDLGFRAME         =  7
  657. SM_CYDLGFRAME         =  8
  658. SM_CYVTHUMB           =  9
  659. SM_CXHTHUMB           =  10
  660. SM_CXICON             =  11
  661. SM_CYICON             =  12
  662. SM_CXCURSOR           =  13
  663. SM_CYCURSOR           =  14
  664. SM_CYMENU             =  15
  665. SM_CXFULLSCREEN       =  16
  666. SM_CYFULLSCREEN       =  17
  667. SM_CYKANJIWINDOW      =  18
  668. SM_MOUSEPRESENT       =  19
  669. SM_CYVSCROLL          =  20
  670. SM_CXHSCROLL          =  21
  671. SM_DEBUG              =  22
  672. SM_SWAPBUTTON         =  23
  673. SM_RESERVED1          =  24
  674. SM_RESERVED2          =  25
  675. SM_RESERVED3          =  26
  676. SM_RESERVED4          =  27
  677. SM_CXMIN              =  28
  678. SM_CYMIN              =  29
  679. SM_CXSIZE             =  30
  680. SM_CYSIZE             =  31
  681. SM_CXFRAME            =  32
  682. SM_CYFRAME            =  33
  683. SM_CXMINTRACK         =  34
  684. SM_CYMINTRACK         =  35
  685. IFNDEF NOWIN31
  686. SM_CXDOUBLECLK        =  36
  687. SM_CYDOUBLECLK        =  37
  688. SM_CXICONSPACING      =  38
  689. SM_CYICONSPACING      =  39
  690. SM_MENUDROPALIGNMENT  =  40
  691. SM_PENWINDOWS         =  41
  692. SM_DBCSENABLED        =  42
  693. ENDIF
  694. SM_CMETRICSMAX        =  43