include windows.inc
include user32.inc
include kernel32.inc
include gdi32.inc

includelib user32.lib
includelib kernel32.lib
includelib gdi32.lib

;VKim Debug
include masm32.inc
include \RadASM\masm\inc\debug.inc
includelib masm32.lib
includelib \RadASM\masm\lib\debug.lib

CreateClass			PROTO

;property1 starting with bit 31
;
;(Name)			*
;(ID)			*
;Left			*
;Top			*
;Width			*
;Height			*
;Caption		*
;Border			*
;SysMenu
;MaxButton
;MinButton
;Enabled		*
;Visible		*
;Clipping		*
;ScrollBar		*
;Default
;Auto
;Alignment
;Mnemonic
;WordWrap
;MultiLine
;Type
;Locked
;Child			*
;SizeBorder
;TabStop		*
;Font
;Menu
;Class
;Notify
;AutoScroll
;WantCr
;
;property2 starting with bit 31
;
;Sort
;Flat
;(StartID)
;TabIndex		*
;Format
;SizeGrip
;Group			*
;Icon
;UseTabs
;StartupPos
;Orientation
;SetBuddy
;MultiSelect
;HideSel
;TopMost
;xExStyle		*
;xStyle			*
;IntegralHgt
;Image
;Buttons
;PopUp
;OwnerDraw
;Transp
;Timer
;AutoPlay
;WeekNum
;AviClip
;AutoSize
;ToolTip
;Wrap
;Divider
;
;Note:
;Only some of the properties are general and can be used by the custom control.
;These properties are marked with *
;
;
;Used by RadASM 1.2.0.5. See RadASMini.rtf for more info
CCDEF struct
	ID			dd ?						;Controls uniqe ID
	lptooltip	dd ?						;Pointer to tooltip text
	hbmp		dd ?						;Handle of bitmap
	lpcaption	dd ?						;Pointer to default caption text
	lpname		dd ?						;Pointer to default id-name text
	lpclass		dd ?						;Pointer to class text
	style		dd ?						;Default style
	exstyle		dd ?						;Default ex-style
	property1	dd ?						;Property listbox 1 (bitflags on what properties are enabled)
	property2	dd ?						;Property listbox 2 (bitflags on what properties are enabled)
	disable		dd ?						;Disable controls child windows. 0=No, 1=Use method 1, 2=Use method 2
CCDEF ends

STYLE				equ WS_CHILD or WS_VISIBLE
EXSTYLE				equ 200h
IDB_BMP				equ 100

RAVID struct
	hMCIWnd			dd ?
	ht				dd ?
RAVID ends

RAVID_PLAY			equ WM_USER+0

.const

szToolTip			db 'RadASM Video Custom Control',0
szCap				db 0
szName				db 'IDC_RAVID',0
szClassName			db 'RAVIDEO',0

szLib				db 'msvfw32.dll', 0
szMCIWndCreate		db 'MCIWndCreate', 0

.data

ccdef				CCDEF <902,offset szToolTip,0,offset szCap,offset szName,offset szClassName,STYLE,EXSTYLE,11111111000111000000000000000000b,00010000000000011000000000000000b,0>

.data?

hInstance			dd ?
hLib				dd ?
