TB_SETIMAGELIST           equ WM_USER + 48
TB_GETIMAGELIST           equ WM_USER + 49

MsgBox   MACRO   Resource:req, Title:=<MsgTitle>, Flags:=<MB_OK or MB_ICONEXCLAMATION>
         mov     eax, Resource
         lea     ebx, Title
         mov     ecx, Flags
         call    CreateMsg
         ENDM

MOVmw    MACRO Var1, Var2
         lea     esi, Var2
         lea     edx, Var1
         REPEAT     2
            mov     al, [esi]
            mov     [edx], al
            inc     esi
            inc     edx
         ENDM
         ENDM

MOVmd    MACRO Var1, Var2
         push     Var2
          pop     Var1
         ENDM


TBSep    MACRO hTool
           mov     tbb.iBitmap, 0
           mov     tbb.idCommand, 0
           mov     tbb.fsState, TBSTATE_ENABLED
           mov     tbb.fsStyle, TBSTYLE_SEP
        INVOKE     SendMessage, hTool, TB_ADDBUTTONS, 1, addr tbb
          ENDM

TBButt   MACRO hTool, bID, cID, Text
           mov     tbb.iBitmap, bID    ; Button image number
           mov     tbb.idCommand, cID  ; Command ID number
           mov     tbb.fsState, TBSTATE_ENABLED
           mov     tbb.fsStyle, TBSTYLE_BUTTON
           mov     tbb.dwData, 0
           mov     tbb.iString, Text
        INVOKE     SendMessage, hTool, TB_ADDBUTTONS, 1, addr tbb
          ENDM

