''
''
'' babygrid2.bi     --  translated from babygrid.h  
''

#ifndef __babygrid_bi__
	#define __babygrid_bi__

	#define BGN_LBUTTONDOWN 			&h0001
	#define BGN_MOUSEMOVE 				&h0002
	#define BGN_OUTOFRANGE 				&h0003
	#define BGN_OWNERDRAW 				&h0004
	#define BGN_SELCHANGE 				&h0005
	#define BGN_ROWCHANGED 				&h0006
	#define BGN_COLCHANGED 				&h0007
	#define BGN_EDITBEGIN 				&h0008
	#define BGN_DELETECELL 				&h0009
	#define BGN_EDITEND 					&h000A
	#define BGN_F1 						&h000B
	#define BGN_F2 						&h000C
	#define BGN_F3 						&h000D
	#define BGN_F4 						&h000E
	#define BGN_F5 						&h000F
	#define BGN_F6 						&h0010
	#define BGN_F7 						&h0011
	#define BGN_F8 						&h0012
	#define BGN_F9 						&h0013
	#define BGN_F10 						&h0014
	#define BGN_F11 						&h0015
	#define BGN_F12 						&h0016
	#define BGN_GOTFOCUS 				&h0017
	#define BGN_LOSTFOCUS 				&h0018
	#define BGN_CELLCLICKED 			&h0019

	#define BGM_PROTECTCELL 			1025
	#define BGM_SETPROTECT 				1026
	#define BGM_SETCELLDATA 			1027
	#define BGM_GETCELLDATA 			1028
	#define BGM_CLEARGRID 				1029
	#define BGM_SETGRIDDIM 				1030
	#define BGM_DELETECELL 				1031
	#define BGM_SETCURSORPOS 			1032
	#define BGM_AUTOROW 					1033
	#define BGM_GETOWNERDRAWITEM 		1034
	#define BGM_SETCOLWIDTH 			1035
	#define BGM_SETHEADERROWHEIGHT 	1036
	#define BGM_GETTYPE 					1037
	#define BGM_GETPROTECTION 			1038
	#define BGM_DRAWCURSOR 				1039
	#define BGM_SETROWHEIGHT 			1040
	#define BGM_SETCURSORCOLOR 		1041
	#define BGM_SETPROTECTCOLOR 		1042
	#define BGM_SETUNPROTECTCOLOR 	1043
	#define BGM_SETROWSNUMBERED 		1044
	#define BGM_SETCOLSNUMBERED 		1045
	#define BGM_SHOWHILIGHT 			1046
	#define BGM_GETROWS 					1047
	#define BGM_GETCOLS 					1048
	#define BGM_NOTIFYROWCHANGED 		1049
	#define BGM_NOTIFYCOLCHANGED 		1050
	#define BGM_GETROW 					1051
	#define BGM_GETCOL 					1052
	#define BGM_PAINTGRID 				1053
	#define BGM_GETCOLWIDTH 			1054
	#define BGM_GETROWHEIGHT 			1055
	#define BGM_GETHEADERROWHEIGHT 	1056
	#define BGM_SETTITLEHEIGHT 		1057
	#define BGM_SETHILIGHTCOLOR 		1058
	#define BGM_SETHILIGHTTEXTCOLOR 	1059
	#define BGM_SETEDITABLE 			1060
	#define BGM_SETGRIDLINECOLOR 		1061
	#define BGM_EXTENDLASTCOLUMN 		1062
	#define BGM_SHOWINTEGRALROWS 		1063
	#define BGM_SETELLIPSIS 			1064
	#define BGM_SETCOLAUTOWIDTH 		1065
	#define BGM_SETALLOWCOLRESIZE 	1066
	#define BGM_SETTITLEFONT 			1067
	#define BGM_SETHEADINGFONT 		1068


	type _BGCELL
		row as integer
		col as integer
	end type

	extern "c++" lib "babygrid2"
		declare function RegisterGridClass alias "RegisterGridClass" (byval as HINSTANCE) as ATOM
		
		declare function GridProc alias "GridProc" (byval as HWND, _
					byval as UINT, byval as WPARAM, byval as LPARAM) as LRESULT
					
		declare sub SetCell alias "SetCell" (byval cell as _BGCELL ptr, _
					byval row as integer, byval col as integer)
	end extern

#endif
