include '%lib%/freshlib.inc'

@BinaryType GUI, default

uses kernel32, user32, gdi32, comctl32, comdlg32, ole32

LIB_MODE  equ OLD

options.DebugMode = 0

include '%lib%\freshlib.asm'
include "%lib%\graphics\rectangles.asm"

include '%finc%\libs\msgutils.inc'
include '%finc%\libs\gui.inc'
include '%finc%\libs\tform.inc'
include '%finc%\libs\templates.inc'


include '%finc%\libs\msgutils.asm'
include '%finc%\libs\gui.asm'
include '%finc%\libs\tform.asm'
include '%finc%\libs\templates.asm'

include 'MainForm.frm'
include '%finc%\libs\scrollbars.asm'

uglobal
  hInstance dd ?
endg

start:
        invoke  GetModuleHandleA, 0
        mov     [hInstance], eax
        InitializeAll

        stdcall CreateForm, frmMainForm, NULL

include '%finc%\libs\mainloop.asm'

        push    eax
        FinalizeAll
        invoke  ExitProcess

