;*****************************************************************************
_WinMain proc uses esi edi ebx ,hInst,PrehInst,CmdLine,CmdShow
LOCAL @stWc:WNDCLASSEX
LOCAL @stMsg:MSG
invoke RegisterClassEx,addr @stWc
invoke CreateWindowEx,WS_EX_WINDOWEDGE,addr szClassName,addr szWindowName,\
WS_DLGFRAME or WS_CAPTION or WS_MINIMIZEBOX or WS_SYSMENU or WS_VISIBLE ,\;WS_BORDER or WS_MAXIMIZEBOX or WS_THICKFRAME OR DS_MODALFRAME
150,150,655,475,0,hMenu,hInstance,0
mov hWinMain,eax
invoke ShowWindow,hWinMain,SW_SHOWNORMAL
invoke UpdateWindow,hWinMain
ret
_WinMain endp
;*********************************
_WndProc proc uses ebx esi edi,_hWnd,_uMsg,wParam,lParam
LOCAL @dwIndex1
LOCAL @stLvi:LV_ITEM
LOCAL @stDI:DRAWITEMSTRUCT
LOCAL @stRect:RECT
LOCAL @stPS:PAINTSTRUCT
LOCAL @hDC1:HDC
LOCAL @stRect1:RECT
LOCAL @stRectSE:RECT
LOCAL @stTME:TRACKMOUSEEVENT
LOCAL @stPt:POINT
LOCAL @hWndTip
LOCAL @stPt1:POINT
LOCAL @hDCCaption
.else
invoke DefWindowProc,_hWnd,_uMsg,wParam,lParam
ret
.endif
xor eax,eax
ret
_WndProc endp
;*********************************
_WM_DRAWITEMSETProc proc uses esi edi ebx ,lParam,_hBmp,_pszString,_dwOnHBCr,_dwOnTextCr,_dwOffHBCr,_dwOFFTextCr
LOCAL @stDI: DRAWITEMSTRUCT
LOCAL @hRgn
LOCAL @hDC
LOCAL @hRectRgn
LOCAL @stRect:RECT
mov esi,lParam
assume esi:ptr DRAWITEMSTRUCT