home *** CD-ROM | disk | FTP | other *** search
/ Installer 5.00 - Please Dont Remove it From My Bag / 060126_0945.iso / CAMIPRO3 / MACROS.CMZ / WINAPI.SAM (.txt) < prev    next >
Encoding:
Ami Pro/Word Pro document  |  1994-08-14  |  13.3 KB  |  377 lines

  1. [ver]
  2. [sty]
  3. [files]
  4. [charset]
  5.     ANSI (Windows, IBM CP 1252)
  6. [revisions]
  7. [prn]
  8.     QMS-PS 810
  9. [port]
  10.     LPT1:
  11. [lang]
  12. [desc]
  13.     Windows API defines.  Use the INCLUDE powerfield to embed these defines in a macro.
  14.     708292257
  15.     707778929
  16.     Example:<*-><**>Include "WinApi.sam"
  17. [fopts]
  18. [lnopts]
  19.     Body Text
  20. [docopts]
  21. [GramStyle]
  22. [ParaNum]
  23. [tag]
  24.     Body Text
  25.     [fnt]
  26.         Arial
  27.         160
  28.         16384
  29.     [algn]
  30.     [spc]
  31.         273
  32.         100
  33.     [brk]
  34.     [line]
  35.     [spec]
  36.     [nfmt]
  37.         280
  38.     Body Text
  39. [tag]
  40.     Body Single
  41.     [fnt]
  42.         Times New Roman
  43.         240
  44.         49152
  45.     [algn]
  46.     [spc]
  47.         273
  48.         100
  49.     [brk]
  50.     [line]
  51.     [spec]
  52.     [nfmt]
  53.         280
  54.     Body Single
  55. [tag]
  56.     Bullet
  57.     [fnt]
  58.         Times New Roman
  59.         240
  60.         49152
  61.     [algn]
  62.         288
  63.         288
  64.     [spc]
  65.         273
  66.         100
  67.     [brk]
  68.     [line]
  69.     [spec]
  70.         <*0>
  71.         360
  72.     [nfmt]
  73.         272
  74.     Bullet
  75. [tag]
  76.     Bullet 1
  77.     [fnt]
  78.         Times New Roman
  79.         240
  80.         49152
  81.     [algn]
  82.         288
  83.         288
  84.         288
  85.     [spc]
  86.         273
  87.         100
  88.     [brk]
  89.     [line]
  90.     [spec]
  91.         <*5>
  92.     [nfmt]
  93.         280
  94.     Bullet 1
  95. [tag]
  96.     Number List
  97.     [fnt]
  98.         Times New Roman
  99.         240
  100.         49152
  101.     [algn]
  102.         360
  103.         360
  104.         360
  105.     [spc]
  106.         273
  107.         100
  108.     [brk]
  109.     [line]
  110.     [spec]
  111.         <*:>.
  112.         360
  113.     [nfmt]
  114.         272
  115.     Number List
  116. [tag]
  117.     Subhead
  118.     [fnt]
  119.         Times New Roman
  120.         200
  121.         49152
  122.     [algn]
  123.     [spc]
  124.         273
  125.         100
  126.     [brk]
  127.     [line]
  128.     [spec]
  129.     [nfmt]
  130.         272
  131.     Subhead
  132. [tag]
  133.     Title
  134.     [fnt]
  135.         Arial
  136.         360
  137.         16385
  138.     [algn]
  139.     [spc]
  140.         446
  141.         144
  142.         100
  143.     [brk]
  144.     [line]
  145.     [spec]
  146.     [nfmt]
  147.         272
  148.     Title
  149. [tag]
  150.     Header
  151.     [fnt]
  152.         Times New Roman
  153.         240
  154.         49152
  155.     [algn]
  156.     [spc]
  157.         273
  158.         100
  159.     [brk]
  160.     [line]
  161.     [spec]
  162.     [nfmt]
  163.         280
  164.     Header
  165. [tag]
  166.     Footer
  167.     [fnt]
  168.         Times New Roman
  169.         240
  170.         49152
  171.     [algn]
  172.     [spc]
  173.         273
  174.         100
  175.     [brk]
  176.     [line]
  177.     [spec]
  178.     [nfmt]
  179.         280
  180.     Footer
  181. [lay]
  182.     Standard
  183.     [rght]
  184.         15840
  185.         12240
  186.         720
  187.         720
  188.         720
  189.         720
  190.         720
  191.         11520
  192.         720
  193.         1440
  194.         2160
  195.         2880
  196.         3600
  197.         4320
  198.         5040
  199.         5760
  200.         6480
  201.         7200
  202.         7920
  203.         8640
  204.     [hrght]
  205.     [lyfrm]
  206.         11200
  207.         12240
  208.         720
  209.         1 0 0 0 0 0 0
  210.     [frmlay]
  211.         720
  212.         12240
  213.         1440
  214.         576
  215.         1440
  216.         1440
  217.         10800
  218.         4680
  219.         9360
  220.     [txt]
  221.     [frght]
  222.     [lyfrm]
  223.         13248
  224.         15120
  225.         12240
  226.         15840
  227.         1 0 0 0 0 0 0
  228.     [frmlay]
  229.         15840
  230.         12240
  231.         1440
  232.         576
  233.         15192
  234.         1440
  235.         1440
  236.         10800
  237.         4680
  238.         9360
  239.     [txt]
  240. [elay]
  241.     75 0 5 512 0 0 0 65535 65535 Standard    65535 0 0    0 0 0 0 0 0 0 65535 0 0 65535 0 0 0 0 0
  242.     131 0 0 1025 0 0 0 65535 65535 Standard    65535 0 0    0 0 0 0 0 0 0 65535 0 0 65535 0 0 0 0 0
  243. [edoc]
  244. @Subhead@<:#240,10800>'User Defines
  245. <:#187,10800>
  246. <:#187,10800>Define    AddLine(hWnd, stuff)         DllCall("outdll,AddLine,HHC", %1, %2)
  247. <:#187,10800>Define    AddMacroCall(hwnd, macro, cmd)     DllCall("outdll,AddMacroCall,HHCH", %1, %2, %3)
  248. <:#187,10800>DEFINE     BinEscape()            DllCall("gdi.exe,Escape,HHHHNC",%1,8,2,%2,"")
  249. <:#187,10800>Define    ClientToScreen(hwnd, lppoint)     dllcall("user,ClientToScreen,HHN", %1, %2)
  250. <:#374,10800>Define    CreateFont()            DllCall("gdi,CreateFont,HHHHHHHHHHHHHHC", %1, %2, %3, %4, %5, %6, %7, %8, %9, %10, %11, %12, %13, %14)
  251. <:#187,10800>DEFINE     CreateIC()            DllCall("gdi.exe,CreateIC,HCCCC",%1,%2,%3,%4)
  252. <:#187,10800>DEFINE     DeleteDC()            DllCall("gdi.exe,DeleteDC,HH",%1)
  253. <:#187,10800>Define    DeleteObject(handle)         DllCall("gdi,DeleteObject,HH", %1)
  254. <:#187,10800>Define    DestroyWindow(hwnd)         DllCall("user,DestroyWindow,HH", %1)
  255. <:#187,10800>Define    EnableHardwareInput()         dllcall("user,EnableHardwareInput,AA", %1)
  256. @Outline3@<:#187,10800>define    EnableWindow(hWnd, stuff)        DllCall("user,enableWindow,HHH", %1, %2)
  257. <:#187,10800>Define     FindWindow()             DllCall("user,FindWindow,HCC", %1, %2)
  258. <:#187,10800>Define     GetActiveWindow()             DllCall("user,GetActiveWindow,H")
  259. <:#187,10800>Define     getcaretpos()             dllcall("user,getcaretpos,HN", %1)
  260. <:#187,10800>Define     GetClassName(hwnd, name, len)     dllcall("user,GetClassName,HHCH", %1, %2, %3)
  261. <:#187,10800>Define     GetClientRect(hWnd, lpRect)         dllcall("user,GetClientRect,HHN", %1, %2)
  262. <:#187,10800>Define     GetCurrentTask()             DllCall("kernel,GetCurrentTask,H")
  263. <:#187,10800>Define     getcursorpos()             dllcall("user,getcursorpos,HN", %1)
  264. <:#187,10800>Define     GetDC(hWnd)             DllCall("user,GetDC,HH", %1)
  265. <:#187,10800>Define     GetDeskTopWindow()         DllCall("User,GetDeskTopWindow,H")
  266. <:#187,10800>Define    GetDlgCtrlId()            DllCall("User,GetDlgCtrlId,HH",%1)
  267. <:#187,10800>Define     Getfocus()             DllCall("user,GetFocus,H")
  268. <+@><:#187,10800>Define     GetKeyBoardState(lpstate)         dllcall("user,GetKeyBoardState,HN", %1)
  269. @Outline3@<:#187,10800>define    GetMenu(HWND)            DllCall("user,GetMenu,HH", %1)
  270. @Outline3@<:#187,10800>define    GetMenuItemCount(HMENU)        DllCall("user,GetMenuItemCount,HH", %1)
  271. @Outline3@<:#187,10800>define    GetMenuItemID(HMENU, int)        DllCall("user,GetMenuItemID,LHH", %1, %2)
  272. @Outline3@<:#187,10800>define    GetMenuString(HMENU, WORD, LPSTR, int, WORD)    DllCall("user,GetMenuString,HHHFHH", %1, %2, %3, %4, %5)
  273. <:#187,10800>Define     GetModuleHandle(name)         DllCall("kernel,GetModuleHandle,HC", %1)
  274. @Outline3@<:#187,10800>define    GetParent(hWnd)            DllCall("user,GetParent,HH", %1)
  275. <:#187,10800>DEFINE     GetSetBins()            DllCall("gdi.exe,Escape,HHHHCN",%1,29,4,"",%2)
  276. @Outline3@<:#187,10800>define    GetSubMenu(HMENU, int)        DllCall("user,GetSubMenu,HHH", %1, %2)
  277. <:#187,10800>Define     getsystemmetrics()             dllcall("user,getsystemmetrics,HH", %1)
  278. <:#187,10800>DEFINE     GetTechnology()            DllCall("gdi.exe,Escape,HHHHCC",%1,20,0,0,%2)
  279. <:#187,10800>Define     GetVersion()             DllCall("kernel,GetVersion,H")
  280. @Outline3@<:#187,10800>define     Getvideomode(p1)            DllCall("user,GetSystemMetrics,HH",%1)
  281. <:#187,10800>Define     GetWindow(hwnd, cmd)         dllcall("user,GetWindow,HHH", %1, %2)
  282. <:#187,10800>Define     GetWindowOrg(hdc)         DllCall("gdi,GetWindowOrg,HH", %1)
  283. <:#187,10800>Define     GetWindowSize()            DllCall("user,GetWindowRect,HHN",%1,%2)
  284. @Outline3@<:#187,10800>define    GlobalAddAtom(lp)            DllCall("user,GlobalAddAtom,HC", %1)
  285. @Outline3@<:#187,10800>define    HiliteMenuItem(HWND, HMENU, WORD, WORD)        DllCall("user,HiliteMenuItem,AHHLL", %1, %2, %3, %4)
  286. @Outline3@<:#187,10800>define    IconConfig(hwnd, ini)        DllCall("outdll,IconConfig,HHC", %1, %2)
  287. @Outline3@<:#187,10800>define    IconOff(hwnd)            DllCall("outdll,IconOff,HH", %1)
  288. @Outline3@<:#187,10800>define    IconOn(hwnd, ini, ega, vga, 8514, pos)    DllCall("outdll,IconOn,HHCCCCHC", %1, %2, %3, %4, %5, %6, %7)
  289. <:#187,10800>Define     InvalidateRect(hwnd, stuff, H)         DllCall("user,InvalidateRect,HHFH", %1, %2, %3)
  290. @Outline3@<:#187,10800>define    IsIconic(hWnd)            DllCall("user,IsIconic,HH", %1)
  291. <:#187,10800>define    LBGetText(hwnd,Id,Ptr)        dllcall("user,sendmessage,HHHHC", %1, LB_GETTEXT, %2, %3)
  292. <:#187,10800>Define     LPtoDP()                 dllcall("gdi,LPtoDP,HHNH", %1, %2, %3)
  293. <:#187,10800>Define     MoveWindow()             DllCall("User,MoveWindow,HHHHHHA",%1,%2,%3,%4,%5,%6)
  294. <:#187,10800>DEFINE     NumBins()            DllCall("gdi.exe,Escape,HHHHNN",%1,31,%2,%3,%4)
  295. <:#187,10800>Define     PickFont(hwnd, face, size)         DllCall("outdll,PickFont,HHCH", %1, %2, %3)
  296. <:#187,10800>Define     PostMessage(hwnd, message, wparam, lparao)         dllcall("user,PostMessage,JHHHJ", %1, %2, %3, %4)
  297. <:#187,10800>Define     ReleaseCapture(hWnd)         DllCall("user,ReleaseCapture,H")
  298. <:#187,10800>Define     ReleaseDC(hWnd, hcc)         DllCall("user,ReleaseDC,HHH", %1, %2)
  299. @Outline3@<:#187,10800>define    RepaintIt(hwnd)            InvalidateRect(%1, 0, 1)
  300. <:#187,10800>Define     ScreenToClient(hWnd, lpPoint)     dllcall("user,screentoclient,HHN", %1, %2)
  301. <:#187,10800>Define     SendMessage(hwnd, message, wparam, lparao)         dllcall("user,SendMessage,JHHHJ", %1, %2, %3, %4)
  302. @Outline3@<:#187,10800>define    SetBkColor(hdc, color)        DllCall("gdi,SetBkColor,HHJ", %1, %2)
  303. <:#187,10800>Define     SetBkMode(hdc, nmode)         DllCall("gdi,SetBkMode,HHH", %1, %2)
  304. <:#187,10800>Define     SetCallBackKey(hwnd, key, event)    DllCall("outdll,SetCallBackKey,HHHH", %1, %2, %3)
  305. <:#187,10800>Define     SetCapture(hWnd)             DllCall("user,SetCapture,HH", %1)
  306. <:#187,10800>Define     SetCursorPos(x, y)             dllcall("user,SetCursorPos,HHH", %1, %2)
  307. <:#187,10800>Define     SetDeskWallPaper()         DllCall("user,SetDeskWallPaper,HC",%1)
  308. @Outline3@<:#187,10800>define     SetFocus(hWnd)            DllCall("user,SetFocus,HH",%1)
  309. <+@><:#187,10800>Define     SetKeyBoardState(lpstate)         dllcall("user,SetKeyBoardState,HN", %1)
  310. <:#187,10800>Define     SetTextColor(hdc, color)         DllCall("gdi,SetTextColor,HHJ", %1, %2)
  311. @Outline3@<:#187,10800>define    SetWallPaper(hwnd, fname)        DllCall("outdll,SetWallPaper,HHC", %1, %2)
  312. <:#187,10800>Define    SetWindowText(hwnd,text)        DllCall("User,SetWindowText,HHC",%1,%2)
  313. <:#187,10800>Define     showcursor()             dllcall("user,showcursor,HA", %1)
  314. <:#187,10800>Define     ShowWindow(hWnd, stuff)         DllCall("user,ShowWindow,HHH", %1, %2)
  315. <:#187,10800>Define     Speak()                 DllCall("mmsystem,SndPlaySound,IICI", "WavPlaySoundFile", %1, 1)
  316. @Outline3@<:#187,10800>define     TitleBarMsg()            SetWindowText(GetActiveWindow(), %1)
  317. @Outline3@<:#187,10800>define    WinHelp(hWnd, file, cmd, ptr)        DllCall("user,WinHelp,HHCHJ", %1, %2, %3, %4)
  318. @Outline2@<:p<* >>
  319. @Outline2@<:#187,10800>
  320. @Outline3@<:#187,10800>define    ADD_LINE        100
  321. <:#187,10800>Define    ADD_PARA        101
  322. <:#187,10800>Define    ALIGN_CEN        3
  323. <:#187,10800>Define    ALIGN_JUST        2
  324. <:#187,10800>Define    ALIGN_LEFT        1
  325. <:#187,10800>Define    ALIGN_RIGHT        4
  326. <:#187,10800>Define    ALIGNMENT        110
  327. <:#187,10800>Define    BOT_MARG        107
  328. <:#187,10800>DEFINE    CB_GetCurSel        0x407
  329. <:#187,10800>Define    CB_SetCurSel        1038
  330. @Outline3@<:#187,10800>define    COMMIT            102
  331. <:#187,10800>Define    DM_SETDEFID        1025
  332. <:#187,10800>Define    EB_Width            8001
  333. <:#187,10800>Define    EM_CANUNDO        1046
  334. <:#187,10800>Define    EM_LimitText        1045
  335. <:#187,10800>Define    EV_EXIT            2
  336. <:#187,10800>Define    EV_LEFTCLK        0
  337. <:#187,10800>Define    EV_RIGHTCLK        1
  338. <:#187,10800>Define     GW_CHILD         5
  339. <:#187,10800>Define     GW_HWNDNEXT        2
  340. <:#187,10800>Define    HELP_CONTEXT        0x0001
  341. @Outline2@<:#187,10800>define     LB_DELETESTRING    1027
  342. @Outline2@<:#187,10800>define     LB_GETCOUNT        1036
  343. @Outline2@<:#187,10800>Define     LB_GETCURSEL        1033
  344. <:#187,10800>DEFINE    LB_GetSel        0x408
  345. @Outline2@<:#187,10800>define     LB_GETTEXT        1034
  346. <:#187,10800>define     LB_INSERTSTRING    1026
  347. <:#187,10800>DEFINE    LB_ResetContent        0x405
  348. @Outline2@<:#187,10800>define    LB_SETCURSEL        1031
  349. @Outline2@<:#187,10800>Define    LB_SetTopIndex        1048
  350. <:#187,10800>Define    LEFT_MARG        106
  351. @Outline3@<:#187,10800>define    MF_BYPOSITION        0x0400
  352. @Outline3@<:#187,10800>define    MF_HILITE        0x0080
  353. <:#187,10800>Define    MOVE_WIN        103
  354. <:#187,10800>Define    RB_Text            20
  355. @Outline3@<:#187,10800>define    RIGHT_MARG        108
  356. <:#187,10800>Define    SetDefID()        AppSendMessage(hdlg,DM_SETDEFID,%1,0)
  357. <:#187,10800>Define    SIZE_WIN        104
  358. <:#187,10800>Define    TOP_MARG        105
  359. <:#187,10800>define    VK_DOWN        40
  360. <:#187,10800>define    VK_F1            112
  361. <:#187,10800>define    VK_Next            34    ' page down virtual key
  362. <:#187,10800>define    VK_Prior            33    ' page up
  363. <:#187,10800>define    VK_UP            38
  364. @Outline3@<:#187,10800>define    WALLPAPER        109
  365. <:#187,10800>Define    WM_CLOSE        0x010
  366. <:#187,10800>Define    WM_COMMAND        0x111
  367. <:#187,10800>Define    WM_LBUTTONDOWN     0x0201
  368. <:#187,10800>Define     WM_LBUTTONUP        0x0202
  369. <:#187,10800>Define    WM_RBUTTONDOWN     0x0204
  370. <:#187,10800>Define    WM_RBUTTONUP        0x0205
  371. <:#187,10800>Define     WM_SETCURSEL        0x407
  372. <:#187,10800>Define     WM_SETFONT        0x30
  373. <:#187,10800>
  374. @Outline3@<:#187,10800>
  375. [Embedded]
  376. 00013635
  377.