home *** CD-ROM | disk | FTP | other *** search
/ Reverse Code Engineering RCE CD +sandman 2000 / ReverseCodeEngineeringRceCdsandman2000.iso / RCE / Mib / CMESOUR.ZIP / WIN32.INC < prev   
Text File  |  1998-05-31  |  35KB  |  1,286 lines

  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.  
  20. UCHAR   EQU <db>
  21. USHORT  EQU <dw>  ; used only if we really need 16 bits
  22. UINT    EQU <dd>  ; 32 bits for WIN32
  23. ULONG   EQU <dd>
  24.  
  25. ;*******************************************************************
  26. ;
  27. ;       Window's externals
  28. ;
  29. ;*******************************************************************
  30. extrn     Beep:PROC
  31. extrn    BeginPaint:PROC
  32. extrn     BeginPath:PROC
  33. extrn     Chord:PROC
  34. extrn    CloseHandle:PROC
  35. extrn     CompareFileTime:PROC
  36. extrn     CopyImage:PROC
  37. extrn     CreateDirectoryA:PROC
  38. extrn     CreateFileA:PROC
  39. extrn    CreateToolbar:PROC
  40. extrn    CreateToolbarEx:PROC
  41. extrn    CreateWindowExA:PROC
  42. extrn     CreateFileA:PROC
  43. extrn     DdeGetData:PROC
  44. extrn    DefWindowProcA:PROC
  45. extrn    DeleteDC:PROC
  46. extrn    DialogBoxParamA:PROC
  47. extrn    DispatchMessageA:PROC
  48. extrn     Escape:PROC
  49. extrn    EndDialog:PROC
  50. extrn    EndDoc:PROC
  51. extrn    EndPaint:PROC
  52. extrn    EndPage:PROC
  53. extrn     EndPath:PROC
  54. extrn     ExitThread:PROC
  55. extrn    ExitProcess:PROC
  56. extrn     FillRect:PROC
  57. extrn    FindWindowA:PROC
  58. extrn     FindWindowExA:PROC
  59. extrn    GetDC:PROC
  60. extrn    GetDlgItem:PROC
  61. extrn    GetDlgItemTextA:PROC
  62. extrn     GetExitCodeProcess:PROC
  63. extrn    GetLocalTime:PROC
  64. extrn    GetMessageA:PROC
  65. extrn     GetClientRect:PROC
  66. extrn     GetCurrentProcess:PROC
  67. extrn     GetMenuItemID:PROC
  68. extrn    GetModuleHandleA:PROC
  69. extrn    GetOpenFileNameA:PROC
  70. extrn     GetPrivateProfileStringA:PROC
  71. extrn    GetSaveFileNameA:PROC
  72. extrn    GetStockObject:PROC
  73. extrn    GetSystemMetrics:PROC
  74. extrn    GetTextMetricsA:PROC
  75. extrn     GetVolumeInformationA:PROC
  76. extrn     GetCharWidth32A:PROC
  77. extrn     GetWindowTextA:PROC
  78. extrn     GetWindowThreadProcessId:PROC
  79. extrn    GetWindowRect:PROC
  80. extrn    GlobalAlloc:PROC
  81. extrn    GlobalFree:PROC
  82. extrn     ImageList_GetImageInfo:PROC
  83. extrn     ImageList_AddMasked:PROC
  84. extrn    InitCommonControls:PROC
  85. extrn     InitializeSecurityDescriptor:PROC
  86. extrn    InvalidateRect:PROC
  87. extrn    KillTimer:PROC
  88. extrn    LoadAcceleratorsA:PROC
  89. extrn    LoadCursorA:PROC
  90. extrn    LoadIconA:PROC
  91. extrn    LoadMenuA:PROC
  92. extrn    LoadStringA:PROC
  93. extrn     LocalSize:PROC
  94. extrn     lstrcmp:PROC
  95. extrn    MessageBeep:PROC
  96. extrn    MessageBoxA:PROC
  97. extrn    MoveWindow:PROC
  98. extrn    OpenFile:PROC
  99. extrn     OpenProcess:PROC
  100. extrn    PostQuitMessage:PROC
  101. extrn    PrintDlgA:PROC
  102. extrn     QueryPerformanceCounter:PROC
  103. extrn    ReadFile:PROC
  104. extrn    RegisterClassA:PROC
  105. extrn     ReleaseDC:PROC
  106. extrn    SendMessageA:PROC
  107. extrn     SelectClipPath:PROC
  108. extrn     SendDlgItemMessageA:PROC
  109. extrn     SetBkMode:PROC
  110. extrn     SetCapture:PROC
  111. extrn     SetColorSpace:PROC
  112. extrn     SetDlgItemTextA:PROC
  113. extrn    SetFocus:PROC
  114. extrn     SetServiceObjectSecurity:PROC
  115. extrn     SetTextColor:PROC
  116. extrn    SetTimer:PROC
  117. extrn    SetWindowPos:PROC
  118. extrn     SetWindowTextA:PROC
  119. extrn     ShellExecuteA:PROC
  120. extrn    ShowWindow:PROC
  121. extrn    StartDocA:PROC
  122. extrn    StartPage:PROC
  123. extrn     TerminateProcess:PROC
  124. extrn    TextOutA:PROC
  125. extrn     ToAscii:PROC
  126. extrn     TrackPopupMenu:PROC
  127. extrn    TranslateAcceleratorA:PROC
  128. extrn    TranslateMessage:PROC
  129. extrn    UpdateWindow:PROC
  130. extrn     VirtualProtect:PROC
  131. extrn    WinHelpA:PROC
  132. extrn    WriteFile:PROC
  133. extrn     WriteProcessMemory:PROC
  134.  
  135. CreateFile     equ <CreateFileA>
  136. CreateWindowEx   equ <CreateWindowExA>
  137. DefWindowProc    equ <DefWindowProcA>
  138. DialogBoxParam   equ <DialogBoxParamA>
  139. DispatchMessage  equ <DispatchMessageA>
  140. FindWindow       equ <FindWindowA>
  141. GetDlgItemText   equ <GetDlgItemTextA>
  142. GetMessage       equ <GetMessageA>
  143. GetModuleHandle  equ <GetModuleHandleA>
  144. GetOpenFileName  equ <GetOpenFileNameA>
  145. GetSaveFileName  equ <GetSaveFileNameA>
  146. GetTextMetrics   equ <GetTextMetricsA>
  147. ;LoadAccelerators equ <LoadAcceleratorsA>
  148. LoadCursor       equ <LoadCursorA>
  149. LoadIcon         equ <LoadIconA>
  150. LoadMenu         equ <LoadMenuA>
  151. LoadString       equ <LoadStringA>
  152. MessageBox       equ <MessageBoxA>
  153. ;PrintDlg         equ <PrintDlgA>
  154. RegisterClass    equ <RegisterClassA>
  155. SendMessage      equ <SendMessageA>
  156. StartDoc         equ <StartDocA>
  157. TextOut          equ <TextOutA>
  158. ;TranslateAccelerator equ <TranslateAcceleratorA>
  159. ;WinHelp          equ <WinHelpA>
  160.  
  161.  
  162. ;
  163. ; Commands to pass to WinHelp()
  164. ;
  165. HELP_CONTEXT     = 0001h
  166. HELP_QUIT        = 0002h
  167. HELP_INDEX       = 0003h
  168. HELP_CONTENTS    = 0003h
  169. HELP_HELPONHELP  = 0004h
  170. HELP_SETINDEX    = 0005h
  171. HELP_SETCONTENTS = 0005h
  172. HELP_CONTEXTPOPUP = 0008h
  173. HELP_FORCEFILE   = 0009h
  174. HELP_KEY         = 0101h
  175. HELP_COMMAND     = 0102h
  176. HELP_PARTIALKEY  = 0105h
  177. HELP_MULTIKEY    = 0201h
  178. HELP_SETWINPOS   = 0203h
  179. HELP_CONTEXTMENU = 000ah
  180. HELP_FINDER      = 000bh
  181. HELP_WM_HELP     = 000ch
  182. HELP_SETPOPUP_POS = 000dh
  183.  
  184. HELP_TCARD             = 8000h
  185. HELP_TCARD_DATA        = 0010h
  186. HELP_TCARD_OTHER_CALLER  = 0011h
  187.  
  188. IDH_NO_HELP                =     28440
  189. IDH_MISSING_CONTEXT        =     28441
  190. IDH_GENERIC_HELP_BUTTON    =     28442
  191. IDH_OK                     =     28443
  192. IDH_CANCEL                 =     28444
  193. IDH_HELP                   =     28445
  194. ;*******************************************************************
  195. ;
  196. ;       OFSTRUCT
  197. ;
  198. ;*******************************************************************
  199. OF_READ             = 00000000h
  200. OF_WRITE            = 00000001h
  201. OF_READWRITE        = 00000002h
  202. OF_SHARE_COMPAT     = 00000000h
  203. OF_SHARE_EXCLUSIVE  = 00000010h
  204. OF_SHARE_DENY_WRITE = 00000020h
  205. OF_SHARE_DENY_READ  = 00000030h
  206. OF_SHARE_DENY_NONE  = 00000040h
  207. OF_PARSE            = 00000100h
  208. OF_DELETE           = 00000200h
  209. OF_VERIFY           = 00000400h
  210. OF_CANCEL           = 00000800h
  211. OF_CREATE           = 00001000h
  212. OF_PROMPT           = 00002000h
  213. OF_EXIST            = 00004000h
  214. OF_REOPEN           = 00008000h
  215. OFS_MAXPATHNAME     = 128
  216.  
  217. OFSTRUCT struc
  218.     cBytes UCHAR ?
  219.     fFixedDisk UCHAR ?
  220.     nErrCode USHORT ?
  221.     Reserved1 USHORT ?
  222.     Reserved2 USHORT ?
  223.     szPathName db OFS_MAXPATHNAME dup(?)
  224. OFSTRUCT ends
  225.  
  226.  
  227. ;*******************************************************************
  228. ;
  229. ;       OPENFILENAME
  230. ;
  231. ;*******************************************************************
  232. OPENFILENAME struc
  233.    lStructSize ULONG ?
  234.    hwndOwner ULONG ?
  235.    hInstance ULONG ?
  236.    lpstrFilter ULONG ?
  237.    lpstrCustomFilter ULONG ?
  238.    nMaxCustFilter ULONG ?
  239.    nFilterIndex ULONG ?
  240.    lpstrFile ULONG ?
  241.    nMaxFile ULONG ?
  242.    lpstrFileTitle ULONG ?
  243.    nMaxFileTitle ULONG ?
  244.    lpstrInitialDir ULONG ?
  245.    lpstrTitle ULONG ?
  246.    Flags ULONG ?
  247.    nFileOffset USHORT ?
  248.    nFileExtension USHORT ?
  249.    lpstrDefExt ULONG ?
  250.    lCustData ULONG ?
  251.    lpfnHook ULONG ?
  252.    lpTemplateName ULONG ?
  253. OPENFILENAME ends
  254.  
  255. OFN_READONLY              =   00000001h
  256. OFN_OVERWRITEPROMPT       =   00000002h
  257. OFN_HIDEREADONLY          =   00000004h
  258. OFN_NOCHANGEDIR           =   00000008h
  259. OFN_SHOWHELP              =   00000010h
  260. OFN_ENABLEHOOK            =   00000020h
  261. OFN_ENABLETEMPLATE        =   00000040h
  262. OFN_ENABLETEMPLATEHANDLE  =   00000080h
  263. OFN_NOVALIDATE            =   00000100h
  264. OFN_ALLOWMULTISELECT      =   00000200h
  265. OFN_EXTENSIONDIFFERENT    =   00000400h
  266. OFN_PATHMUSTEXIST         =   00000800h
  267. OFN_FILEMUSTEXIST         =   00001000h
  268. OFN_CREATEPROMPT          =   00002000h
  269. OFN_SHAREAWARE            =   00004000h
  270. OFN_NOREADONLYRETURN      =   00008000h
  271. OFN_NOTESTFILECREATE      =   00010000h
  272. OFN_NONETWORKBUTTON       =   00020000h
  273. OFN_NOLONGNAMES           =   00040000h
  274. OFN_EXPLORER              =   00080000h
  275. OFN_NODEREFERENCELINKS    =   00100000h
  276. OFN_LONGNAMES             =   00200000h
  277. OFN_SHAREFALLTHROUGH      =   2
  278. OFN_SHARENOWARN           =   1
  279. OFN_SHAREWARN             =   0
  280.  
  281. ; =================
  282. ; memory attributes
  283. ; =================
  284. ;
  285. PAGE_NOACCESS            equ    00000001h
  286. PAGE_READONLY            equ    00000002h
  287. PAGE_READWRITE            equ    00000004h
  288. PAGE_WRITECOPY            equ    00000008h
  289. PAGE_EXECUTE            equ    00000010h
  290. PAGE_EXECUTE_READ        equ    00000020h
  291. PAGE_EXECUTE_READWRITE        equ    00000040h
  292. PAGE_EXECUTE_WRITECOPY        equ    00000080h
  293. PAGE_GUARD            equ    00000100h
  294. PAGE_NOCACHE            equ    00000200h
  295. ;
  296. MEM_COMMIT            equ    00001000h
  297. MEM_RESERVE            equ    00002000h
  298. MEM_DECOMMIT            equ    00004000h
  299. MEM_RELEASE            equ    00008000h
  300. MEM_FREE            equ    00010000h
  301. MEM_PRIVATE            equ    00020000h
  302. MEM_MAPPED            equ    00040000h
  303. MEM_TOP_DOWN            equ    00100000h
  304. ;
  305. SEC_FILE            equ    00800000h
  306. SEC_IMAGE            equ    01000000h
  307. SEC_RESERVE            equ    04000000h
  308. SEC_COMMIT            equ    08000000h
  309. SEC_NOCACHE            equ    10000000h
  310. ;
  311. MEM_IMAGE            equ    SEC_IMAGE
  312. ;
  313. SECTION_QUERY            equ    00000001h
  314. SECTION_MAP_WRITE        equ    00000002h
  315. SECTION_MAP_READ        equ    00000004h
  316. SECTION_MAP_EXECUTE        equ    00000008h
  317. SECTION_EXTEND_SIZE        equ    00000010h
  318. ;
  319. FILE_MAP_COPY            equ    SECTION_QUERY
  320. FILE_MAP_WRITE            equ    SECTION_MAP_WRITE
  321. FILE_MAP_READ            equ    SECTION_MAP_READ
  322. FILE_MAP_ALL_ACCESS        equ    SECTION_ALL_ACCESS
  323.  
  324.  
  325. ;*******************************************************************
  326. ;
  327. ;       PRINTDLG
  328. ;
  329. ;*******************************************************************
  330. PRINTDLG struc
  331.    pdlStructSize ULONG ?
  332.    pdhwndOwner ULONG ?
  333.    pdhDevMode ULONG ?
  334.    pdhDevNames ULONG ?
  335.    pdhDC ULONG ?
  336.    pdFlags ULONG ?
  337.    pdnFromPage USHORT ?
  338.    pdnToPage USHORT ?
  339.    pdnMinPage USHORT ?
  340.    pdnMaxPage USHORT ?
  341.    pdnCopies USHORT ?
  342.    pdhInstance ULONG ?
  343.    pdlCustData ULONG  ?
  344.    pdlpfnPrintHook ULONG ?
  345.    pdlpfnSetupHook ULONG ?
  346.    pdlpPrintTemplateName ULONG ?
  347.    pdlpSetupTemplateName ULONG ?
  348.    pdhPrintTemplate ULONG ?
  349.    pdhSetupTemplate ULONG ?
  350. PRINTDLG ends
  351.  
  352. PD_ALLPAGES              =    00000000h
  353. PD_SELECTION             =    00000001h
  354. PD_PAGENUMS              =    00000002h
  355. PD_NOSELECTION           =    00000004h
  356. PD_NOPAGENUMS            =    00000008h
  357. PD_COLLATE               =    00000010h
  358. PD_PRINTTOFILE           =    00000020h
  359. PD_PRINTSETUP            =    00000040h
  360. PD_NOWARNING             =    00000080h
  361. PD_RETURNDC              =    00000100h
  362. PD_RETURNIC              =    00000200h
  363. PD_RETURNDEFAULT         =    00000400h
  364. PD_SHOWHELP              =    00000800h
  365. PD_ENABLEPRINTHOOK       =    00001000h
  366. PD_ENABLESETUPHOOK       =    00002000h
  367. PD_ENABLEPRINTTEMPLATE   =    00004000h
  368. PD_ENABLESETUPTEMPLATE   =    00008000h
  369. PD_ENABLEPRINTTEMPLATEHANDLE = 00010000h
  370. PD_ENABLESETUPTEMPLATEHANDLE  = 00020000h
  371. PD_USEDEVMODECOPIES         = 00040000h
  372. PD_USEDEVMODECOPIESANDCOLLATE = 00040000h
  373. PD_DISABLEPRINTTOFILE     =   00080000h
  374. PD_HIDEPRINTTOFILE        =   00100000h
  375. PD_NONETWORKBUTTON        =   00200000h
  376.  
  377. DOCINFO struc
  378.     cbSize UINT ?
  379.     lpszDocName ULONG ?
  380.     lpszOutput ULONG ?
  381.     lpszDatatype ULONG ?
  382.     fwType ULONG ?
  383. DOCINFO ends
  384.  
  385.  
  386. ;*******************************************************************
  387. ;
  388. ;       SYSTEMTIME
  389. ;
  390. ;*******************************************************************
  391. SYSTEMTIME struc
  392.     wYear USHORT ?
  393.     wMonth USHORT ?
  394.     wDayOfWeek USHORT ?
  395.     wDay USHORT ?
  396.     wHour USHORT ?
  397.     wMinute USHORT ?
  398.     wSecond USHORT ?
  399.     wMilliseconds USHORT ?
  400. SYSTEMTIME ends
  401. ;*******************************************************************
  402. ;
  403. ;       TBBUTTON
  404. ;
  405. ;*******************************************************************
  406. TBBUTTON struc
  407.     iBitmap UINT ?
  408.     idCommand UINT ?
  409.     fsState UCHAR ?
  410.     fsStyle UCHAR ?
  411.     bReserved db 2 dup(?)
  412.     dwData ULONG ?
  413.     iString UINT ?
  414. TBBUTTON ends
  415.  
  416. STD_CUT             =    0
  417. STD_COPY            =    1
  418. STD_PASTE           =    2
  419. STD_UNDO            =    3
  420. STD_REDOW           =    4
  421. STD_DELETE          =    5
  422. STD_FILENEW         =    6
  423. STD_FILEOPEN        =    7
  424. STD_FILESAVE        =    8
  425. STD_PRINTPRE        =    9
  426. STD_PROPERTIES      =    10
  427. STD_HELP            =    11
  428. STD_FIND            =    12
  429. STD_REPLACE         =    13
  430. STD_PRINT           =    14
  431.  
  432. TBSTATE_CHECKED       =  01h
  433. TBSTATE_PRESSED       =  02h
  434. TBSTATE_ENABLED       =  04h
  435. TBSTATE_HIDDEN        =  08h
  436. TBSTATE_INDETERMINATE =  10h
  437. TBSTATE_WRAP          =  20h
  438.  
  439. TBSTYLE_BUTTON        =  00h
  440. TBSTYLE_SEP           =  01h
  441. TBSTYLE_CHECK         =  02h
  442. TBSTYLE_GROUP         =  04h
  443. TBSTYLE_CHECKGROUP    =  TBSTYLE_GROUP+TBSTYLE_CHECK
  444.  
  445. TBSTYLE_TOOLTIPS      =  0100h
  446. TBSTYLE_WRAPABLE      =  0200h
  447. TBSTYLE_ALTDRAG       =  0400h
  448.  
  449. TB_ENABLEBUTTON       =  (WM_USER + 1)
  450. TB_CHECKBUTTON        =  (WM_USER + 2)
  451. TB_PRESSBUTTON        =  (WM_USER + 3)
  452. TB_HIDEBUTTON         =  (WM_USER + 4)
  453. TB_INDETERMINATE      =  (WM_USER + 5)
  454. TB_ISBUTTONENABLED    =  (WM_USER + 9)
  455. TB_ISBUTTONCHECKED    =  (WM_USER + 10)
  456. TB_ISBUTTONPRESSED    =  (WM_USER + 11)
  457. TB_ISBUTTONHIDDEN     =  (WM_USER + 12)
  458. TB_ISBUTTONINDETERMINATE = (WM_USER + 13)
  459. TB_SETSTATE           =  (WM_USER + 17)
  460. TB_GETSTATE           =  (WM_USER + 18)
  461. TB_ADDBITMAP          =  (WM_USER + 19)
  462. TB_SAVERESTOREA       =  (WM_USER + 26)
  463. TB_SAVERESTOREW       =  (WM_USER + 76)
  464. TB_CUSTOMIZE          =  (WM_USER + 27)
  465. TB_ADDSTRINGA         =  (WM_USER + 28)
  466. TB_ADDSTRINGW         =  (WM_USER + 77)
  467. TB_GETITEMRECT        =  (WM_USER + 29)
  468. TB_BUTTONSTRUCTSIZE   =  (WM_USER + 30)
  469. TB_SETBUTTONSIZE      =  (WM_USER + 31)
  470. TB_SETBITMAPSIZE      =  (WM_USER + 32)
  471. TB_AUTOSIZE           =  (WM_USER + 33)
  472. TB_GETTOOLTIPS        =  (WM_USER + 35)
  473. TB_SETTOOLTIPS        =  (WM_USER + 36)
  474. TB_SETPARENT          =  (WM_USER + 37)
  475. TB_SETROWS            =  (WM_USER + 39)
  476. TB_GETROWS            =  (WM_USER + 40)
  477. TB_SETCMDID           =  (WM_USER + 42)
  478. TB_CHANGEBITMAP       =  (WM_USER + 43)
  479. TB_GETBITMAP          =  (WM_USER + 44)
  480. TB_GETBUTTONTEXTA     =  (WM_USER + 45)
  481. TB_GETBUTTONTEXTW     =  (WM_USER + 75)
  482. TB_REPLACEBITMAP      =  (WM_USER + 46)
  483.  
  484. ;====== COMMON CONTROL STYLES =====
  485.  
  486. CCS_TOP            =     00000001h
  487. CCS_NOMOVEY        =     00000002h
  488. CCS_BOTTOM         =     00000003h
  489. CCS_NORESIZE       =     00000004h
  490. CCS_NOPARENTALIGN  =     00000008h
  491. CCS_ADJUSTABLE     =     00000020h
  492. CCS_NODIVIDER      =     00000040h
  493.  
  494. ;*******************************************************************
  495. ;
  496. ;       NMHDR
  497. ;
  498. ;*******************************************************************
  499. NMHDR struc
  500.     hwndFrom UINT ?
  501.     idFrom UINT ?
  502.     code UINT ?
  503. NMHDR ends
  504.  
  505. ;*******************************************************************
  506. ;
  507. ;       TOOLTIPTEXT
  508. ;
  509. ;*******************************************************************
  510. TOOLTIPTEXT struc
  511.     hdr NMHDR <?>
  512.     lpszText ULONG ?
  513.     szText db 80 dup(?)
  514.     hinst ULONG ?
  515.     uFlags UINT ?
  516. TOOLTIPTEXT ends
  517.  
  518. TTN_NEEDTEXT equ 0FFFFFDF8h
  519. ;*******************************************************************
  520. ;
  521. ;       TEXTMETRIC
  522. ;
  523. ;*******************************************************************
  524. TEXTMETRIC struc
  525.     tmHeight ULONG ?
  526.     tmAscent ULONG ?
  527.     tmDescent ULONG ?
  528.     tmInternalLeading ULONG ?
  529.     tmExternalLeading ULONG ?
  530.     tmAveCharWidth ULONG ?
  531.     tmMaxCharWidth ULONG ?
  532.     tmWeight ULONG ?
  533.     tmOverhang ULONG ?
  534.     tmDigitizedAspectX ULONG ?
  535.     tmDigitizedAspectY ULONG ?
  536.     tmFirstChar UCHAR ?
  537.     tmLastChar UCHAR ?
  538.     tmDefaultChar UCHAR ?
  539.     tmBreakChar UCHAR ?
  540.     tmItalic UCHAR ?
  541.     tmUnderlined UCHAR ?
  542.     tmStruckOut UCHAR ?
  543.     tmPitchAndFamily UCHAR ?
  544.     tmCharSet UCHAR ?
  545. TEXTMETRIC ends
  546. ;*******************************************************************
  547. ;
  548. ;       Rectangle
  549. ;
  550. ;*******************************************************************
  551.  
  552. RECT    struc
  553.         rcLeft          UINT ?
  554.         rcTop           UINT ?
  555.         rcRight         UINT ?
  556.         rcBottom        UINT ?
  557. RECT    ends
  558.  
  559. ;*******************************************************************
  560. ;
  561. ;  Window Class structure
  562. ;
  563. ;*******************************************************************
  564.  
  565. WNDCLASS struc
  566.         clsStyle          UINT     ?
  567.         clsLpfnWndProc    ULONG    ?
  568.         clsCbClsExtra     UINT     ?
  569.         clsCbWndExtra     UINT     ?
  570.         clsHInstance      UINT     ?
  571.         clsHIcon          UINT     ?
  572.         clsHCursor        UINT     ?
  573.         clsHbrBackground  UINT     ?
  574.         clsLpszMenuName   ULONG    ?
  575.         clsLpszClassName  ULONG    ?
  576.                 hIconSm           UINT     ?
  577. WNDCLASS ends
  578.  
  579. PAINTSTRUCT STRUC
  580.     PShdc         UINT             ?
  581.     PSfErase      UINT             ?
  582.     PSrcPaint     UCHAR            size RECT dup(?)
  583.     PSfRestore    UINT             ?
  584.     PSfIncUpdate  UINT             ?
  585.     PSrgbReserved UCHAR            32 dup(?)
  586. PAINTSTRUCT ENDS
  587.  
  588. MSGSTRUCT struc
  589.     msHWND          UINT    ?
  590.     msMESSAGE       UINT    ?
  591.     msWPARAM        UINT    ?
  592.     msLPARAM        ULONG   ?
  593.     msTIME          ULONG   ?
  594.     msPT            ULONG   2 dup(?)
  595. MSGSTRUCT ends
  596.  
  597. MINMAXINFO struc
  598.   res_x               dd ?
  599.   res_y               dd ?
  600.   maxsize_x           dd ?
  601.   maxsize_y           dd ?
  602.   maxposition_x       dd ?
  603.   maxposition_y       dd ?
  604.   mintrackposition_x  dd ?
  605.   mintrackposition_y  dd ?
  606.   maxtrackposition_x  dd ?
  607.   maxtrackposition_y  dd ?
  608. MINMAXINFO ends
  609. ;
  610. ;   System Metrics
  611. ;
  612. SM_CXSCREEN         =    0
  613. SM_CYSCREEN         =    1
  614. SM_CXVSCROLL        =    2
  615. SM_CYHSCROLL        =    3
  616. SM_CYCAPTION        =    4
  617. SM_CXBORDER         =    5
  618. SM_CYBORDER         =    6
  619. SM_CXDLGFRAME       =    7
  620. SM_CYDLGFRAME       =    8
  621. SM_CYVTHUMB         =    9
  622. SM_CXHTHUMB         =    10
  623. SM_CXICON           =    11
  624. SM_CYICON           =    12
  625. SM_CXCURSOR         =    13
  626. SM_CYCURSOR         =    14
  627. SM_CYMENU           =    15
  628. SM_CXFULLSCREEN     =    16
  629. SM_CYFULLSCREEN     =    17
  630. SM_CYKANJIWINDOW    =    18
  631. SM_MOUSEPRESENT     =    19
  632. SM_CYVSCROLL        =    20
  633. SM_CXHSCROLL        =    21
  634. SM_DEBUG            =    22
  635. SM_SWAPBUTTON       =    23
  636. SM_RESERVED1        =    24
  637. SM_RESERVED2        =    25
  638. SM_RESERVED3        =    26
  639. SM_RESERVED4        =    27
  640. SM_CXMIN            =    28
  641. SM_CYMIN            =    29
  642. SM_CXSIZE           =    30
  643. SM_CYSIZE           =    31
  644. SM_CXFRAME          =    32
  645. SM_CYFRAME          =    33
  646. SM_CXMINTRACK       =    34
  647. SM_CYMINTRACK       =    35
  648. SM_CXDOUBLECLK      =    36
  649. SM_CYDOUBLECLK      =    37
  650. SM_CXICONSPACING    =    38
  651. SM_CYICONSPACING    =    39
  652. SM_MENUDROPALIGNMENT =    40
  653. SM_PENWINDOWS       =    41
  654. SM_DBCSENABLED      =    42
  655. SM_CMOUSEBUTTONS    =    43
  656. SM_CXFIXEDFRAME     equ      <SM_CXDLGFRAME>
  657. SM_CYFIXEDFRAME     equ      <SM_CYDLGFRAME>
  658. SM_CXSIZEFRAME      equ      <SM_CXFRAME>
  659. SM_CYSIZEFRAME      equ      <SM_CYFRAME>
  660. SM_SECURE           =    44
  661. SM_CXEDGE           =    45
  662. SM_CYEDGE           =    46
  663. SM_CXMINSPACING     =    47
  664. SM_CYMINSPACING     =    48
  665. SM_CXSMICON         =    49
  666. SM_CYSMICON         =    50
  667. SM_CYSMCAPTION      =    51
  668. SM_CXSMSIZE         =    52
  669. SM_CYSMSIZE         =    53
  670. SM_CXMENUSIZE       =    54
  671. SM_CYMENUSIZE       =    55
  672. SM_ARRANGE          =    56
  673. SM_CXMINIMIZED      =    57
  674. SM_CYMINIMIZED      =    58
  675. SM_CXMAXTRACK       =    59
  676. SM_CYMAXTRACK       =    60
  677. SM_CXMAXIMIZED      =    61
  678. SM_CYMAXIMIZED      =    62
  679. SM_NETWORK          =    63
  680. SM_CLEANBOOT        =    67
  681. SM_CXDRAG           =    68
  682. SM_CYDRAG           =    69
  683. SM_SHOWSOUNDS       =    70
  684. SM_CXMENUCHECK      =    71
  685. SM_CYMENUCHECK      =    72
  686. SM_SLOWMACHINE      =    73
  687. SM_MIDEASTENABLED   =    74
  688. SM_CMETRICS         =    75
  689. ;
  690. ;  Stock Logical Objects
  691. ;
  692. WHITE_BRUSH         =  0
  693. LTGRAY_BRUSH        =  1
  694. GRAY_BRUSH          =  2
  695. DKGRAY_BRUSH        =  3
  696. BLACK_BRUSH         =  4
  697. NULL_BRUSH          =  5
  698. HOLLOW_BRUSH        =  5
  699. WHITE_PEN           =  6
  700. BLACK_PEN           =  7
  701. NULL_PEN            =  8
  702. DOT_MARKER          =  9
  703. OEM_FIXED_FONT      = 10
  704. ANSI_FIXED_FONT     = 11
  705. ANSI_VAR_FONT       = 12
  706. SYSTEM_FONT         = 13
  707. DEVICE_DEFAULT_FONT = 14
  708. DEFAULT_PALETTE     = 15
  709. SYSTEM_FIXED_FONT   = 16
  710.  
  711. ; ===================
  712. ; edit control styles
  713. ; ===================
  714. ;
  715. ES_LEFT                equ    0000h
  716. ES_CENTER            equ    0001h
  717. ES_RIGHT            equ    0002h
  718. ES_MULTILINE            equ    0004h
  719. ES_UPPERCASE            equ    0008h
  720. ES_LOWERCASE            equ    0010h
  721. ES_PASSWORD            equ    0020h
  722. ES_AUTOVSCROLL            equ    0040h
  723. ES_AUTOHSCROLL            equ    0080h
  724. ES_NOHIDESEL            equ    0100h
  725. ES_OEMCONVERT            equ    0400h
  726. ES_READONLY            equ    0800h
  727. ES_WANTRETURN            equ    1000h
  728. ES_NUMBER            equ    2000h
  729. ;
  730.  
  731. ;
  732. ; =============
  733. ; dialog styles
  734. ; =============
  735. ;
  736. DS_ABSALIGN            equ    0001h
  737. DS_SYSMODAL            equ    0002h
  738. DS_3DLOOK            equ    0004h
  739. DS_FIXEDSYS            equ    0008h
  740. DS_NOFAILCREATE            equ    0010h
  741. DS_LOCALEDIT            equ    0020h    ;edit items get local storage
  742. DS_SETFONT            equ    0040h    ;user specified font
  743. DS_MODALFRAME            equ    0080h    ;combinable with WS_CAPTION
  744. DS_NOIDLEMSG            equ    0100h    ;don't send WM_ENTERIDLE
  745. DS_SETFOREGROUND        equ    0200h
  746. DS_CONTROL            equ    0400h
  747. DS_CENTER            equ    0800h
  748. DS_CENTERMOUSE            equ    1000h
  749. DS_CONTEXTHELP            equ    2000h
  750. ;
  751. DS_MODAL            equ    DS_ABSALIGN+DS_MODALFRAME
  752. DS_MODELESS            equ    DS_ABSALIGN
  753. ;
  754. ;------------------------------------------------------------------------------
  755.  
  756. ;
  757. ; Brush Styles
  758. ;
  759. BS_SOLID        =   0
  760. BS_NULL         =   1
  761. BS_HOLLOW       =   BS_NULL
  762. BS_HATCHED      =   2
  763. BS_PATTERN      =   3
  764. BS_INDEXED      =   4
  765. BS_DIBPATTERN   =   5
  766. ;
  767. ; Hatch Styles
  768. ;
  769. HS_HORIZONTAL   =   0       ; -----
  770. HS_VERTICAL     =   1       ; |||||
  771. HS_FDIAGONAL    =   2       ; \\\\\
  772. HS_BDIAGONAL    =   3       ; /////
  773. HS_CROSS        =   4       ; +++++
  774. HS_DIAGCROSS    =   5       ; xxxxx
  775. ;
  776. ; Pen Styles
  777. ;
  778. PS_SOLID        =   0
  779. PS_DASH         =   1       ; -------
  780. PS_DOT          =   2       ; .......
  781. PS_DASHDOT      =   3       ; _._._._
  782. PS_DASHDOTDOT   =   4       ; _.._.._
  783. PS_NULL         =   5
  784. PS_INSIDEFRAME  =   6
  785.  
  786. ;
  787. ;  Window State Messages
  788. ;
  789. IFNDEF  NOWM
  790. WM_STATE            = 0000H
  791.  
  792. WM_NULL             = 0000h
  793. WM_CREATE           = 0001h
  794. WM_DESTROY          = 0002h
  795. WM_MOVE             = 0003h
  796. WM_SIZE             = 0005h
  797. WM_ACTIVATE         = 0006h
  798. WM_SETFOCUS         = 0007h
  799. WM_KILLFOCUS        = 0008h
  800. WM_ENABLE           = 000Ah
  801. WM_SETREDRAW        = 000Bh
  802. WM_SETTEXT          = 000Ch
  803. WM_GETTEXT          = 000Dh
  804. WM_GETTEXTLENGTH    = 000Eh
  805. WM_PAINT            = 000Fh
  806. WM_CLOSE            = 0010h
  807. WM_QUERYENDSESSION  = 0011h
  808. WM_QUIT             = 0012h
  809. WM_QUERYOPEN        = 0013h
  810. WM_ERASEBKGND       = 0014h
  811. WM_SYSCOLORCHANGE   = 0015h
  812. WM_ENDSESSION       = 0016h
  813. WM_SYSTEMERROR      = 0017h
  814. WM_SHOWWINDOW       = 0018h
  815. WM_CTLCOLOR         = 0019h
  816. WM_WININICHANGE     = 001Ah
  817. WM_DEVMODECHANGE    = 001Bh
  818. WM_ACTIVATEAPP      = 001Ch
  819. WM_FONTCHANGE       = 001Dh
  820. WM_TIMECHANGE       = 001Eh
  821. WM_CANCELMODE       = 001Fh
  822. WM_SETCURSOR        = 0020h
  823. WM_MOUSEACTIVATE    = 0021h
  824. WM_CHILDACTIVATE    = 0022h
  825. WM_QUEUESYNC        = 0023h
  826. WM_GETMINMAXINFO    = 0024h
  827. WM_PAINTICON        = 0026h
  828. WM_ICONERASEBKGND   = 0027h
  829. WM_NEXTDLGCTL       = 0028h
  830. WM_SPOOLERSTATUS    = 002Ah
  831. WM_DRAWITEM         = 002Bh
  832. WM_MEASUREITEM      = 002Ch
  833. WM_DELETEITEM       = 002Dh
  834. WM_VKEYTOITEM       = 002Eh
  835. WM_CHARTOITEM       = 002Fh
  836. WM_SETFONT          = 0030h
  837. WM_GETFONT          = 0031h
  838. WM_QUERYDRAGICON    = 0037h
  839. WM_COMPAREITEM      = 0039h
  840. WM_COMPACTING       = 0041h
  841. WM_COMMNOTIFY       = 0044h
  842. WM_WINDOWPOSCHANGING= 0046h
  843. WM_WINDOWPOSCHANGED = 0047h
  844. WM_POWER            = 0048h
  845. WM_NOTIFY           = 004eh
  846.  
  847. WM_NCCREATE         = 0081h
  848. WM_NCDESTROY        = 0082h
  849. WM_NCCALCSIZE       = 0083h
  850. WM_NCHITTEST        = 0084h
  851. WM_NCPAINT          = 0085h
  852. WM_NCACTIVATE       = 0086h
  853. WM_GETDLGCODE       = 0087h
  854. WM_NCMOUSEMOVE      = 00A0h
  855. WM_NCLBUTTONDOWN    = 00A1h
  856. WM_NCLBUTTONUP      = 00A2h
  857. WM_NCLBUTTONDBLCLK  = 00A3h
  858. WM_NCRBUTTONDOWN    = 00A4h
  859. WM_NCRBUTTONUP      = 00A5h
  860. WM_NCRBUTTONDBLCLK  = 00A6h
  861. WM_NCMBUTTONDOWN    = 00A7h
  862. WM_NCMBUTTONUP      = 00A8h
  863. WM_NCMBUTTONDBLCLK  = 00A9h
  864.  
  865. WM_KEYFIRST         = 0100h
  866. WM_KEYDOWN          = 0100h
  867. WM_KEYUP            = 0101h
  868. WM_CHAR             = 0102h
  869. WM_DEADCHAR         = 0103h
  870. WM_SYSKEYDOWN       = 0104h
  871. WM_SYSKEYUP         = 0105h
  872. WM_SYSCHAR          = 0106h
  873. WM_SYSDEADCHAR      = 0107h
  874. WM_KEYLAST          = 0108h
  875.  
  876. WM_INITDIALOG       = 0110h
  877. WM_COMMAND          = 0111h
  878. WM_SYSCOMMAND       = 0112h
  879. WM_TIMER            = 0113h
  880. WM_HSCROLL          = 0114h
  881. WM_VSCROLL          = 0115h
  882. WM_INITMENU         = 0116h
  883. WM_INITMENUPOPUP    = 0117h
  884. WM_MENUSELECT       = 011Fh
  885. WM_MENUCHAR         = 0120h
  886. WM_ENTERIDLE        = 0121h
  887.  
  888.  
  889. WM_MOUSEFIRST       = 0200h
  890. WM_MOUSEMOVE        = 0200h
  891. WM_LBUTTONDOWN      = 0201h
  892. WM_LBUTTONUP        = 0202h
  893. WM_LBUTTONDBLCLK    = 0203h
  894. WM_RBUTTONDOWN      = 0204h
  895. WM_RBUTTONUP        = 0205h
  896. WM_RBUTTONDBLCLK    = 0206h
  897. WM_MBUTTONDOWN      = 0207h
  898. WM_MBUTTONUP        = 0208h
  899. WM_MBUTTONDBLCLK    = 0209h
  900. WM_MOUSELAST        = 0209h
  901.  
  902. WM_PARENTNOTIFY     = 0210h
  903. WM_MDICREATE        = 0220h
  904. WM_MDIDESTROY       = 0221h
  905. WM_MDIACTIVATE      = 0222h
  906. WM_MDIRESTORE       = 0223h
  907. WM_MDINEXT          = 0224h
  908. WM_MDIMAXIMIZE      = 0225h
  909. WM_MDITILE          = 0226h
  910. WM_MDICASCADE       = 0227h
  911. WM_MDIICONARRANGE   = 0228h
  912. WM_MDIGETACTIVE     = 0229h
  913. WM_MDISETMENU       = 0230h
  914. WM_DROPFILES        = 0233h
  915.  
  916.  
  917. WM_CUT              = 0300h
  918. WM_COPY             = 0301h
  919. WM_PASTE            = 0302h
  920. WM_CLEAR            = 0303h
  921. WM_UNDO             = 0304h
  922. WM_RENDERFORMAT     = 0305h
  923. WM_RENDERALLFORMATS = 0306h
  924. WM_DESTROYCLIPBOARD = 0307h
  925. WM_DRAWCLIPBOARD    = 0308h
  926. WM_PAINTCLIPBOARD   = 0309h
  927. WM_VSCROLLCLIPBOARD = 030Ah
  928. WM_SIZECLIPBOARD    = 030Bh
  929. WM_ASKCBFORMATNAME  = 030Ch
  930. WM_CHANGECBCHAIN    = 030Dh
  931. WM_HSCROLLCLIPBOARD = 030Eh
  932. WM_QUERYNEWPALETTE  = 030Fh
  933. WM_PALETTEISCHANGING = 0310h
  934. WM_PALETTECHANGED   = 0311h
  935.  
  936. WM_PENWINFIRST      equ 0380h
  937. WM_PENWINLAST       equ 038Fh
  938.  
  939. WM_COALESCE_FIRST  equ 0390h
  940. WM_COALESCE_LAST   equ 039Fh
  941.  
  942. ;  private window messages start here
  943. WM_USER             = 0400H
  944. ENDIF           ; NOWM
  945.  
  946. ; WM_MOUSEACTIVATE Return Codes
  947. MA_ACTIVATE       =  1
  948. MA_ACTIVATEANDEAT =  2
  949. MA_NOACTIVATE     =  3
  950.  
  951. ; Size message commands
  952. SIZENORMAL       = 0
  953. SIZEICONIC       = 1
  954. SIZEFULLSCREEN   = 2
  955. SIZEZOOMSHOW     = 3
  956. SIZEZOOMHIDE     = 4
  957.  
  958. ; =====================
  959. ; static control styles
  960. ; =====================
  961. ;
  962. SS_LEFT                equ    0000h
  963. SS_CENTER            equ    0001h
  964. SS_RIGHT            equ    0002h
  965. SS_ICON                equ    0003h
  966. SS_BLACKRECT            equ    0004h
  967. SS_GRAYRECT            equ    0005h
  968. SS_WHITERECT            equ    0006h
  969. SS_BLACKFRAME            equ    0007h
  970. SS_GRAYFRAME            equ    0008h
  971. SS_WHITEFRAME            equ    0009h
  972. SS_USERITEM            equ    000Ah
  973. SS_SIMPLE            equ    000Bh
  974. SS_LEFTNOWORDWRAP        equ    000Ch
  975. SS_BITMAP            equ    000Eh
  976. SS_OWNERDRAW            equ    000Dh
  977. SS_ENHMETAFILE            equ    000Fh
  978. SS_ETCHEDHORZ            equ    0010h
  979. SS_ETCHEDVERT            equ    0011h
  980. SS_ETCHEDFRAME            equ    0012h
  981. SS_TYPEMASK            equ    001Fh
  982. SS_NOPREFIX            equ    0080h
  983. SS_NOTIFY            equ    0100h
  984. SS_CENTERIMAGE            equ    0200h
  985. SS_RIGHTJUST            equ    0400h
  986. SS_REALSIZEIMAGE        equ    0800h
  987. SS_SUNKEN            equ    1000h
  988. ;
  989.  
  990. ; ShowWindow() Commands
  991. SW_HIDE            = 0
  992. SW_SHOWNORMAL      = 1
  993. SW_NORMAL          = 1
  994. SW_SHOWMINIMIZED   = 2
  995. SW_SHOWMAXIMIZED   = 3
  996. SW_MAXIMIZE        = 3
  997. SW_SHOWNOACTIVATE  = 4
  998. SW_SHOW            = 5
  999. SW_MINIMIZE        = 6
  1000. SW_SHOWMINNOACTIVE = 7
  1001. SW_SHOWNA          = 8
  1002. SW_RESTORE         = 9
  1003.  
  1004. ; Old ShowWindow() Commands
  1005. HIDE_WINDOW        = 0
  1006. SHOW_OPENWINDOW    = 1
  1007. SHOW_ICONWINDOW    = 2
  1008. SHOW_FULLSCREEN    = 3
  1009. SHOW_OPENNOACTIVATE= 4
  1010.  
  1011. ;  identifiers for the WM_SHOWWINDOW message
  1012. SW_PARENTCLOSING =  1
  1013. SW_OTHERZOOM     =  2
  1014. SW_PARENTOPENING =  3
  1015. SW_OTHERUNZOOM   =  4
  1016. ;
  1017. ; Key state masks for mouse messages
  1018. ;
  1019. MK_LBUTTON       = 0001h
  1020. MK_RBUTTON       = 0002h
  1021. MK_SHIFT         = 0004h
  1022. MK_CONTROL       = 0008h
  1023. MK_MBUTTON       = 0010h
  1024. ;
  1025. ; Class styles
  1026. ;
  1027. CS_VREDRAW         = 0001h
  1028. CS_HREDRAW         = 0002h
  1029. CS_KEYCVTWINDOW    = 0004H
  1030. CS_DBLCLKS         = 0008h
  1031. SBS_SIZEGRIP       = 0010h
  1032. CS_OWNDC           = 0020h
  1033. CS_CLASSDC         = 0040h
  1034. CS_PARENTDC        = 0080h
  1035. CS_NOKEYCVT        = 0100h
  1036. CS_SAVEBITS        = 0800h
  1037. CS_NOCLOSE         = 0200h
  1038. CS_BYTEALIGNCLIENT = 1000h
  1039. CS_BYTEALIGNWINDOW = 2000h
  1040. CS_GLOBALCLASS     = 4000h    ; Global window class
  1041.  
  1042. ;
  1043. ; Special CreateWindow position value
  1044. ;
  1045. CW_USEDEFAULT   EQU    8000h
  1046.  
  1047. ;
  1048. ; Windows styles
  1049. ;
  1050. WS_OVERLAPPED   = 000000000h
  1051. WS_ICONICPOPUP  = 0C0000000h
  1052. WS_POPUP        = 080000000h
  1053. WS_CHILD        = 040000000h
  1054. WS_MINIMIZE     = 020000000h
  1055. WS_VISIBLE      = 010000000h
  1056. WS_DISABLED     = 008000000h
  1057. WS_CLIPSIBLINGS = 004000000h
  1058. WS_CLIPCHILDREN = 002000000h
  1059. WS_MAXIMIZE     = 001000000h
  1060. WS_CAPTION      = 000C00000h     ; WS_BORDER | WS_DLGFRAME
  1061. WS_BORDER       = 000800000h
  1062. WS_DLGFRAME     = 000400000h
  1063. WS_VSCROLL      = 000200000h
  1064. WS_HSCROLL      = 000100000h
  1065. WS_SYSMENU      = 000080000h
  1066. WS_THICKFRAME   = 000040000h
  1067. WS_HREDRAW      = 000020000h
  1068. WS_VREDRAW      = 000010000h
  1069. WS_GROUP        = 000020000h
  1070. WS_TABSTOP      = 000010000h
  1071. WS_MINIMIZEBOX  = 000020000h
  1072. WS_MAXIMIZEBOX  = 000010000h
  1073.  
  1074. ;
  1075. ; ======================
  1076. ; extended window styles
  1077. ; ======================
  1078. ;
  1079. WS_EX_NONE            equ    00000000h
  1080. WS_EX_DLGMODALFRAME        equ    00000001h
  1081. WS_EX_NOPARENTNOTIFY        equ    00000004h
  1082. WS_EX_TOPMOST            equ    00000008h
  1083. WS_EX_ACCEPTFILES        equ    00000010h
  1084. WS_EX_TRANSPARENT        equ    00000020h
  1085. WS_EX_MDICHILD            equ    00000040h
  1086. WS_EX_TOOLWINDOW        equ    00000080h
  1087. WS_EX_WINDOWEDGE        equ    00000100h
  1088. WS_EX_CLIENTEDGE        equ    00000200h
  1089. WS_EX_CONTEXTHELP        equ    00000400h
  1090. WS_EX_RIGHT            equ    00001000h
  1091. WS_EX_LEFT            equ    00000000h
  1092. WS_EX_RTLREADING        equ    00002000h
  1093. WS_EX_LTRREADING        equ    00000000h
  1094. WS_EX_LEFTSCROLLBAR        equ    00004000h
  1095. WS_EX_RIGHTSCROLLBAR        equ    00000000h
  1096. WS_EX_CONTROLPARENT        equ    00010000h
  1097. WS_EX_STATICEDGE        equ    00020000h
  1098. WS_EX_APPWINDOW            equ    00040000h
  1099. ;
  1100. WS_EX_OVERLAPPEDWINDOW        equ    00000300h
  1101. WS_EX_PALETTEWINDOW        equ    00000188h
  1102.  
  1103. ; Common Window Styles
  1104.  
  1105. WS_OVERLAPPEDWINDOW = WS_OVERLAPPED OR WS_CAPTION OR WS_SYSMENU OR WS_THICKFRAME OR WS_MINIMIZEBOX OR WS_MAXIMIZEBOX
  1106. WS_POPUPWINDOW  = WS_POPUP OR WS_BORDER OR WS_SYSMENU
  1107. WS_CHILDWINDOW  = WS_CHILD
  1108. WS_TILEDWINDOW  = WS_OVERLAPPEDWINDOW
  1109.  
  1110. WS_TILED        = WS_OVERLAPPED
  1111. WS_ICONIC       = WS_MINIMIZE
  1112. WS_SIZEBOX      = WS_THICKFRAME
  1113.  
  1114. ; Extended Window Styles (low words)
  1115. WS_EX_DLGMODALFRAME  = 0001
  1116. WS_EX_DRAGOBJECT     = 0002
  1117. WS_EX_NOPARENTNOTIFY = 0004
  1118. WS_EX_TOPMOST        = 0008
  1119.  
  1120.  
  1121. ; PeekMessage() Options
  1122. PM_NOREMOVE    = 0000h
  1123. PM_REMOVE      = 0001h
  1124. PM_NOYIELD     = 0002h
  1125.  
  1126. ; SetWindowPos Flags
  1127. SWP_NOSIZE       =  0001h
  1128. SWP_NOMOVE       =  0002h
  1129. SWP_NOZORDER     =  0004h
  1130. SWP_NOREDRAW     =  0008h
  1131. SWP_NOACTIVATE   =  0010h
  1132. SWP_DRAWFRAME    =  0020h
  1133. SWP_SHOWWINDOW   =  0040h
  1134. SWP_HIDEWINDOW   =  0080h
  1135. SWP_NOCOPYBITS   =  0100h
  1136. SWP_NOREPOSITION =  0200h
  1137. ;
  1138. ;  Predefined cursor & icon IDs
  1139. ;
  1140. IDC_ARROW       = 32512
  1141. IDC_IBEAM       = 32513
  1142. IDC_WAIT        = 32514
  1143. IDC_CROSS       = 32515
  1144. IDC_UPARROW     = 32516
  1145. IDC_SIZE        = 32640
  1146. IDC_ICON        = 32641
  1147. IDC_SIZENWSE    = 32642
  1148. IDC_SIZENESW    = 32643
  1149. IDC_SIZEWE      = 32644
  1150. IDC_SIZENS      = 32645
  1151.  
  1152. IDI_APPLICATION = 32512
  1153. IDI_HAND        = 32513
  1154. IDI_QUESTION    = 32514
  1155. IDI_EXCLAMATION = 32515
  1156. IDI_ASTERISK    = 32516
  1157.  
  1158. COLOR_SCROLLBAR           = 0
  1159. COLOR_BACKGROUND          = 1
  1160. COLOR_ACTIVECAPTION       = 2
  1161. COLOR_INACTIVECAPTION     = 3
  1162. COLOR_MENU                = 4
  1163. COLOR_WINDOW              = 5
  1164. COLOR_WINDOWFRAME         = 6
  1165. COLOR_MENUTEXT            = 7
  1166. COLOR_WINDOWTEXT          = 8
  1167. COLOR_CAPTIONTEXT         = 9
  1168. COLOR_ACTIVEBORDER        = 10
  1169. COLOR_INACTIVEBORDER      = 11
  1170. COLOR_APPWORKSPACE        = 12
  1171. COLOR_HIGHLIGHT           = 13
  1172. COLOR_HIGHLIGHTTEXT       = 14
  1173. COLOR_BTNFACE             = 15
  1174. COLOR_BTNSHADOW           = 16
  1175. COLOR_GRAYTEXT            = 17
  1176. COLOR_BTNTEXT             = 18
  1177.  
  1178. ;
  1179. ;  MessageBox type flags
  1180. ;
  1181. MB_OK                   = 0000H
  1182. MB_OKCANCEL             = 0001H
  1183. MB_ABORTRETRYIGNORE     = 0002H
  1184. MB_YESNOCANCEL          = 0003H
  1185. MB_YESNO                = 0004H
  1186. MB_RETRYCANCEL          = 0005H
  1187.  
  1188. MB_ICONHAND             = 0010H
  1189. MB_ICONQUESTION         = 0020H
  1190. MB_ICONEXCLAMATION      = 0030H
  1191. MB_ICONASTERISK         = 0040H
  1192.  
  1193. MB_DEFBUTTON1           = 0000H
  1194. MB_DEFBUTTON2           = 0100H
  1195. MB_DEFBUTTON3           = 0200H
  1196.  
  1197. MB_APPLMODAL            = 0000H
  1198. MB_SYSTEMMODAL          = 1000H
  1199. MB_TASKMODAL            = 2000H
  1200.  
  1201. MB_NOFOCUS              = 8000H
  1202.  
  1203. ;
  1204. ;  Conventional dialog box and message box command IDs
  1205. ;
  1206. IDOK     =   1
  1207. IDCANCEL =   2
  1208. IDABORT  =   3
  1209. IDRETRY  =   4
  1210. IDIGNORE =   5
  1211. IDYES    =   6
  1212. IDNO     =   7
  1213. ;
  1214. ;  Button Control Styles 
  1215. ;
  1216. BS_PUSHBUTTON        EQU        000000000h
  1217. BS_DEFPUSHBUTTON        EQU        000000001h
  1218. BS_CHECKBOX        EQU        000000002h
  1219. BS_AUTOCHECKBOX        EQU        000000003h
  1220. BS_RADIOBUTTON        EQU        000000004h
  1221. BS_3STATE        EQU        000000005h
  1222. BS_AUTO3STATE        EQU        000000006h
  1223. BS_GROUPBOX        EQU        000000007h
  1224. BS_USERBUTTON        EQU        000000008h
  1225. BS_AUTORADIOBUTTON    EQU        000000009h
  1226. BS_PUSHBOX        EQU        00000000ah
  1227. BS_OWNERDRAW        EQU        00000000bh
  1228. BS_LEFTTEXT        EQU        000000020h
  1229. ;
  1230. ;  User Button Notification Codes 
  1231. ;
  1232. BN_CLICKED        EQU        0t
  1233. BN_PAINT        EQU        1t
  1234. BN_HILITE        EQU        2t
  1235. BN_UNHILITE        EQU        3t
  1236. BN_DISABLE        EQU        4t
  1237. BN_DOUBLECLICKED    EQU        5t
  1238. ;
  1239. ;  Button Control Messages
  1240. ;
  1241. BM_GETCHECK        EQU        000000400h
  1242. BM_SETCHECK        EQU        000000401h
  1243. BM_GETSTATE        EQU        000000402h
  1244. BM_SETSTATE        EQU        000000403h
  1245. BM_SETSTYLE        EQU        000000404h
  1246. ;
  1247. ;  Edit Control Messages
  1248. ;
  1249. EM_GETSEL             =  00B0h
  1250. EM_SETSEL             =  00B1h
  1251. EM_GETRECT            =  00B2h
  1252. EM_SETRECT            =  00B3h
  1253. EM_SETRECTNP          =  00B4h
  1254. EM_SCROLL             =  00B5h
  1255. EM_LINESCROLL         =  00B6h
  1256. EM_SCROLLCARET        =  00B7h
  1257. EM_GETMODIFY          =  00B8h
  1258. EM_SETMODIFY          =  00B9h
  1259. EM_GETLINECOUNT       =  00BAh
  1260. EM_LINEINDEX          =  00BBh
  1261. EM_SETHANDLE          =  00BCh
  1262. EM_GETHANDLE          =  00BDh
  1263. EM_GETTHUMB           =  00BEh
  1264. EM_LINELENGTH         =  00C1h
  1265. EM_REPLACESEL         =  00C2h
  1266. EM_GETLINE            =  00C4h
  1267. EM_LIMITTEXT          =  00C5h
  1268. EM_CANUNDO            =  00C6h
  1269. EM_UNDO               =  00C7h
  1270. EM_FMTLINES           =  00C8h
  1271. EM_LINEFROMCHAR       =  00C9h
  1272. EM_SETTABSTOPS        =  00CBh
  1273. EM_SETPASSWORDCHAR    =  00CCh
  1274. EM_EMPTYUNDOBUFFER    =  00CDh
  1275. EM_GETFIRSTVISIBLELINE=  00CEh
  1276. EM_SETREADONLY        =  00CFh
  1277. EM_SETWORDBREAKPROC   =  00D0h
  1278. EM_GETWORDBREAKPROC   =  00D1h
  1279. EM_GETPASSWORDCHAR    =  00D2h
  1280. EM_SETMARGINS         =  00D3h
  1281. EM_GETMARGINS         =  00D4h
  1282. EM_SETLIMITTEXT       equ  <EM_LIMITTEXT>
  1283. EM_GETLIMITTEXT       =  00D5h
  1284. EM_POSFROMCHAR        =  00D6h
  1285. EM_CHARFROMPOS        =  00D7h
  1286.