import win;
import win.ui; 
 
/*DSG{{*/ begin
winform = win.form( right=499;bottom=130;max=1;text="AAuto Form";left=0;topmost=1;top=0;min=1;acceptfiles=1;cls="AAU_FORM" )

winform.add( 
txtEdit={ bottom=78;text="edit";left=74;top=50;z=0;right=468;edge=1;cls="edit" };
static={ bottom=36;text="将文件拖放到窗体上即可";left=31;top=13;transparent=1;z=1;right=286;cls="static" }
)
end /*}}*/

winform.wndproc = function(hwnd,message,wParam,lParam){
select(message) {//判断消息类型
 
	case 0x233/*_WM_DROPFILES*///鼠标右键弹起消息
	{ 
	winform.txtEdit.text = win.getDropFile(wParam )[1];   
	
	} 
}
}//endproc
winform.show(true) 
win.loopMessage( winform );
