阅读:1379回复:1
hittext方法
<P>大家有没有用过hittext方法,为什么在我的机子上它始终运行没有结果呢?</P>
<P>比如代码:</P> <P>esriTOCControl.esriTOCControlItem item = esriTOCControl.esriTOCControlItem.esriTOCControlItemNone;<BR>IBasicMap map = null; ILayer layer = null; <BR>object other = null; object index = null; <BR>axTOCControl1.HitTest(e.x, e.y, ref item, ref map, ref layer, ref other, ref index); </P> <P>MessageBox.show("test");</P> <P>在调用了hittext方法后任何语句都不能执行了,写代码测试发现变量layer,map等都没有被赋值,仍然为空。</P> <P>这是为什么呢?</P> |
|
1楼#
发布于:2006-09-06 08:51
<P>前三个参数应该有值的。</P>
|
|